OLD | NEW |
1 # Copyright 2012 the V8 project authors. All rights reserved. | 1 # Copyright 2012 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 |
(...skipping 14 matching lines...) Expand all Loading... |
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': { | 29 'variables': { |
30 'v8_code': 1, | 30 'v8_code': 1, |
31 'console%': '', | 31 'console%': '', |
32 # Enable support for Intel VTune. Supported on ia32/x64 only | 32 # Enable support for Intel VTune. Supported on ia32/x64 only |
33 'v8_enable_vtunejit%': 0, | 33 'v8_enable_vtunejit%': 0, |
34 'v8_enable_i18n_support%': 1, | 34 'v8_enable_i18n_support%': 1, |
| 35 'v8_toolset_for_d8%': 'target', |
35 }, | 36 }, |
36 'includes': ['../build/toolchain.gypi', '../build/features.gypi'], | 37 'includes': ['../build/toolchain.gypi', '../build/features.gypi'], |
37 'targets': [ | 38 'targets': [ |
38 { | 39 { |
39 'target_name': 'd8', | 40 'target_name': 'd8', |
40 'type': 'executable', | 41 'type': 'executable', |
41 'dependencies': [ | 42 'dependencies': [ |
42 '../tools/gyp/v8.gyp:v8', | 43 '../tools/gyp/v8.gyp:v8', |
43 ], | 44 ], |
44 # Generated source files need this explicitly: | 45 # Generated source files need this explicitly: |
45 'include_dirs+': [ | 46 'include_dirs+': [ |
46 '../src', | 47 '../src', |
47 ], | 48 ], |
48 'sources': [ | 49 'sources': [ |
49 'd8.cc', | 50 'd8.cc', |
50 ], | 51 ], |
51 'conditions': [ | 52 'conditions': [ |
| 53 [ 'want_separate_host_toolset==1', { |
| 54 'toolsets': [ '<(v8_toolset_for_d8)', ], |
| 55 }], |
52 [ 'console=="readline"', { | 56 [ 'console=="readline"', { |
53 'libraries': [ '-lreadline', ], | 57 'libraries': [ '-lreadline', ], |
54 'sources': [ 'd8-readline.cc' ], | 58 'sources': [ 'd8-readline.cc' ], |
55 }], | 59 }], |
56 [ 'component!="shared_library"', { | 60 [ 'component!="shared_library"', { |
57 'sources': [ 'd8-debug.cc', '<(SHARED_INTERMEDIATE_DIR)/d8-js.cc', ], | 61 'sources': [ 'd8-debug.cc', '<(SHARED_INTERMEDIATE_DIR)/d8-js.cc', ], |
58 'conditions': [ | 62 'conditions': [ |
59 [ 'want_separate_host_toolset==1', { | 63 [ 'want_separate_host_toolset==1', { |
60 'dependencies': [ | 64 'dependencies': [ |
61 'd8_js2c#host', | 65 'd8_js2c#host', |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 '<@(_outputs)', | 129 '<@(_outputs)', |
126 'D8', | 130 'D8', |
127 'off', # compress startup data | 131 'off', # compress startup data |
128 '<@(js_files)' | 132 '<@(js_files)' |
129 ], | 133 ], |
130 }, | 134 }, |
131 ], | 135 ], |
132 } | 136 } |
133 ], | 137 ], |
134 } | 138 } |
OLD | NEW |