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