Ben Murdoch | 3ef787d | 2012-04-12 10:51:47 +0100 | [diff] [blame] | 1 | # Copyright 2012 the V8 project authors. All rights reserved. |
Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 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 | { |
Ben Murdoch | 3fb3ca8 | 2011-12-02 17:19:32 +0000 | [diff] [blame] | 29 | 'variables': { |
Ben Murdoch | b8a8cc1 | 2014-11-26 15:28:44 +0000 | [diff] [blame] | 30 | 'v8_code': 1, |
Ben Murdoch | b8a8cc1 | 2014-11-26 15:28:44 +0000 | [diff] [blame] | 31 | # Enable support for Intel VTune. Supported on ia32/x64 only |
| 32 | 'v8_enable_vtunejit%': 0, |
| 33 | 'v8_enable_i18n_support%': 1, |
Ben Murdoch | 3fb3ca8 | 2011-12-02 17:19:32 +0000 | [diff] [blame] | 34 | }, |
Ben Murdoch | c561043 | 2016-08-08 18:44:38 +0100 | [diff] [blame] | 35 | 'includes': ['../gypfiles/toolchain.gypi', '../gypfiles/features.gypi'], |
Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 36 | 'targets': [ |
| 37 | { |
| 38 | 'target_name': 'd8', |
| 39 | 'type': 'executable', |
| 40 | 'dependencies': [ |
Ben Murdoch | c561043 | 2016-08-08 18:44:38 +0100 | [diff] [blame] | 41 | 'v8.gyp:v8', |
| 42 | 'v8.gyp:v8_libplatform', |
Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 43 | ], |
Ben Murdoch | 69a99ed | 2011-11-30 16:03:39 +0000 | [diff] [blame] | 44 | # Generated source files need this explicitly: |
Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 45 | 'include_dirs+': [ |
Ben Murdoch | b8a8cc1 | 2014-11-26 15:28:44 +0000 | [diff] [blame] | 46 | '..', |
Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 47 | ], |
Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 48 | 'sources': [ |
Ben Murdoch | 4a90d5f | 2016-03-22 12:00:34 +0000 | [diff] [blame] | 49 | 'd8.h', |
Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 50 | 'd8.cc', |
Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 51 | ], |
| 52 | 'conditions': [ |
Ben Murdoch | b8a8cc1 | 2014-11-26 15:28:44 +0000 | [diff] [blame] | 53 | [ 'want_separate_host_toolset==1', { |
Ben Murdoch | c561043 | 2016-08-08 18:44:38 +0100 | [diff] [blame] | 54 | 'toolsets': [ 'target', ], |
Ben Murdoch | b8a8cc1 | 2014-11-26 15:28:44 +0000 | [diff] [blame] | 55 | }], |
Ben Murdoch | b8a8cc1 | 2014-11-26 15:28:44 +0000 | [diff] [blame] | 56 | ['(OS=="linux" or OS=="mac" or OS=="freebsd" or OS=="netbsd" \ |
| 57 | or OS=="openbsd" or OS=="solaris" or OS=="android" \ |
Ben Murdoch | 4a90d5f | 2016-03-22 12:00:34 +0000 | [diff] [blame] | 58 | or OS=="qnx" or OS=="aix")', { |
Ben Murdoch | b8a8cc1 | 2014-11-26 15:28:44 +0000 | [diff] [blame] | 59 | 'sources': [ 'd8-posix.cc', ] |
| 60 | }], |
| 61 | [ 'OS=="win"', { |
| 62 | 'sources': [ 'd8-windows.cc', ] |
| 63 | }], |
Ben Murdoch | 3fb3ca8 | 2011-12-02 17:19:32 +0000 | [diff] [blame] | 64 | [ 'component!="shared_library"', { |
Ben Murdoch | 4a90d5f | 2016-03-22 12:00:34 +0000 | [diff] [blame] | 65 | 'sources': [ |
| 66 | '<(SHARED_INTERMEDIATE_DIR)/d8-js.cc', |
| 67 | ], |
Ben Murdoch | 3fb3ca8 | 2011-12-02 17:19:32 +0000 | [diff] [blame] | 68 | 'conditions': [ |
Ben Murdoch | 69a99ed | 2011-11-30 16:03:39 +0000 | [diff] [blame] | 69 | [ 'want_separate_host_toolset==1', { |
| 70 | 'dependencies': [ |
| 71 | 'd8_js2c#host', |
| 72 | ], |
| 73 | }, { |
| 74 | 'dependencies': [ |
| 75 | 'd8_js2c', |
| 76 | ], |
| 77 | }], |
Ben Murdoch | 4a90d5f | 2016-03-22 12:00:34 +0000 | [diff] [blame] | 78 | [ 'v8_postmortem_support=="true"', { |
| 79 | 'xcode_settings': { |
| 80 | 'OTHER_LDFLAGS': [ |
| 81 | '-Wl,-force_load,<(PRODUCT_DIR)/libv8_base.a' |
| 82 | ], |
| 83 | }, |
| 84 | }], |
Ben Murdoch | b8a8cc1 | 2014-11-26 15:28:44 +0000 | [diff] [blame] | 85 | ], |
| 86 | }], |
| 87 | ['v8_enable_vtunejit==1', { |
| 88 | 'dependencies': [ |
| 89 | '../src/third_party/vtune/v8vtune.gyp:v8_vtune', |
| 90 | ], |
| 91 | }], |
| 92 | ['v8_enable_i18n_support==1', { |
| 93 | 'dependencies': [ |
| 94 | '<(icu_gyp_path):icui18n', |
| 95 | '<(icu_gyp_path):icuuc', |
| 96 | ], |
| 97 | }], |
| 98 | ['OS=="win" and v8_enable_i18n_support==1', { |
| 99 | 'dependencies': [ |
| 100 | '<(icu_gyp_path):icudata', |
Ben Murdoch | 3fb3ca8 | 2011-12-02 17:19:32 +0000 | [diff] [blame] | 101 | ], |
Ben Murdoch | 257744e | 2011-11-30 15:57:28 +0000 | [diff] [blame] | 102 | }], |
Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 103 | ], |
| 104 | }, |
| 105 | { |
| 106 | 'target_name': 'd8_js2c', |
| 107 | 'type': 'none', |
Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 108 | 'variables': { |
| 109 | 'js_files': [ |
| 110 | 'd8.js', |
Ben Murdoch | 4a90d5f | 2016-03-22 12:00:34 +0000 | [diff] [blame] | 111 | 'js/macros.py', |
Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 112 | ], |
| 113 | }, |
Ben Murdoch | 69a99ed | 2011-11-30 16:03:39 +0000 | [diff] [blame] | 114 | 'conditions': [ |
| 115 | [ 'want_separate_host_toolset==1', { |
| 116 | 'toolsets': ['host'], |
| 117 | }, { |
| 118 | 'toolsets': ['target'], |
| 119 | }] |
| 120 | ], |
Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 121 | 'actions': [ |
| 122 | { |
| 123 | 'action_name': 'd8_js2c', |
| 124 | 'inputs': [ |
| 125 | '../tools/js2c.py', |
| 126 | '<@(js_files)', |
| 127 | ], |
| 128 | 'outputs': [ |
| 129 | '<(SHARED_INTERMEDIATE_DIR)/d8-js.cc', |
Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 130 | ], |
| 131 | 'action': [ |
| 132 | 'python', |
| 133 | '../tools/js2c.py', |
| 134 | '<@(_outputs)', |
| 135 | 'D8', |
Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 136 | '<@(js_files)' |
| 137 | ], |
| 138 | }, |
| 139 | ], |
Ben Murdoch | 4a90d5f | 2016-03-22 12:00:34 +0000 | [diff] [blame] | 140 | }, |
| 141 | ], |
| 142 | 'conditions': [ |
Ben Murdoch | c561043 | 2016-08-08 18:44:38 +0100 | [diff] [blame] | 143 | ['test_isolation_mode != "noop"', { |
Ben Murdoch | 4a90d5f | 2016-03-22 12:00:34 +0000 | [diff] [blame] | 144 | 'targets': [ |
| 145 | { |
| 146 | 'target_name': 'd8_run', |
| 147 | 'type': 'none', |
| 148 | 'dependencies': [ |
| 149 | 'd8', |
| 150 | ], |
| 151 | 'includes': [ |
Ben Murdoch | c561043 | 2016-08-08 18:44:38 +0100 | [diff] [blame] | 152 | '../gypfiles/isolate.gypi', |
Ben Murdoch | 4a90d5f | 2016-03-22 12:00:34 +0000 | [diff] [blame] | 153 | ], |
| 154 | 'sources': [ |
| 155 | 'd8.isolate', |
| 156 | ], |
| 157 | }, |
| 158 | ], |
| 159 | }], |
Ben Murdoch | b0fe162 | 2011-05-05 13:52:32 +0100 | [diff] [blame] | 160 | ], |
| 161 | } |