ulan@chromium.org | 2efb900 | 2012-01-19 15:36:35 +0000 | [diff] [blame] | 1 | # Copyright 2012 the V8 project authors. All rights reserved. |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [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 | { |
svenpanne@chromium.org | 84bcc55 | 2011-07-18 09:50:57 +0000 | [diff] [blame] | 29 | 'variables': { |
jkummerow@chromium.org | 93a47f4 | 2013-07-02 14:43:41 +0000 | [diff] [blame] | 30 | 'v8_code': 1, |
svenpanne@chromium.org | 84bcc55 | 2011-07-18 09:50:57 +0000 | [diff] [blame] | 31 | 'console%': '', |
mstarzinger@chromium.org | e27d617 | 2013-04-17 11:51:44 +0000 | [diff] [blame] | 32 | # Enable support for Intel VTune. Supported on ia32/x64 only |
| 33 | 'v8_enable_vtunejit%': 0, |
machenbach@chromium.org | 528ce02 | 2013-09-23 14:09:36 +0000 | [diff] [blame] | 34 | 'v8_enable_i18n_support%': 1, |
svenpanne@chromium.org | 84bcc55 | 2011-07-18 09:50:57 +0000 | [diff] [blame] | 35 | }, |
danno@chromium.org | bee5199 | 2013-07-10 14:57:15 +0000 | [diff] [blame] | 36 | 'includes': ['../build/toolchain.gypi', '../build/features.gypi'], |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 37 | 'targets': [ |
| 38 | { |
| 39 | 'target_name': 'd8', |
| 40 | 'type': 'executable', |
| 41 | 'dependencies': [ |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 42 | '../tools/gyp/v8.gyp:v8', |
| 43 | ], |
ricow@chromium.org | 4668a2c | 2011-08-29 10:41:00 +0000 | [diff] [blame] | 44 | # Generated source files need this explicitly: |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 45 | 'include_dirs+': [ |
| 46 | '../src', |
| 47 | ], |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 48 | 'sources': [ |
| 49 | 'd8.cc', |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 50 | ], |
| 51 | 'conditions': [ |
jkummerow@chromium.org | 59297c7 | 2013-01-09 16:32:23 +0000 | [diff] [blame] | 52 | [ 'console=="readline"', { |
| 53 | 'libraries': [ '-lreadline', ], |
| 54 | 'sources': [ 'd8-readline.cc' ], |
| 55 | }], |
svenpanne@chromium.org | 84bcc55 | 2011-07-18 09:50:57 +0000 | [diff] [blame] | 56 | [ 'component!="shared_library"', { |
svenpanne@chromium.org | 84bcc55 | 2011-07-18 09:50:57 +0000 | [diff] [blame] | 57 | 'sources': [ 'd8-debug.cc', '<(SHARED_INTERMEDIATE_DIR)/d8-js.cc', ], |
| 58 | 'conditions': [ |
kmillikin@chromium.org | 7c2628c | 2011-08-10 11:27:35 +0000 | [diff] [blame] | 59 | [ 'want_separate_host_toolset==1', { |
| 60 | 'dependencies': [ |
| 61 | 'd8_js2c#host', |
| 62 | ], |
| 63 | }, { |
| 64 | 'dependencies': [ |
| 65 | 'd8_js2c', |
| 66 | ], |
| 67 | }], |
rossberg@chromium.org | fab1498 | 2012-01-05 15:02:15 +0000 | [diff] [blame] | 68 | ['(OS=="linux" or OS=="mac" or OS=="freebsd" or OS=="netbsd" \ |
| 69 | or OS=="openbsd" or OS=="solaris" or OS=="android")', { |
svenpanne@chromium.org | 84bcc55 | 2011-07-18 09:50:57 +0000 | [diff] [blame] | 70 | 'sources': [ 'd8-posix.cc', ] |
| 71 | }], |
| 72 | [ 'OS=="win"', { |
| 73 | 'sources': [ 'd8-windows.cc', ] |
| 74 | }], |
| 75 | ], |
sgjesse@chromium.org | 8e8294a | 2011-05-02 14:30:53 +0000 | [diff] [blame] | 76 | }], |
mstarzinger@chromium.org | e27d617 | 2013-04-17 11:51:44 +0000 | [diff] [blame] | 77 | ['v8_enable_vtunejit==1', { |
| 78 | 'dependencies': [ |
| 79 | '../src/third_party/vtune/v8vtune.gyp:v8_vtune', |
| 80 | ], |
| 81 | }], |
danno@chromium.org | bee5199 | 2013-07-10 14:57:15 +0000 | [diff] [blame] | 82 | ['v8_enable_i18n_support==1', { |
danno@chromium.org | bee5199 | 2013-07-10 14:57:15 +0000 | [diff] [blame] | 83 | 'dependencies': [ |
machenbach@chromium.org | 528ce02 | 2013-09-23 14:09:36 +0000 | [diff] [blame] | 84 | '<(icu_gyp_path):icui18n', |
| 85 | '<(icu_gyp_path):icuuc', |
danno@chromium.org | 169691d | 2013-07-15 08:01:13 +0000 | [diff] [blame] | 86 | ], |
| 87 | }], |
| 88 | ['OS=="win" and v8_enable_i18n_support==1', { |
| 89 | 'dependencies': [ |
machenbach@chromium.org | 528ce02 | 2013-09-23 14:09:36 +0000 | [diff] [blame] | 90 | '<(icu_gyp_path):icudata', |
danno@chromium.org | bee5199 | 2013-07-10 14:57:15 +0000 | [diff] [blame] | 91 | ], |
| 92 | }], |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 93 | ], |
| 94 | }, |
| 95 | { |
| 96 | 'target_name': 'd8_js2c', |
| 97 | 'type': 'none', |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 98 | 'variables': { |
| 99 | 'js_files': [ |
| 100 | 'd8.js', |
danno@chromium.org | 160a7b0 | 2011-04-18 15:51:38 +0000 | [diff] [blame] | 101 | 'macros.py', |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 102 | ], |
| 103 | }, |
kmillikin@chromium.org | 7c2628c | 2011-08-10 11:27:35 +0000 | [diff] [blame] | 104 | 'conditions': [ |
| 105 | [ 'want_separate_host_toolset==1', { |
| 106 | 'toolsets': ['host'], |
| 107 | }, { |
| 108 | 'toolsets': ['target'], |
| 109 | }] |
| 110 | ], |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 111 | 'actions': [ |
| 112 | { |
| 113 | 'action_name': 'd8_js2c', |
| 114 | 'inputs': [ |
| 115 | '../tools/js2c.py', |
| 116 | '<@(js_files)', |
| 117 | ], |
| 118 | 'outputs': [ |
| 119 | '<(SHARED_INTERMEDIATE_DIR)/d8-js.cc', |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 120 | ], |
| 121 | 'action': [ |
| 122 | 'python', |
| 123 | '../tools/js2c.py', |
| 124 | '<@(_outputs)', |
| 125 | 'D8', |
kmillikin@chromium.org | 7c2628c | 2011-08-10 11:27:35 +0000 | [diff] [blame] | 126 | 'off', # compress startup data |
ager@chromium.org | 5f0c45f | 2010-12-17 08:51:21 +0000 | [diff] [blame] | 127 | '<@(js_files)' |
| 128 | ], |
| 129 | }, |
| 130 | ], |
| 131 | } |
| 132 | ], |
| 133 | } |