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