Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(490)

Side by Side Diff: tools/gyp/v8.gyp

Issue 351019: Enable mksnapshot on ARM when cross-compiling using gyp (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 'direct_dependent_settings': { 149 'direct_dependent_settings': {
150 'include_dirs': [ 150 'include_dirs': [
151 '../../include', 151 '../../include',
152 ], 152 ],
153 }, 153 },
154 }, 154 },
155 { 155 {
156 'target_name': 'v8_snapshot', 156 'target_name': 'v8_snapshot',
157 'type': '<(library)', 157 'type': '<(library)',
158 'dependencies': [ 158 'dependencies': [
159 'mksnapshot', 159 'mksnapshot#host',
160 'js2c', 160 'js2c#host',
161 'v8_base', 161 'v8_base',
162 ], 162 ],
163 'include_dirs+': [ 163 'include_dirs+': [
164 '../../src', 164 '../../src',
165 ], 165 ],
166 'sources': [ 166 'sources': [
167 '<(SHARED_INTERMEDIATE_DIR)/libraries-empty.cc', 167 '<(SHARED_INTERMEDIATE_DIR)/libraries-empty.cc',
168 '<(INTERMEDIATE_DIR)/snapshot.cc', 168 '<(INTERMEDIATE_DIR)/snapshot.cc',
169 ], 169 ],
170 'actions': [ 170 'actions': [
171 { 171 {
172 'action_name': 'run_mksnapshot', 172 'action_name': 'run_mksnapshot',
173 'inputs': [ 173 'inputs': [
174 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)', 174 '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mksnapshot<(EXECUTABLE_SUFFIX)',
175 ], 175 ],
176 'outputs': [ 176 'outputs': [
177 '<(INTERMEDIATE_DIR)/snapshot.cc', 177 '<(INTERMEDIATE_DIR)/snapshot.cc',
178 ], 178 ],
179 'action': ['<@(_inputs)', '<@(_outputs)'], 179 'action': ['<@(_inputs)', '<@(_outputs)'],
180 }, 180 },
181 ], 181 ],
182 }, 182 },
183 { 183 {
184 'target_name': 'v8_nosnapshot', 184 'target_name': 'v8_nosnapshot',
185 'type': '<(library)', 185 'type': '<(library)',
186 'toolsets': ['host', 'target'],
186 'dependencies': [ 187 'dependencies': [
187 'js2c', 188 'js2c#host',
188 'v8_base', 189 'v8_base',
189 ], 190 ],
190 'include_dirs+': [ 191 'include_dirs+': [
191 '../../src', 192 '../../src',
192 ], 193 ],
193 'sources': [ 194 'sources': [
194 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc', 195 '<(SHARED_INTERMEDIATE_DIR)/libraries.cc',
195 '../../src/snapshot-empty.cc', 196 '../../src/snapshot-empty.cc',
196 ], 197 ],
198 'conditions': [
199 # The ARM assembler assumes the host is 32 bits, so force building
200 # 32-bit host tools.
201 # TODO(piman): This assumes that the host is ia32 or amd64. Fixing the
202 # code would be better
203 ['target_arch=="arm" and _toolset=="host"', {
204 'cflags': ['-m32'],
205 'ldflags': ['-m32'],
206 }]
207 ]
197 }, 208 },
198 { 209 {
199 'target_name': 'v8_base', 210 'target_name': 'v8_base',
200 'type': '<(library)', 211 'type': '<(library)',
212 'toolsets': ['host', 'target'],
201 'include_dirs+': [ 213 'include_dirs+': [
202 '../../src', 214 '../../src',
203 ], 215 ],
204 'sources': [ 216 'sources': [
205 '../../src/accessors.cc', 217 '../../src/accessors.cc',
206 '../../src/accessors.h', 218 '../../src/accessors.h',
207 '../../src/allocation.cc', 219 '../../src/allocation.cc',
208 '../../src/allocation.h', 220 '../../src/allocation.h',
209 '../../src/api.cc', 221 '../../src/api.cc',
210 '../../src/api.h', 222 '../../src/api.h',
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 '../../src/arm', 399 '../../src/arm',
388 ], 400 ],
389 'sources': [ 401 'sources': [
390 '../../src/arm/assembler-arm-inl.h', 402 '../../src/arm/assembler-arm-inl.h',
391 '../../src/arm/assembler-arm.cc', 403 '../../src/arm/assembler-arm.cc',
392 '../../src/arm/assembler-arm.h', 404 '../../src/arm/assembler-arm.h',
393 '../../src/arm/builtins-arm.cc', 405 '../../src/arm/builtins-arm.cc',
394 '../../src/arm/codegen-arm.cc', 406 '../../src/arm/codegen-arm.cc',
395 '../../src/arm/codegen-arm.h', 407 '../../src/arm/codegen-arm.h',
396 '../../src/arm/constants-arm.h', 408 '../../src/arm/constants-arm.h',
409 '../../src/arm/constants-arm.cc',
397 '../../src/arm/cpu-arm.cc', 410 '../../src/arm/cpu-arm.cc',
398 '../../src/arm/debug-arm.cc', 411 '../../src/arm/debug-arm.cc',
399 '../../src/arm/disasm-arm.cc', 412 '../../src/arm/disasm-arm.cc',
400 '../../src/arm/fast-codegen-arm.cc', 413 '../../src/arm/fast-codegen-arm.cc',
401 '../../src/arm/frames-arm.cc', 414 '../../src/arm/frames-arm.cc',
402 '../../src/arm/frames-arm.h', 415 '../../src/arm/frames-arm.h',
403 '../../src/arm/ic-arm.cc', 416 '../../src/arm/ic-arm.cc',
404 '../../src/arm/jump-target-arm.cc', 417 '../../src/arm/jump-target-arm.cc',
405 '../../src/arm/macro-assembler-arm.cc', 418 '../../src/arm/macro-assembler-arm.cc',
406 '../../src/arm/macro-assembler-arm.h', 419 '../../src/arm/macro-assembler-arm.h',
407 '../../src/arm/regexp-macro-assembler-arm.cc', 420 '../../src/arm/regexp-macro-assembler-arm.cc',
408 '../../src/arm/regexp-macro-assembler-arm.h', 421 '../../src/arm/regexp-macro-assembler-arm.h',
409 '../../src/arm/register-allocator-arm.cc', 422 '../../src/arm/register-allocator-arm.cc',
410 '../../src/arm/simulator-arm.cc', 423 '../../src/arm/simulator-arm.cc',
411 '../../src/arm/stub-cache-arm.cc', 424 '../../src/arm/stub-cache-arm.cc',
412 '../../src/arm/virtual-frame-arm.cc', 425 '../../src/arm/virtual-frame-arm.cc',
413 '../../src/arm/virtual-frame-arm.h', 426 '../../src/arm/virtual-frame-arm.h',
414 ], 427 ],
428 'conditions': [
429 # The ARM assembler assumes the host is 32 bits, so force building
430 # 32-bit host tools.
431 # TODO(piman): This assumes that the host is ia32 or amd64. Fixing
432 # the code would be better
433 ['_toolset=="host"', {
434 'cflags': ['-m32'],
435 'ldflags': ['-m32'],
436 }]
437 ]
415 }], 438 }],
416 ['target_arch=="ia32"', { 439 ['target_arch=="ia32"', {
417 'include_dirs+': [ 440 'include_dirs+': [
418 '../../src/ia32', 441 '../../src/ia32',
419 ], 442 ],
420 'sources': [ 443 'sources': [
421 '../../src/ia32/assembler-ia32-inl.h', 444 '../../src/ia32/assembler-ia32-inl.h',
422 '../../src/ia32/assembler-ia32.cc', 445 '../../src/ia32/assembler-ia32.cc',
423 '../../src/ia32/assembler-ia32.h', 446 '../../src/ia32/assembler-ia32.h',
424 '../../src/ia32/builtins-ia32.cc', 447 '../../src/ia32/builtins-ia32.cc',
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 'msvs_disabled_warnings': [4355, 4800, 4018, 4244], 524 'msvs_disabled_warnings': [4355, 4800, 4018, 4244],
502 'link_settings': { 525 'link_settings': {
503 'libraries': [ '-lwinmm.lib' ], 526 'libraries': [ '-lwinmm.lib' ],
504 }, 527 },
505 }], 528 }],
506 ], 529 ],
507 }, 530 },
508 { 531 {
509 'target_name': 'js2c', 532 'target_name': 'js2c',
510 'type': 'none', 533 'type': 'none',
534 'toolsets': ['host'],
511 'variables': { 535 'variables': {
512 'library_files': [ 536 'library_files': [
513 '../../src/runtime.js', 537 '../../src/runtime.js',
514 '../../src/v8natives.js', 538 '../../src/v8natives.js',
515 '../../src/array.js', 539 '../../src/array.js',
516 '../../src/string.js', 540 '../../src/string.js',
517 '../../src/uri.js', 541 '../../src/uri.js',
518 '../../src/math.js', 542 '../../src/math.js',
519 '../../src/messages.js', 543 '../../src/messages.js',
520 '../../src/apinatives.js', 544 '../../src/apinatives.js',
(...skipping 22 matching lines...) Expand all
543 '<@(_outputs)', 567 '<@(_outputs)',
544 'CORE', 568 'CORE',
545 '<@(library_files)' 569 '<@(library_files)'
546 ], 570 ],
547 }, 571 },
548 ], 572 ],
549 }, 573 },
550 { 574 {
551 'target_name': 'mksnapshot', 575 'target_name': 'mksnapshot',
552 'type': 'executable', 576 'type': 'executable',
577 'toolsets': ['host'],
553 'dependencies': [ 578 'dependencies': [
554 'v8_nosnapshot', 579 'v8_nosnapshot',
555 ], 580 ],
556 'include_dirs+': [ 581 'include_dirs+': [
557 '../../src', 582 '../../src',
558 ], 583 ],
559 'sources': [ 584 'sources': [
560 '../../src/mksnapshot.cc', 585 '../../src/mksnapshot.cc',
561 ], 586 ],
587 'conditions': [
588 # The ARM assembler assumes the host is 32 bits, so force building
589 # 32-bit host tools.
590 # TODO(piman): This assumes that the host is ia32 or amd64. Fixing
591 # the code would be better
592 ['target_arch=="arm" and _toolset=="host"', {
593 'cflags': ['-m32'],
594 'ldflags': ['-m32'],
595 }]
596 ]
562 }, 597 },
563 { 598 {
564 'target_name': 'v8_shell', 599 'target_name': 'v8_shell',
565 'type': 'executable', 600 'type': 'executable',
566 'dependencies': [ 601 'dependencies': [
567 'v8' 602 'v8'
568 ], 603 ],
569 'sources': [ 604 'sources': [
570 '../../samples/shell.cc', 605 '../../samples/shell.cc',
571 ], 606 ],
572 'conditions': [ 607 'conditions': [
573 [ 'OS=="win"', { 608 [ 'OS=="win"', {
574 # This could be gotten by not setting chromium_code, if that's OK. 609 # This could be gotten by not setting chromium_code, if that's OK.
575 'defines': ['_CRT_SECURE_NO_WARNINGS'], 610 'defines': ['_CRT_SECURE_NO_WARNINGS'],
576 }], 611 }],
577 ], 612 ],
578 }, 613 },
579 ], 614 ],
580 } 615 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698