Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 1 | # Copyright 2010 the V8 project authors. All rights reserved. |
| 2 | # Redistribution and use in source and binary forms, with or without |
| 3 | # modification, are permitted provided that the following conditions are |
| 4 | # met: |
| 5 | # |
| 6 | # * Redistributions of source code must retain the above copyright |
| 7 | # notice, this list of conditions and the following disclaimer. |
| 8 | # * Redistributions in binary form must reproduce the above |
| 9 | # copyright notice, this list of conditions and the following |
| 10 | # disclaimer in the documentation and/or other materials provided |
| 11 | # with the distribution. |
| 12 | # * Neither the name of Google Inc. nor the names of its |
| 13 | # contributors may be used to endorse or promote products derived |
| 14 | # from this software without specific prior written permission. |
| 15 | # |
| 16 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 17 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 18 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 19 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 20 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 21 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 22 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 23 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 24 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 26 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | |
| 28 | { |
| 29 | 'targets': [ |
| 30 | { |
| 31 | 'target_name': 'd8', |
| 32 | 'type': 'executable', |
| 33 | 'dependencies': [ |
| 34 | 'd8_js2c#host', |
| 35 | '../tools/gyp/v8.gyp:v8', |
| 36 | ], |
| 37 | 'include_dirs+': [ |
| 38 | '../src', |
| 39 | ], |
| 40 | 'defines': [ |
Steve Block | 44f0eee | 2011-05-26 01:26:41 +0100 | [diff] [blame] | 41 | 'ENABLE_LOGGING_AND_PROFILING', |
Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 42 | 'ENABLE_DEBUGGER_SUPPORT', |
Steve Block | 44f0eee | 2011-05-26 01:26:41 +0100 | [diff] [blame] | 43 | 'ENABLE_VMSTATE_TRACKING', |
| 44 | 'V8_FAST_TLS', |
Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 45 | ], |
| 46 | 'sources': [ |
| 47 | 'd8.cc', |
| 48 | 'd8-debug.cc', |
| 49 | '<(SHARED_INTERMEDIATE_DIR)/d8-js.cc', |
| 50 | ], |
| 51 | 'conditions': [ |
| 52 | [ 'OS=="linux" or OS=="mac" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { |
| 53 | 'sources': [ 'd8-posix.cc', ] |
| 54 | }], |
| 55 | ], |
| 56 | }, |
| 57 | { |
| 58 | 'target_name': 'd8_js2c', |
| 59 | 'type': 'none', |
| 60 | 'toolsets': ['host'], |
| 61 | 'variables': { |
| 62 | 'js_files': [ |
| 63 | 'd8.js', |
| 64 | ], |
| 65 | }, |
| 66 | 'actions': [ |
| 67 | { |
| 68 | 'action_name': 'd8_js2c', |
| 69 | 'inputs': [ |
| 70 | '../tools/js2c.py', |
| 71 | '<@(js_files)', |
| 72 | ], |
| 73 | 'outputs': [ |
| 74 | '<(SHARED_INTERMEDIATE_DIR)/d8-js.cc', |
Steve Block | 053d10c | 2011-06-13 19:13:29 +0100 | [diff] [blame] | 75 | '<(SHARED_INTERMEDIATE_DIR)/d8-js-empty.cc', |
Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 76 | ], |
| 77 | 'action': [ |
| 78 | 'python', |
| 79 | '../tools/js2c.py', |
| 80 | '<@(_outputs)', |
| 81 | 'D8', |
| 82 | '<@(js_files)' |
| 83 | ], |
| 84 | }, |
| 85 | ], |
| 86 | } |
| 87 | ], |
| 88 | } |