OLD | NEW |
1 # Copyright 2009 the V8 project authors. All rights reserved. | 1 # Copyright 2009 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 12 matching lines...) Expand all Loading... |
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': { | 29 'variables': { |
30 'chromium_code': 1, | 30 'chromium_code': 1, |
31 'msvs_use_common_release': 0, | 31 'msvs_use_common_release': 0, |
32 'gcc_version%': 'unknown', | 32 'gcc_version%': 'unknown', |
33 'base_source_files': [ | 33 'target_arch%': 'ia32', |
34 '../../src/arm/assembler-arm-inl.h', | 34 'v8_use_snapshot%': 'true', |
35 '../../src/arm/assembler-arm.cc', | |
36 '../../src/arm/assembler-arm.h', | |
37 '../../src/arm/builtins-arm.cc', | |
38 '../../src/arm/codegen-arm.cc', | |
39 '../../src/arm/codegen-arm.h', | |
40 '../../src/arm/constants-arm.h', | |
41 '../../src/arm/cpu-arm.cc', | |
42 '../../src/arm/debug-arm.cc', | |
43 '../../src/arm/disasm-arm.cc', | |
44 '../../src/arm/frames-arm.cc', | |
45 '../../src/arm/frames-arm.h', | |
46 '../../src/arm/ic-arm.cc', | |
47 '../../src/arm/jump-target-arm.cc', | |
48 '../../src/arm/macro-assembler-arm.cc', | |
49 '../../src/arm/macro-assembler-arm.h', | |
50 '../../src/arm/regexp-macro-assembler-arm.cc', | |
51 '../../src/arm/regexp-macro-assembler-arm.h', | |
52 '../../src/arm/register-allocator-arm.cc', | |
53 '../../src/arm/simulator-arm.cc', | |
54 '../../src/arm/stub-cache-arm.cc', | |
55 '../../src/arm/virtual-frame-arm.cc', | |
56 '../../src/arm/virtual-frame-arm.h', | |
57 '../../src/ia32/assembler-ia32-inl.h', | |
58 '../../src/ia32/assembler-ia32.cc', | |
59 '../../src/ia32/assembler-ia32.h', | |
60 '../../src/ia32/builtins-ia32.cc', | |
61 '../../src/ia32/codegen-ia32.cc', | |
62 '../../src/ia32/codegen-ia32.h', | |
63 '../../src/ia32/cpu-ia32.cc', | |
64 '../../src/ia32/debug-ia32.cc', | |
65 '../../src/ia32/disasm-ia32.cc', | |
66 '../../src/ia32/frames-ia32.cc', | |
67 '../../src/ia32/frames-ia32.h', | |
68 '../../src/ia32/ic-ia32.cc', | |
69 '../../src/ia32/jump-target-ia32.cc', | |
70 '../../src/ia32/macro-assembler-ia32.cc', | |
71 '../../src/ia32/macro-assembler-ia32.h', | |
72 '../../src/ia32/regexp-macro-assembler-ia32.cc', | |
73 '../../src/ia32/regexp-macro-assembler-ia32.h', | |
74 '../../src/ia32/register-allocator-ia32.cc', | |
75 '../../src/ia32/stub-cache-ia32.cc', | |
76 '../../src/ia32/virtual-frame-ia32.cc', | |
77 '../../src/ia32/virtual-frame-ia32.h', | |
78 '../../src/third_party/dtoa/dtoa.c', | |
79 '../../src/accessors.cc', | |
80 '../../src/accessors.h', | |
81 '../../src/allocation.cc', | |
82 '../../src/allocation.h', | |
83 '../../src/api.cc', | |
84 '../../src/api.h', | |
85 '../../src/apiutils.h', | |
86 '../../src/arguments.h', | |
87 '../../src/assembler.cc', | |
88 '../../src/assembler.h', | |
89 '../../src/ast.cc', | |
90 '../../src/ast.h', | |
91 '../../src/bootstrapper.cc', | |
92 '../../src/bootstrapper.h', | |
93 '../../src/builtins.cc', | |
94 '../../src/builtins.h', | |
95 '../../src/bytecodes-irregexp.h', | |
96 '../../src/char-predicates-inl.h', | |
97 '../../src/char-predicates.h', | |
98 '../../src/checks.cc', | |
99 '../../src/checks.h', | |
100 '../../src/code-stubs.cc', | |
101 '../../src/code-stubs.h', | |
102 '../../src/code.h', | |
103 '../../src/codegen-inl.h', | |
104 '../../src/codegen.cc', | |
105 '../../src/codegen.h', | |
106 '../../src/compilation-cache.cc', | |
107 '../../src/compilation-cache.h', | |
108 '../../src/compiler.cc', | |
109 '../../src/compiler.h', | |
110 '../../src/contexts.cc', | |
111 '../../src/contexts.h', | |
112 '../../src/conversions-inl.h', | |
113 '../../src/conversions.cc', | |
114 '../../src/conversions.h', | |
115 '../../src/counters.cc', | |
116 '../../src/counters.h', | |
117 '../../src/cpu.h', | |
118 '../../src/dateparser.cc', | |
119 '../../src/dateparser.h', | |
120 '../../src/dateparser-inl.h', | |
121 '../../src/debug.cc', | |
122 '../../src/debug.h', | |
123 '../../src/debug-agent.cc', | |
124 '../../src/debug-agent.h', | |
125 '../../src/disasm.h', | |
126 '../../src/disassembler.cc', | |
127 '../../src/disassembler.h', | |
128 '../../src/dtoa-config.c', | |
129 '../../src/execution.cc', | |
130 '../../src/execution.h', | |
131 '../../src/factory.cc', | |
132 '../../src/factory.h', | |
133 '../../src/flag-definitions.h', | |
134 '../../src/flags.cc', | |
135 '../../src/flags.h', | |
136 '../../src/frames-inl.h', | |
137 '../../src/frames.cc', | |
138 '../../src/frames.h', | |
139 '../../src/frame-element.h', | |
140 '../../src/func-name-inferrer.cc', | |
141 '../../src/func-name-inferrer.h', | |
142 '../../src/global-handles.cc', | |
143 '../../src/global-handles.h', | |
144 '../../src/globals.h', | |
145 '../../src/handles-inl.h', | |
146 '../../src/handles.cc', | |
147 '../../src/handles.h', | |
148 '../../src/hashmap.cc', | |
149 '../../src/hashmap.h', | |
150 '../../src/heap-inl.h', | |
151 '../../src/heap.cc', | |
152 '../../src/heap.h', | |
153 '../../src/ic-inl.h', | |
154 '../../src/ic.cc', | |
155 '../../src/ic.h', | |
156 '../../src/interpreter-irregexp.cc', | |
157 '../../src/interpreter-irregexp.h', | |
158 '../../src/jump-target.cc', | |
159 '../../src/jump-target.h', | |
160 '../../src/jump-target-inl.h', | |
161 '../../src/jsregexp-inl.h', | |
162 '../../src/jsregexp.cc', | |
163 '../../src/jsregexp.h', | |
164 '../../src/list-inl.h', | |
165 '../../src/list.h', | |
166 '../../src/log.cc', | |
167 '../../src/log-inl.h', | |
168 '../../src/log.h', | |
169 '../../src/log-utils.cc', | |
170 '../../src/log-utils.h', | |
171 '../../src/macro-assembler.h', | |
172 '../../src/mark-compact.cc', | |
173 '../../src/mark-compact.h', | |
174 '../../src/memory.h', | |
175 '../../src/messages.cc', | |
176 '../../src/messages.h', | |
177 '../../src/natives.h', | |
178 '../../src/objects-debug.cc', | |
179 '../../src/objects-inl.h', | |
180 '../../src/objects.cc', | |
181 '../../src/objects.h', | |
182 '../../src/oprofile-agent.h', | |
183 '../../src/oprofile-agent.cc', | |
184 '../../src/parser.cc', | |
185 '../../src/parser.h', | |
186 '../../src/platform-freebsd.cc', | |
187 '../../src/platform-linux.cc', | |
188 '../../src/platform-macos.cc', | |
189 '../../src/platform-nullos.cc', | |
190 '../../src/platform-posix.cc', | |
191 '../../src/platform-win32.cc', | |
192 '../../src/platform.h', | |
193 '../../src/prettyprinter.cc', | |
194 '../../src/prettyprinter.h', | |
195 '../../src/property.cc', | |
196 '../../src/property.h', | |
197 '../../src/regexp-macro-assembler-irregexp-inl.h', | |
198 '../../src/regexp-macro-assembler-irregexp.cc', | |
199 '../../src/regexp-macro-assembler-irregexp.h', | |
200 '../../src/regexp-macro-assembler-tracer.cc', | |
201 '../../src/regexp-macro-assembler-tracer.h', | |
202 '../../src/regexp-macro-assembler.cc', | |
203 '../../src/regexp-macro-assembler.h', | |
204 '../../src/regexp-stack.cc', | |
205 '../../src/regexp-stack.h', | |
206 '../../src/register-allocator.h', | |
207 '../../src/register-allocator-inl.h', | |
208 '../../src/register-allocator.cc', | |
209 '../../src/rewriter.cc', | |
210 '../../src/rewriter.h', | |
211 '../../src/runtime.cc', | |
212 '../../src/runtime.h', | |
213 '../../src/scanner.cc', | |
214 '../../src/scanner.h', | |
215 '../../src/scopeinfo.cc', | |
216 '../../src/scopeinfo.h', | |
217 '../../src/scopes.cc', | |
218 '../../src/scopes.h', | |
219 '../../src/serialize.cc', | |
220 '../../src/serialize.h', | |
221 '../../src/shell.h', | |
222 '../../src/smart-pointer.h', | |
223 '../../src/snapshot-common.cc', | |
224 '../../src/snapshot.h', | |
225 '../../src/spaces-inl.h', | |
226 '../../src/spaces.cc', | |
227 '../../src/spaces.h', | |
228 '../../src/string-stream.cc', | |
229 '../../src/string-stream.h', | |
230 '../../src/stub-cache.cc', | |
231 '../../src/stub-cache.h', | |
232 '../../src/token.cc', | |
233 '../../src/token.h', | |
234 '../../src/top.cc', | |
235 '../../src/top.h', | |
236 '../../src/unicode-inl.h', | |
237 '../../src/unicode.cc', | |
238 '../../src/unicode.h', | |
239 '../../src/usage-analyzer.cc', | |
240 '../../src/usage-analyzer.h', | |
241 '../../src/utils.cc', | |
242 '../../src/utils.h', | |
243 '../../src/v8-counters.cc', | |
244 '../../src/v8-counters.h', | |
245 '../../src/v8.cc', | |
246 '../../src/v8.h', | |
247 '../../src/v8threads.cc', | |
248 '../../src/v8threads.h', | |
249 '../../src/variables.cc', | |
250 '../../src/variables.h', | |
251 '../../src/version.cc', | |
252 '../../src/version.h', | |
253 '../../src/virtual-frame.h', | |
254 '../../src/virtual-frame.cc', | |
255 '../../src/zone-inl.h', | |
256 '../../src/zone.cc', | |
257 '../../src/zone.h', | |
258 ], | |
259 'not_base_source_files': [ | |
260 # These files are #included by others and are not meant to be compiled | |
261 # directly. | |
262 '../../src/third_party/dtoa/dtoa.c', | |
263 ], | |
264 'd8_source_files': [ | |
265 '../../src/d8-debug.cc', | |
266 '../../src/d8-posix.cc', | |
267 '../../src/d8-readline.cc', | |
268 '../../src/d8-windows.cc', | |
269 '../../src/d8.cc', | |
270 ], | |
271 }, | 35 }, |
272 'includes': [ | 36 'includes': [ |
273 '../../../build/common.gypi', | 37 '../../../build/common.gypi', |
274 ], | 38 ], |
275 'target_defaults': { | 39 'target_defaults': { |
276 'defines': [ | 40 'defines': [ |
277 'ENABLE_LOGGING_AND_PROFILING', | 41 'ENABLE_LOGGING_AND_PROFILING', |
278 ], | 42 ], |
| 43 'conditions': [ |
| 44 ['target_arch=="arm"', { |
| 45 'defines': [ |
| 46 'V8_TARGET_ARCH_ARM', |
| 47 ], |
| 48 }], |
| 49 ['target_arch=="ia32"', { |
| 50 'defines': [ |
| 51 'V8_TARGET_ARCH_IA32', |
| 52 'V8_NATIVE_REGEXP', |
| 53 ], |
| 54 }], |
| 55 ], |
279 'configurations': { | 56 'configurations': { |
280 'Debug': { | 57 'Debug': { |
281 'defines': [ | 58 'defines': [ |
282 'DEBUG', | 59 'DEBUG', |
283 '_DEBUG', | 60 '_DEBUG', |
284 'ENABLE_DISASSEMBLER', | 61 'ENABLE_DISASSEMBLER', |
285 ], | 62 ], |
286 'msvs_settings': { | 63 'msvs_settings': { |
287 'VCCLCompilerTool': { | 64 'VCCLCompilerTool': { |
288 'Optimizations': '0', | 65 'Optimizations': '0', |
(...skipping 10 matching lines...) Expand all Loading... |
299 'cflags!': [ | 76 'cflags!': [ |
300 '-O2', | 77 '-O2', |
301 ], | 78 ], |
302 'cflags': [ | 79 'cflags': [ |
303 '-fomit-frame-pointer', | 80 '-fomit-frame-pointer', |
304 '-O3', | 81 '-O3', |
305 ], | 82 ], |
306 'conditions': [ | 83 'conditions': [ |
307 [ 'gcc_version=="44"', { | 84 [ 'gcc_version=="44"', { |
308 'cflags': [ | 85 'cflags': [ |
309 # Avoid gcc 4.4 strict aliasing issues in dtoa.c | 86 # Avoid gcc 4.4 strict aliasing issues in dtoa.c |
310 '-fno-strict-aliasing', | 87 '-fno-strict-aliasing', |
311 # Avoid crashes with gcc 4.4 in the v8 test suite. | 88 # Avoid crashes with gcc 4.4 in the v8 test suite. |
312 '-fno-tree-vrp', | 89 '-fno-tree-vrp', |
313 ], | 90 ], |
314 }], | 91 }], |
315 ], | 92 ], |
316 'cflags_cc': [ | 93 'cflags_cc': [ |
317 '-fno-rtti', | 94 '-fno-rtti', |
318 ], | 95 ], |
319 }], | 96 }], |
320 ['OS=="win"', { | 97 ['OS=="win"', { |
321 'msvs_configuration_attributes': { | 98 'msvs_configuration_attributes': { |
322 'OutputDirectory': '$(SolutionDir)$(ConfigurationName)', | 99 'OutputDirectory': '$(SolutionDir)$(ConfigurationName)', |
(...skipping 20 matching lines...) Expand all Loading... |
343 }], | 120 }], |
344 ], | 121 ], |
345 }, | 122 }, |
346 }, | 123 }, |
347 'xcode_settings': { | 124 'xcode_settings': { |
348 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', | 125 'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', |
349 'GCC_ENABLE_CPP_RTTI': 'NO', | 126 'GCC_ENABLE_CPP_RTTI': 'NO', |
350 }, | 127 }, |
351 }, | 128 }, |
352 'targets': [ | 129 'targets': [ |
353 # Targets that apply to any architecture. | |
354 { | 130 { |
355 'target_name': 'js2c', | 131 'target_name': 'v8', |
356 'type': 'none', | 132 'type': 'none', |
357 'variables': { | 133 'conditions': [ |
358 'library_files': [ | 134 ['v8_use_snapshot=="true"', { |
359 '../../src/runtime.js', | 135 'dependencies': ['v8_snapshot'], |
360 '../../src/v8natives.js', | 136 }, |
361 '../../src/array.js', | 137 { |
362 '../../src/string.js', | 138 'dependencies': ['v8_nosnapshot'], |
363 '../../src/uri.js', | 139 }], |
364 '../../src/math.js', | 140 ], |
365 '../../src/messages.js', | 141 'direct_dependent_settings': { |
366 '../../src/apinatives.js', | 142 'include_dirs': [ |
367 '../../src/debug-delay.js', | 143 '../../include', |
368 '../../src/mirror-delay.js', | |
369 '../../src/date-delay.js', | |
370 '../../src/json-delay.js', | |
371 '../../src/regexp-delay.js', | |
372 '../../src/macros.py', | |
373 ], | 144 ], |
374 }, | 145 }, |
| 146 }, |
| 147 { |
| 148 'target_name': 'v8_snapshot', |
| 149 'type': '<(library)', |
| 150 'dependencies': [ |
| 151 'mksnapshot', |
| 152 'js2c', |
| 153 'v8_base', |
| 154 ], |
| 155 'include_dirs+': [ |
| 156 '../../src', |
| 157 ], |
| 158 'sources': [ |
| 159 '<(SHARED_INTERMEDIATE_DIR)/libraries-empty.cc', |
| 160 '<(INTERMEDIATE_DIR)/snapshot.cc', |
| 161 ], |
375 'actions': [ | 162 'actions': [ |
376 { | 163 { |
377 'action_name': 'js2c', | 164 'action_name': 'run_mksnapshot', |
378 'inputs': [ | 165 'inputs': [ |
379 '../../tools/js2c.py', | 166 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)', |
380 '<@(library_files)', | |
381 ], | 167 ], |
382 'outputs': [ | 168 'outputs': [ |
383 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', | 169 '<(INTERMEDIATE_DIR)/snapshot.cc', |
384 '<(SHARED_INTERMEDIATE_DIR)/libraries-empty.cc', | 170 ], |
385 ], | 171 'action': ['<@(_inputs)', '<@(_outputs)'], |
386 'action': ['python', '../../tools/js2c.py', '<@(_outputs)', 'CORE', '<
@(library_files)'], | |
387 }, | 172 }, |
388 ], | 173 ], |
389 }, | 174 }, |
390 { | 175 { |
391 'target_name': 'd8_js2c', | 176 'target_name': 'v8_nosnapshot', |
392 'type': 'none', | 177 'type': '<(library)', |
393 'variables': { | 178 'dependencies': [ |
394 'library_files': [ | 179 'js2c', |
395 '../../src/d8.js', | 180 'v8_base', |
396 '../../src/macros.py', | 181 ], |
397 ], | 182 'include_dirs+': [ |
398 }, | 183 '../../src', |
399 'actions': [ | 184 ], |
400 { | 185 'sources': [ |
401 'action_name': 'js2c', | 186 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
402 'inputs': [ | 187 '../../src/snapshot-empty.cc', |
403 '../../tools/js2c.py', | |
404 '<@(library_files)', | |
405 ], | |
406 'extra_inputs': [ | |
407 ], | |
408 'outputs': [ | |
409 '<(SHARED_INTERMEDIATE_DIR)/d8-js.cc', | |
410 '<(SHARED_INTERMEDIATE_DIR)/d8-js-empty.cc', | |
411 ], | |
412 'action': ['python', '../../tools/js2c.py', '<@(_outputs)', 'D8', '<@(
library_files)'], | |
413 }, | |
414 ], | 188 ], |
415 }, | 189 }, |
416 | |
417 # Targets to build v8 for the native architecture (ia32). | |
418 { | 190 { |
419 'target_name': 'v8_base', | 191 'target_name': 'v8_base', |
420 'type': '<(library)', | 192 'type': '<(library)', |
421 'defines': [ | |
422 'V8_TARGET_ARCH_IA32', | |
423 'V8_NATIVE_REGEXP' | |
424 ], | |
425 'include_dirs+': [ | 193 'include_dirs+': [ |
426 '../../src', | 194 '../../src', |
427 '../../src/ia32', | 195 ], |
428 ], | |
429 'msvs_guid': 'EC8B7909-62AF-470D-A75D-E1D89C837142', | |
430 'sources': [ | 196 'sources': [ |
431 '<@(base_source_files)', | 197 '../../src/accessors.cc', |
432 ], | 198 '../../src/accessors.h', |
433 'sources!': [ | 199 '../../src/allocation.cc', |
434 '<@(not_base_source_files)', | 200 '../../src/allocation.h', |
435 ], | 201 '../../src/api.cc', |
436 'sources/': [ | 202 '../../src/api.h', |
437 ['exclude', '-arm\\.cc$'], | 203 '../../src/apiutils.h', |
438 ['exclude', 'src/platform-.*\\.cc$' ], | 204 '../../src/arguments.h', |
| 205 '../../src/assembler.cc', |
| 206 '../../src/assembler.h', |
| 207 '../../src/ast.cc', |
| 208 '../../src/ast.h', |
| 209 '../../src/bootstrapper.cc', |
| 210 '../../src/bootstrapper.h', |
| 211 '../../src/builtins.cc', |
| 212 '../../src/builtins.h', |
| 213 '../../src/bytecodes-irregexp.h', |
| 214 '../../src/char-predicates-inl.h', |
| 215 '../../src/char-predicates.h', |
| 216 '../../src/checks.cc', |
| 217 '../../src/checks.h', |
| 218 '../../src/code-stubs.cc', |
| 219 '../../src/code-stubs.h', |
| 220 '../../src/code.h', |
| 221 '../../src/codegen-inl.h', |
| 222 '../../src/codegen.cc', |
| 223 '../../src/codegen.h', |
| 224 '../../src/compilation-cache.cc', |
| 225 '../../src/compilation-cache.h', |
| 226 '../../src/compiler.cc', |
| 227 '../../src/compiler.h', |
| 228 '../../src/contexts.cc', |
| 229 '../../src/contexts.h', |
| 230 '../../src/conversions-inl.h', |
| 231 '../../src/conversions.cc', |
| 232 '../../src/conversions.h', |
| 233 '../../src/counters.cc', |
| 234 '../../src/counters.h', |
| 235 '../../src/cpu.h', |
| 236 '../../src/dateparser.cc', |
| 237 '../../src/dateparser.h', |
| 238 '../../src/dateparser-inl.h', |
| 239 '../../src/debug.cc', |
| 240 '../../src/debug.h', |
| 241 '../../src/debug-agent.cc', |
| 242 '../../src/debug-agent.h', |
| 243 '../../src/disasm.h', |
| 244 '../../src/disassembler.cc', |
| 245 '../../src/disassembler.h', |
| 246 '../../src/dtoa-config.c', |
| 247 '../../src/execution.cc', |
| 248 '../../src/execution.h', |
| 249 '../../src/factory.cc', |
| 250 '../../src/factory.h', |
| 251 '../../src/flag-definitions.h', |
| 252 '../../src/flags.cc', |
| 253 '../../src/flags.h', |
| 254 '../../src/frames-inl.h', |
| 255 '../../src/frames.cc', |
| 256 '../../src/frames.h', |
| 257 '../../src/frame-element.h', |
| 258 '../../src/func-name-inferrer.cc', |
| 259 '../../src/func-name-inferrer.h', |
| 260 '../../src/global-handles.cc', |
| 261 '../../src/global-handles.h', |
| 262 '../../src/globals.h', |
| 263 '../../src/handles-inl.h', |
| 264 '../../src/handles.cc', |
| 265 '../../src/handles.h', |
| 266 '../../src/hashmap.cc', |
| 267 '../../src/hashmap.h', |
| 268 '../../src/heap-inl.h', |
| 269 '../../src/heap.cc', |
| 270 '../../src/heap.h', |
| 271 '../../src/ic-inl.h', |
| 272 '../../src/ic.cc', |
| 273 '../../src/ic.h', |
| 274 '../../src/interpreter-irregexp.cc', |
| 275 '../../src/interpreter-irregexp.h', |
| 276 '../../src/jump-target.cc', |
| 277 '../../src/jump-target.h', |
| 278 '../../src/jump-target-inl.h', |
| 279 '../../src/jsregexp-inl.h', |
| 280 '../../src/jsregexp.cc', |
| 281 '../../src/jsregexp.h', |
| 282 '../../src/list-inl.h', |
| 283 '../../src/list.h', |
| 284 '../../src/log.cc', |
| 285 '../../src/log-inl.h', |
| 286 '../../src/log.h', |
| 287 '../../src/log-utils.cc', |
| 288 '../../src/log-utils.h', |
| 289 '../../src/macro-assembler.h', |
| 290 '../../src/mark-compact.cc', |
| 291 '../../src/mark-compact.h', |
| 292 '../../src/memory.h', |
| 293 '../../src/messages.cc', |
| 294 '../../src/messages.h', |
| 295 '../../src/natives.h', |
| 296 '../../src/objects-debug.cc', |
| 297 '../../src/objects-inl.h', |
| 298 '../../src/objects.cc', |
| 299 '../../src/objects.h', |
| 300 '../../src/oprofile-agent.h', |
| 301 '../../src/oprofile-agent.cc', |
| 302 '../../src/parser.cc', |
| 303 '../../src/parser.h', |
| 304 '../../src/platform.h', |
| 305 '../../src/prettyprinter.cc', |
| 306 '../../src/prettyprinter.h', |
| 307 '../../src/property.cc', |
| 308 '../../src/property.h', |
| 309 '../../src/regexp-macro-assembler-irregexp-inl.h', |
| 310 '../../src/regexp-macro-assembler-irregexp.cc', |
| 311 '../../src/regexp-macro-assembler-irregexp.h', |
| 312 '../../src/regexp-macro-assembler-tracer.cc', |
| 313 '../../src/regexp-macro-assembler-tracer.h', |
| 314 '../../src/regexp-macro-assembler.cc', |
| 315 '../../src/regexp-macro-assembler.h', |
| 316 '../../src/regexp-stack.cc', |
| 317 '../../src/regexp-stack.h', |
| 318 '../../src/register-allocator.h', |
| 319 '../../src/register-allocator-inl.h', |
| 320 '../../src/register-allocator.cc', |
| 321 '../../src/rewriter.cc', |
| 322 '../../src/rewriter.h', |
| 323 '../../src/runtime.cc', |
| 324 '../../src/runtime.h', |
| 325 '../../src/scanner.cc', |
| 326 '../../src/scanner.h', |
| 327 '../../src/scopeinfo.cc', |
| 328 '../../src/scopeinfo.h', |
| 329 '../../src/scopes.cc', |
| 330 '../../src/scopes.h', |
| 331 '../../src/serialize.cc', |
| 332 '../../src/serialize.h', |
| 333 '../../src/shell.h', |
| 334 '../../src/smart-pointer.h', |
| 335 '../../src/snapshot-common.cc', |
| 336 '../../src/snapshot.h', |
| 337 '../../src/spaces-inl.h', |
| 338 '../../src/spaces.cc', |
| 339 '../../src/spaces.h', |
| 340 '../../src/string-stream.cc', |
| 341 '../../src/string-stream.h', |
| 342 '../../src/stub-cache.cc', |
| 343 '../../src/stub-cache.h', |
| 344 '../../src/token.cc', |
| 345 '../../src/token.h', |
| 346 '../../src/top.cc', |
| 347 '../../src/top.h', |
| 348 '../../src/unicode-inl.h', |
| 349 '../../src/unicode.cc', |
| 350 '../../src/unicode.h', |
| 351 '../../src/usage-analyzer.cc', |
| 352 '../../src/usage-analyzer.h', |
| 353 '../../src/utils.cc', |
| 354 '../../src/utils.h', |
| 355 '../../src/v8-counters.cc', |
| 356 '../../src/v8-counters.h', |
| 357 '../../src/v8.cc', |
| 358 '../../src/v8.h', |
| 359 '../../src/v8threads.cc', |
| 360 '../../src/v8threads.h', |
| 361 '../../src/variables.cc', |
| 362 '../../src/variables.h', |
| 363 '../../src/version.cc', |
| 364 '../../src/version.h', |
| 365 '../../src/virtual-frame.h', |
| 366 '../../src/virtual-frame.cc', |
| 367 '../../src/zone-inl.h', |
| 368 '../../src/zone.cc', |
| 369 '../../src/zone.h', |
439 ], | 370 ], |
440 'conditions': [ | 371 'conditions': [ |
441 ['OS=="linux"', | 372 ['target_arch=="arm"', { |
442 { | 373 'include_dirs+': [ |
| 374 '../../src/arm', |
| 375 ], |
| 376 'sources': [ |
| 377 '../../src/arm/assembler-arm-inl.h', |
| 378 '../../src/arm/assembler-arm.cc', |
| 379 '../../src/arm/assembler-arm.h', |
| 380 '../../src/arm/builtins-arm.cc', |
| 381 '../../src/arm/codegen-arm.cc', |
| 382 '../../src/arm/codegen-arm.h', |
| 383 '../../src/arm/constants-arm.h', |
| 384 '../../src/arm/cpu-arm.cc', |
| 385 '../../src/arm/debug-arm.cc', |
| 386 '../../src/arm/disasm-arm.cc', |
| 387 '../../src/arm/frames-arm.cc', |
| 388 '../../src/arm/frames-arm.h', |
| 389 '../../src/arm/ic-arm.cc', |
| 390 '../../src/arm/jump-target-arm.cc', |
| 391 '../../src/arm/macro-assembler-arm.cc', |
| 392 '../../src/arm/macro-assembler-arm.h', |
| 393 '../../src/arm/regexp-macro-assembler-arm.cc', |
| 394 '../../src/arm/regexp-macro-assembler-arm.h', |
| 395 '../../src/arm/register-allocator-arm.cc', |
| 396 '../../src/arm/simulator-arm.cc', |
| 397 '../../src/arm/stub-cache-arm.cc', |
| 398 '../../src/arm/virtual-frame-arm.cc', |
| 399 '../../src/arm/virtual-frame-arm.h', |
| 400 ], |
| 401 }], |
| 402 ['target_arch=="ia32"', { |
| 403 'include_dirs+': [ |
| 404 '../../src/ia32', |
| 405 ], |
| 406 'sources': [ |
| 407 '../../src/ia32/assembler-ia32-inl.h', |
| 408 '../../src/ia32/assembler-ia32.cc', |
| 409 '../../src/ia32/assembler-ia32.h', |
| 410 '../../src/ia32/builtins-ia32.cc', |
| 411 '../../src/ia32/codegen-ia32.cc', |
| 412 '../../src/ia32/codegen-ia32.h', |
| 413 '../../src/ia32/cpu-ia32.cc', |
| 414 '../../src/ia32/debug-ia32.cc', |
| 415 '../../src/ia32/disasm-ia32.cc', |
| 416 '../../src/ia32/frames-ia32.cc', |
| 417 '../../src/ia32/frames-ia32.h', |
| 418 '../../src/ia32/ic-ia32.cc', |
| 419 '../../src/ia32/jump-target-ia32.cc', |
| 420 '../../src/ia32/macro-assembler-ia32.cc', |
| 421 '../../src/ia32/macro-assembler-ia32.h', |
| 422 '../../src/ia32/regexp-macro-assembler-ia32.cc', |
| 423 '../../src/ia32/regexp-macro-assembler-ia32.h', |
| 424 '../../src/ia32/register-allocator-ia32.cc', |
| 425 '../../src/ia32/stub-cache-ia32.cc', |
| 426 '../../src/ia32/virtual-frame-ia32.cc', |
| 427 '../../src/ia32/virtual-frame-ia32.h', |
| 428 ], |
| 429 }], |
| 430 ['OS=="linux"', { |
443 'link_settings': { | 431 'link_settings': { |
444 'libraries': [ | 432 'libraries': [ |
445 # Needed for clock_gettime() used by src/platform-linux.cc. | 433 # Needed for clock_gettime() used by src/platform-linux.cc. |
446 '-lrt', | 434 '-lrt', |
447 ], | 435 ]}, |
448 }, | 436 'sources': [ |
449 'sources/': [ | 437 '../../src/platform-linux.cc', |
450 ['include', 'src/platform-linux\\.cc$'], | 438 '../../src/platform-posix.cc' |
451 ['include', 'src/platform-posix\\.cc$'] | 439 ], |
452 ] | |
453 } | 440 } |
454 ], | 441 ], |
455 ['OS=="mac"', | 442 ['OS=="mac"', { |
456 { | 443 'sources': [ |
457 'sources/': [ | 444 '../../src/platform-macos.cc', |
458 ['include', 'src/platform-macos\\.cc$'], | 445 '../../src/platform-posix.cc' |
459 ['include', 'src/platform-posix\\.cc$'] | 446 ]}, |
460 ] | |
461 } | |
462 ], | 447 ], |
463 ['OS=="win"', { | 448 ['OS=="win"', { |
464 'sources/': [['include', 'src/platform-win32\\.cc$']], | 449 'sources': [ |
| 450 '../../src/platform-win32.cc', |
| 451 ], |
465 # 4355, 4800 came from common.vsprops | 452 # 4355, 4800 came from common.vsprops |
466 # 4018, 4244 were a per file config on dtoa-config.c | 453 # 4018, 4244 were a per file config on dtoa-config.c |
467 # TODO: It's probably possible and desirable to stop disabling the | 454 # TODO: It's probably possible and desirable to stop disabling the |
468 # dtoa-specific warnings by modifying dtoa as was done in Chromium | 455 # dtoa-specific warnings by modifying dtoa as was done in Chromium |
469 # r9255. Refer to that revision for details. | 456 # r9255. Refer to that revision for details. |
470 'msvs_disabled_warnings': [4355, 4800, 4018, 4244], | 457 'msvs_disabled_warnings': [4355, 4800, 4018, 4244], |
471 'link_settings': { | 458 'link_settings': { |
472 'libraries': [ '-lwinmm.lib' ], | 459 'libraries': [ '-lwinmm.lib' ], |
473 }, | 460 }, |
474 }], | 461 }], |
475 ], | 462 ], |
476 }, | 463 }, |
477 { | 464 { |
478 'target_name': 'v8_nosnapshot', | 465 'target_name': 'js2c', |
479 'type': '<(library)', | 466 'type': 'none', |
480 'defines': [ | 467 'variables': { |
481 'V8_TARGET_ARCH_IA32', | 468 'library_files': [ |
482 'V8_NATIVE_REGEXP' | 469 '../../src/runtime.js', |
483 ], | 470 '../../src/v8natives.js', |
484 'dependencies': [ | 471 '../../src/array.js', |
485 'js2c', | 472 '../../src/string.js', |
486 'v8_base', | 473 '../../src/uri.js', |
487 ], | 474 '../../src/math.js', |
488 'include_dirs': [ | 475 '../../src/messages.js', |
489 '../../src', | 476 '../../src/apinatives.js', |
490 ], | 477 '../../src/debug-delay.js', |
491 'sources': [ | 478 '../../src/mirror-delay.js', |
492 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', | 479 '../../src/date-delay.js', |
493 '../../src/snapshot-empty.cc', | 480 '../../src/json-delay.js', |
494 ], | 481 '../../src/regexp-delay.js', |
495 'export_dependent_settings': [ | 482 '../../src/macros.py', |
496 'v8_base', | 483 ], |
| 484 }, |
| 485 'actions': [ |
| 486 { |
| 487 'action_name': 'js2c', |
| 488 'inputs': [ |
| 489 '../../tools/js2c.py', |
| 490 '<@(library_files)', |
| 491 ], |
| 492 'outputs': [ |
| 493 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', |
| 494 '<(SHARED_INTERMEDIATE_DIR)/libraries-empty.cc', |
| 495 ], |
| 496 'action': [ |
| 497 'python', |
| 498 '../../tools/js2c.py', |
| 499 '<@(_outputs)', |
| 500 'CORE', |
| 501 '<@(library_files)' |
| 502 ], |
| 503 }, |
497 ], | 504 ], |
498 }, | 505 }, |
499 { | 506 { |
500 'target_name': 'mksnapshot', | 507 'target_name': 'mksnapshot', |
501 'type': 'executable', | 508 'type': 'executable', |
502 'dependencies': [ | 509 'dependencies': [ |
503 'v8_nosnapshot', | 510 'v8_nosnapshot', |
504 ], | 511 ], |
505 'msvs_guid': '865575D0-37E2-405E-8CBA-5F6C485B5A26', | 512 'include_dirs+': [ |
| 513 '../../src', |
| 514 ], |
506 'sources': [ | 515 'sources': [ |
507 '../../src/mksnapshot.cc', | 516 '../../src/mksnapshot.cc', |
508 ], | 517 ], |
509 }, | 518 }, |
510 { | 519 { |
511 'target_name': 'v8', | |
512 'type': '<(library)', | |
513 'defines': [ | |
514 'V8_TARGET_ARCH_IA32', | |
515 'V8_NATIVE_REGEXP' | |
516 ], | |
517 'dependencies': [ | |
518 'js2c', | |
519 'mksnapshot', | |
520 'v8_base', | |
521 ], | |
522 'msvs_guid': '21E22961-22BF-4493-BD3A-868F93DA5179', | |
523 'actions': [ | |
524 { | |
525 'action_name': 'mksnapshot', | |
526 'inputs': [ | |
527 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)', | |
528 ], | |
529 'outputs': [ | |
530 '<(INTERMEDIATE_DIR)/snapshot.cc', | |
531 ], | |
532 'action': ['<@(_inputs)', '<@(_outputs)'], | |
533 }, | |
534 ], | |
535 'include_dirs': [ | |
536 '../../src', | |
537 ], | |
538 'sources': [ | |
539 '<(SHARED_INTERMEDIATE_DIR)/libraries-empty.cc', | |
540 '<(INTERMEDIATE_DIR)/snapshot.cc', | |
541 ], | |
542 'direct_dependent_settings': { | |
543 'include_dirs': [ | |
544 '../../include', | |
545 ], | |
546 }, | |
547 'export_dependent_settings': [ | |
548 'v8_base', | |
549 ], | |
550 }, | |
551 { | |
552 'target_name': 'v8_shell', | 520 'target_name': 'v8_shell', |
553 'type': 'executable', | 521 'type': 'executable', |
554 'defines': [ | |
555 'V8_TARGET_ARCH_IA32', | |
556 'V8_NATIVE_REGEXP' | |
557 ], | |
558 'dependencies': [ | 522 'dependencies': [ |
559 'v8', | 523 'v8' |
560 ], | 524 ], |
561 'sources': [ | 525 'sources': [ |
562 '../../samples/shell.cc', | 526 '../../samples/shell.cc', |
563 ], | 527 ], |
564 'conditions': [ | |
565 [ 'OS=="win"', { | |
566 # This could be gotten by not setting chromium_code, if that's OK. | |
567 'defines': ['_CRT_SECURE_NO_WARNINGS'], | |
568 }], | |
569 ], | |
570 }, | |
571 ], | |
572 | |
573 'conditions': [ ['OS=="mac"', { 'targets': [ | |
574 # TODO(bradnelson): temporarily disable 'd8' target on Windows while | |
575 # we work fix the performance regressions. | |
576 # TODO(sgk): temporarily disable 'd8' target on Linux while | |
577 # we work out getting the readline library on all the systems. | |
578 { | |
579 'target_name': 'd8', | |
580 'type': 'executable', | |
581 'dependencies': [ | |
582 'd8_js2c', | |
583 'v8', | |
584 ], | |
585 'defines': [ | |
586 'V8_TARGET_ARCH_IA32', | |
587 'V8_NATIVE_REGEXP' | |
588 ], | |
589 'include_dirs': [ | |
590 '../../src', | |
591 ], | |
592 'sources': [ | |
593 '<(SHARED_INTERMEDIATE_DIR)/d8-js.cc', | |
594 '<@(d8_source_files)', | |
595 ], | |
596 'conditions': [ | |
597 [ 'OS=="linux"', { | |
598 'sources!': [ '../../src/d8-windows.cc' ], | |
599 'link_settings': { 'libraries': [ '-lreadline' ] }, | |
600 }], | |
601 [ 'OS=="mac"', { | |
602 'sources!': [ '../../src/d8-windows.cc' ], | |
603 'link_settings': { 'libraries': [ | |
604 '$(SDKROOT)/usr/lib/libreadline.dylib' | |
605 ]}, | |
606 }], | |
607 [ 'OS=="win"', { | |
608 'sources!': [ '../../src/d8-readline.cc', '../../src/d8-posix.cc' ], | |
609 }], | |
610 ], | |
611 }, | |
612 # TODO(sgk): temporarily disable the arm targets on Linux while | |
613 # we work out how to refactor the generator and/or add configuration | |
614 # settings to the .gyp file to handle building both variants in | |
615 # the same output directory. | |
616 # | |
617 # ARM targets, to test ARM code generation. These use an ARM simulator | |
618 # (src/simulator-arm.cc). The ARM targets are not snapshot-enabled. | |
619 { | |
620 'target_name': 'v8_arm', | |
621 'type': '<(library)', | |
622 'dependencies': [ | |
623 'js2c', | |
624 ], | |
625 'defines': [ | |
626 'V8_TARGET_ARCH_ARM', | |
627 ], | |
628 'include_dirs+': [ | |
629 '../../src', | |
630 '../../src/arm', | |
631 ], | |
632 'sources': [ | |
633 '<@(base_source_files)', | |
634 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', | |
635 '../../src/snapshot-empty.cc', | |
636 ], | |
637 'sources!': [ | |
638 '<@(not_base_source_files)', | |
639 ], | |
640 'sources/': [ | |
641 ['exclude', '-ia32\\.cc$'], | |
642 ['exclude', 'src/platform-.*\\.cc$' ], | |
643 ], | |
644 'direct_dependent_settings': { | |
645 'include_dirs': [ | |
646 '../../include', | |
647 ], | |
648 }, | |
649 'conditions': [ | |
650 ['OS=="linux"', | |
651 { | |
652 'sources/': [ | |
653 ['include', 'src/platform-linux\\.cc$'], | |
654 ['include', 'src/platform-posix\\.cc$'] | |
655 ] | |
656 } | |
657 ], | |
658 ['OS=="mac"', | |
659 { | |
660 'sources/': [ | |
661 ['include', 'src/platform-macos\\.cc$'], | |
662 ['include', 'src/platform-posix\\.cc$'] | |
663 ] | |
664 } | |
665 ], | |
666 ['OS=="win"', { | |
667 'sources/': [['include', 'src/platform-win32\\.cc$']], | |
668 # 4355, 4800 came from common.vsprops | |
669 # 4018, 4244 were a per file config on dtoa-config.c | |
670 # TODO: It's probably possible and desirable to stop disabling the | |
671 # dtoa-specific warnings by modifying dtoa as was done in Chromium | |
672 # r9255. Refer to that revision for details. | |
673 'msvs_disabled_warnings': [4355, 4800, 4018, 4244], | |
674 }], | |
675 ], | |
676 }, | |
677 { | |
678 'target_name': 'v8_shell_arm', | |
679 'type': 'executable', | |
680 'dependencies': [ | |
681 'v8_arm', | |
682 ], | |
683 'defines': [ | |
684 'V8_TARGET_ARCH_ARM', | |
685 ], | |
686 'sources': [ | |
687 '../../samples/shell.cc', | |
688 ], | |
689 'conditions': [ | 528 'conditions': [ |
690 [ 'OS=="win"', { | 529 [ 'OS=="win"', { |
691 # This could be gotten by not setting chromium_code, if that's OK. | 530 # This could be gotten by not setting chromium_code, if that's OK. |
692 'defines': ['_CRT_SECURE_NO_WARNINGS'], | 531 'defines': ['_CRT_SECURE_NO_WARNINGS'], |
693 }], | 532 }], |
694 ], | 533 ], |
695 }, | 534 }, |
696 { | |
697 'target_name': 'd8_arm', | |
698 'type': 'executable', | |
699 'dependencies': [ | |
700 'd8_js2c', | |
701 'v8_arm', | |
702 ], | |
703 'defines': [ | |
704 'V8_TARGET_ARCH_ARM', | |
705 ], | |
706 'include_dirs': [ | |
707 '../../src', | |
708 ], | |
709 'sources': [ | |
710 '<(SHARED_INTERMEDIATE_DIR)/d8-js.cc', | |
711 '<@(d8_source_files)', | |
712 ], | |
713 'conditions': [ | |
714 [ 'OS=="linux"', { | |
715 'sources!': [ '../../src/d8-windows.cc' ], | |
716 'link_settings': { 'libraries': [ '-lreadline' ] }, | |
717 }], | |
718 [ 'OS=="mac"', { | |
719 'sources!': [ '../../src/d8-windows.cc' ], | |
720 'link_settings': { 'libraries': [ | |
721 '$(SDKROOT)/usr/lib/libreadline.dylib' | |
722 ]}, | |
723 }], | |
724 [ 'OS=="win"', { | |
725 'sources!': [ '../../src/d8-readline.cc', '../../src/d8-posix.cc' ], | |
726 }], | |
727 ], | |
728 }, | |
729 ]}], # OS != "linux" (temporary, TODO(sgk)) | |
730 | |
731 | |
732 ['OS=="win"', { | |
733 'target_defaults': { | |
734 'defines': [ | |
735 '_USE_32BIT_TIME_T', | |
736 '_CRT_SECURE_NO_DEPRECATE', | |
737 '_CRT_NONSTDC_NO_DEPRECATE', | |
738 ], | |
739 'msvs_settings': { | |
740 'VCLinkerTool': { | |
741 'AdditionalOptions': '/IGNORE:4221 /NXCOMPAT', | |
742 }, | |
743 }, | |
744 }, | |
745 }], | |
746 ], | 535 ], |
747 } | 536 } |
OLD | NEW |