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

Side by Side Diff: dart/runtime/bin/bin.gypi

Issue 119673004: Version 1.1.0-dev.5.2 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 6 years, 11 months 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 | « dart/dart.gyp ('k') | dart/runtime/bin/dartutils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 # for details. All rights reserved. Use of this source code is governed by a 2 # for details. All rights reserved. Use of this source code is governed by a
3 # BSD-style license that can be found in the LICENSE file. 3 # BSD-style license that can be found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'gen_source_dir': '<(SHARED_INTERMEDIATE_DIR)', 7 'gen_source_dir': '<(SHARED_INTERMEDIATE_DIR)',
8 8
9 'io_cc_file': '<(gen_source_dir)/io_gen.cc', 9 'io_cc_file': '<(gen_source_dir)/io_gen.cc',
10 'io_patch_cc_file': '<(gen_source_dir)/io_patch_gen.cc', 10 'io_patch_cc_file': '<(gen_source_dir)/io_patch_gen.cc',
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 # versions of functions and adding necessary conversions. 198 # versions of functions and adding necessary conversions.
199 'configurations': { 199 'configurations': {
200 'Common_Base': { 200 'Common_Base': {
201 'msvs_configuration_attributes': { 201 'msvs_configuration_attributes': {
202 'CharacterSet': '0', 202 'CharacterSet': '0',
203 }, 203 },
204 }, 204 },
205 }, 205 },
206 }], 206 }],
207 ], 207 ],
208 'configurations': {
209 'Dart_Android_Base': {
210 'target_conditions': [
211 ['_toolset=="target"', {
212 'defines': [
213 # Needed for sources outside of nss that include pr and ssl
214 # header files.
215 'MDCPUCFG="md/_linux.cfg"',
216 ],
217 }],
218 ],
219 },
220 },
208 }, 221 },
209 { 222 {
210 'target_name': 'libdart_withcore', 223 'target_name': 'libdart_withcore',
211 'type': 'static_library', 224 'type': 'static_library',
212 'toolsets':['target','host'], 225 'toolsets':['target','host'],
213 'dependencies': [ 226 'dependencies': [
214 'libdart_lib_withcore', 227 'libdart_lib_withcore',
215 'libdart_vm', 228 'libdart_vm',
216 'libjscre', 229 'libjscre',
217 'libdouble_conversion', 230 'libdouble_conversion',
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 # Include generated source files. 270 # Include generated source files.
258 '<(builtin_cc_file)', 271 '<(builtin_cc_file)',
259 '<(io_cc_file)', 272 '<(io_cc_file)',
260 '<(io_patch_cc_file)', 273 '<(io_patch_cc_file)',
261 ], 274 ],
262 'conditions': [ 275 'conditions': [
263 ['OS=="win"', { 276 ['OS=="win"', {
264 'link_settings': { 277 'link_settings': {
265 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], 278 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ],
266 }, 279 },
267 }], 280 }],
281 # Normally, we should not have flags conditional on OS==android, but
282 # here we must because gen_snapshot is compiled for the host during
283 # and Android cross-build, and these flags are not set anywhere else.
268 ['OS=="android"', { 284 ['OS=="android"', {
269 'link_settings': { 285 'link_settings': {
270 'libraries': [ '-ldl', '-lrt' ], 286 'libraries': [ '-ldl', '-lrt' ],
271 }, 287 },
272 }] 288 }]
273 ], 289 ],
274 }, 290 },
275 { 291 {
276 # Generate snapshot bin file. 292 # Generate snapshot bin file.
277 'target_name': 'generate_snapshot_bin', 293 'target_name': 'generate_snapshot_bin',
278 'type': 'none', 294 'type': 'none',
279 'toolsets':['host'], 295 'toolsets':['host'],
280 'dependencies': [ 296 'dependencies': [
281 'gen_snapshot#host', 297 'gen_snapshot#host',
282 ], 298 ],
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], 409 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ],
394 }, 410 },
395 # Generate an import library on Windows, by exporting a function. 411 # Generate an import library on Windows, by exporting a function.
396 # Extensions use this import library to link to the API in dart.exe. 412 # Extensions use this import library to link to the API in dart.exe.
397 'msvs_settings': { 413 'msvs_settings': {
398 'VCLinkerTool': { 414 'VCLinkerTool': {
399 'AdditionalOptions': [ '/EXPORT:Dart_True' ], 415 'AdditionalOptions': [ '/EXPORT:Dart_True' ],
400 }, 416 },
401 }, 417 },
402 }], 418 }],
403 ['OS=="linux"', { 419 ],
420 'configurations': {
421 'Dart_Linux_Base': {
404 # Have the linker add all symbols to the dynamic symbol table 422 # Have the linker add all symbols to the dynamic symbol table
405 # so that extensions can look them up dynamically in the binary. 423 # so that extensions can look them up dynamically in the binary.
406 'ldflags': [ 424 'ldflags': [
407 '-rdynamic', 425 '-rdynamic',
408 ], 426 ],
409 }], 427 },
410 ['OS=="android"', { 428 },
411 'link_settings': {
412 'ldflags': [
413 '-z',
414 'muldefs',
415 ],
416 'ldflags!': [
417 '-Wl,--exclude-libs=ALL,-shared',
418 ],
419 'libraries': [
420 '-llog',
421 '-lc',
422 '-lz',
423 ],
424 },
425 }],
426 ],
427 }, 429 },
428 { 430 {
429 # dart binary without any snapshot built in. 431 # dart binary without any snapshot built in.
430 'target_name': 'dart_no_snapshot', 432 'target_name': 'dart_no_snapshot',
431 'type': 'executable', 433 'type': 'executable',
432 'dependencies': [ 434 'dependencies': [
433 'libdart_withcore', 435 'libdart_withcore',
434 'libdart_builtin', 436 'libdart_builtin',
435 'libdart_io', 437 'libdart_io',
436 'generate_resources_cc_file#host', 438 'generate_resources_cc_file#host',
(...skipping 24 matching lines...) Expand all
461 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], 463 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ],
462 }, 464 },
463 # Generate an import library on Windows, by exporting a function. 465 # Generate an import library on Windows, by exporting a function.
464 # Extensions use this import library to link to the API in dart.exe. 466 # Extensions use this import library to link to the API in dart.exe.
465 'msvs_settings': { 467 'msvs_settings': {
466 'VCLinkerTool': { 468 'VCLinkerTool': {
467 'AdditionalOptions': [ '/EXPORT:Dart_True' ], 469 'AdditionalOptions': [ '/EXPORT:Dart_True' ],
468 }, 470 },
469 }, 471 },
470 }], 472 }],
471 ['OS=="linux"', { 473 ],
474 'configurations': {
475 'Dart_Linux_Base': {
472 # Have the linker add all symbols to the dynamic symbol table 476 # Have the linker add all symbols to the dynamic symbol table
473 # so that extensions can look them up dynamically in the binary. 477 # so that extensions can look them up dynamically in the binary.
474 'ldflags': [ 478 'ldflags': [
475 '-rdynamic', 479 '-rdynamic',
476 ], 480 ],
477 }], 481 },
478 482 },
479 ['OS=="android"', {
480 'link_settings': {
481 'ldflags': [
482 '-z',
483 'muldefs',
484 ],
485 'ldflags!': [
486 '-Wl,--exclude-libs=ALL,-shared',
487 ],
488 'libraries': [
489 '-llog',
490 '-lc',
491 '-lz',
492 ],
493 },
494 }],
495 ],
496 }, 483 },
497 { 484 {
498 'target_name': 'process_test', 485 'target_name': 'process_test',
499 'type': 'executable', 486 'type': 'executable',
500 'sources': [ 487 'sources': [
501 'process_test.cc', 488 'process_test.cc',
502 ] 489 ]
503 }, 490 },
504 { 491 {
505 'target_name': 'run_vm_tests', 492 'target_name': 'run_vm_tests',
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
544 ['include', 'builtin_natives.cc'], 531 ['include', 'builtin_natives.cc'],
545 ['include', '_gen\\.cc$'], 532 ['include', '_gen\\.cc$'],
546 ['include', '_test\\.(cc|h)$'], 533 ['include', '_test\\.(cc|h)$'],
547 ], 534 ],
548 'conditions': [ 535 'conditions': [
549 ['OS=="win"', { 536 ['OS=="win"', {
550 'link_settings': { 537 'link_settings': {
551 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], 538 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ],
552 }, 539 },
553 }], 540 }],
554 ['OS=="android"', {
555
556 'link_settings': {
557 'ldflags': [
558 '-z',
559 'muldefs',
560 ],
561 'ldflags!': [
562 '-Wl,--exclude-libs=ALL,-shared',
563 ],
564 'libraries': [
565 '-Wl,--start-group',
566 '-Wl,--end-group',
567 '-llog',
568 '-lc',
569 '-lz',
570 ],
571 },
572 }],
573 ], 541 ],
574 }, 542 },
575 { 543 {
576 'target_name': 'run_vm_tests.host', 544 'target_name': 'run_vm_tests.host',
577 'type': 'executable', 545 'type': 'executable',
578 'toolsets':['host'], 546 'toolsets':['host'],
579 'dependencies': [ 547 'dependencies': [
580 'libdart_withcore', 548 'libdart_withcore',
581 'libdart_builtin', 549 'libdart_builtin',
582 'libdart_io', 550 'libdart_io',
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 ['include', '_test\\.(cc|h)$'], 585 ['include', '_test\\.(cc|h)$'],
618 ], 586 ],
619 'conditions': [ 587 'conditions': [
620 ['OS=="win"', { 588 ['OS=="win"', {
621 'link_settings': { 589 'link_settings': {
622 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], 590 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ],
623 }, 591 },
624 }], 592 }],
625 ], 593 ],
626 }, 594 },
595 {
596 'target_name': 'test_extension',
597 'type': 'shared_library',
598 'dependencies': [
599 'dart',
600 ],
601 'include_dirs': [
602 '..',
603 ],
604 'cflags!': [
605 '-Wnon-virtual-dtor',
606 '-Woverloaded-virtual',
607 '-fno-rtti',
608 '-fvisibility-inlines-hidden',
609 '-Wno-conversion-null',
610 ],
611 'sources': [
612 'test_extension.c',
613 'test_extension_dllmain_win.cc',
614 ],
615 'defines': [
616 # The only effect of DART_SHARED_LIB is to export the Dart API.
617 'DART_SHARED_LIB',
618 ],
619 'conditions': [
620 ['OS=="win"', {
621 'msvs_settings': {
622 'VCLinkerTool': {
623 'AdditionalDependencies': [ 'dart.lib' ],
624 'AdditionalLibraryDirectories': [ '<(PRODUCT_DIR)' ],
625 },
626 },
627 }],
628 ['OS=="mac"', {
629 'xcode_settings': {
630 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ],
631 },
632 }],
633 ['OS=="linux"', {
634 'cflags': [
635 '-fPIC',
636 ],
637 }],
638 ],
639 },
627 ], 640 ],
628 'conditions': [
629 ['OS!="android"', {
630 'targets': [
631 {
632 'target_name': 'test_extension',
633 'type': 'shared_library',
634 'dependencies': [
635 'dart',
636 ],
637 'include_dirs': [
638 '..',
639 ],
640 'cflags!': [
641 '-Wnon-virtual-dtor',
642 '-Woverloaded-virtual',
643 '-fno-rtti',
644 '-fvisibility-inlines-hidden',
645 '-Wno-conversion-null',
646 ],
647 'sources': [
648 'test_extension.c',
649 'test_extension_dllmain_win.cc',
650 ],
651 'defines': [
652 # The only effect of DART_SHARED_LIB is to export the Dart API.
653 'DART_SHARED_LIB',
654 ],
655 'conditions': [
656 ['OS=="win"', {
657 'msvs_settings': {
658 'VCLinkerTool': {
659 'AdditionalDependencies': [ 'dart.lib' ],
660 'AdditionalLibraryDirectories': [ '<(PRODUCT_DIR)' ],
661 },
662 },
663 }],
664 ['OS=="mac"', {
665 'xcode_settings': {
666 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ],
667 },
668 }],
669 ['OS=="linux"', {
670 'cflags': [
671 '-fPIC',
672 ],
673 }],
674 ],
675 },
676 ],
677 }],
678 ],
679 } 641 }
680
OLDNEW
« no previous file with comments | « dart/dart.gyp ('k') | dart/runtime/bin/dartutils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698