Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 # We place most generated source files in LIB_DIR (rather than, say | 7 # We place most generated source files in LIB_DIR (rather than, say |
| 8 # SHARED_INTERMEDIATE_DIR) because it is toolset specific. This avoids | 8 # SHARED_INTERMEDIATE_DIR) because it is toolset specific. This avoids |
| 9 # two problems. First, if a generated source file has architecture specific | 9 # two problems. First, if a generated source file has architecture specific |
| 10 # code, we'll get two different files in two different directories. Second, | 10 # code, we'll get two different files in two different directories. Second, |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 180 { | 180 { |
| 181 'target_name': 'libdart_io', | 181 'target_name': 'libdart_io', |
| 182 'type': 'static_library', | 182 'type': 'static_library', |
| 183 'include_dirs': [ | 183 'include_dirs': [ |
| 184 '..', | 184 '..', |
| 185 ], | 185 ], |
| 186 'sources': [ | 186 'sources': [ |
| 187 'io_natives.h', | 187 'io_natives.h', |
| 188 'io_natives.cc', | 188 'io_natives.cc', |
| 189 ], | 189 ], |
| 190 'includes': [ | |
| 191 'io_impl_sources.gypi', | |
| 192 ], | |
| 193 'conditions': [ | 190 'conditions': [ |
| 194 [ 'dart_io_support==1', { | 191 [ 'dart_io_support==1', { |
| 195 'dependencies': [ | 192 'dependencies': [ |
| 196 'bin/net/ssl.gyp:libssl_dart', | 193 'bin/net/ssl.gyp:libssl_dart', |
| 197 ], | 194 ], |
| 195 'includes': [ | |
| 196 'io_impl_sources.gypi', | |
| 197 ], | |
| 198 }, | |
| 199 { | |
| 200 'includes': [ | |
| 201 'io_impl_sources_no_nss.gypi', | |
| 202 ], | |
| 198 }], | 203 }], |
| 199 ['OS=="win"', { | 204 ['OS=="win"', { |
| 200 # TODO(antonm): fix the implementation. | 205 # TODO(antonm): fix the implementation. |
| 201 # Current implementation accepts char* strings | 206 # Current implementation accepts char* strings |
| 202 # and therefore fails to compile once _UNICODE is | 207 # and therefore fails to compile once _UNICODE is |
| 203 # enabled. That should be addressed using -A | 208 # enabled. That should be addressed using -A |
| 204 # versions of functions and adding necessary conversions. | 209 # versions of functions and adding necessary conversions. |
| 205 'configurations': { | 210 'configurations': { |
| 206 'Common_Base': { | 211 'Common_Base': { |
| 207 'msvs_configuration_attributes': { | 212 'msvs_configuration_attributes': { |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 329 '--input_cc', '<(snapshot_in_cc_file)', | 334 '--input_cc', '<(snapshot_in_cc_file)', |
| 330 '--output', '<(snapshot_cc_file)', | 335 '--output', '<(snapshot_cc_file)', |
| 331 ], | 336 ], |
| 332 'message': 'Generating ''<(snapshot_cc_file)'' file.' | 337 'message': 'Generating ''<(snapshot_cc_file)'' file.' |
| 333 }, | 338 }, |
| 334 ] | 339 ] |
| 335 }, | 340 }, |
| 336 { | 341 { |
| 337 'target_name': 'generate_resources_cc_file', | 342 'target_name': 'generate_resources_cc_file', |
| 338 'type': 'none', | 343 'type': 'none', |
| 344 'toolsets':['host','target'], | |
| 339 'includes': [ | 345 'includes': [ |
| 340 'vmstats_sources.gypi', | 346 'vmstats_sources.gypi', |
| 341 ], | 347 ], |
| 342 'actions': [ | 348 'actions': [ |
| 343 { | 349 { |
| 344 'action_name': 'generate_resources_cc', | 350 'action_name': 'generate_resources_cc', |
| 345 'inputs': [ | 351 'inputs': [ |
| 346 '../tools/create_resources.py', | 352 '../tools/create_resources.py', |
| 347 '<@(_sources)', | 353 '<@(_sources)', |
| 348 ], | 354 ], |
| 349 'outputs': [ | 355 'outputs': [ |
| 350 '<(resources_cc_file)', | 356 '<(resources_cc_file)', |
| 351 ], | 357 ], |
| 352 'action': [ | 358 'action': [ |
| 353 'python', | 359 'python', |
| 354 'tools/create_resources.py', | 360 'tools/create_resources.py', |
| 355 '--output', '<(resources_cc_file)', | 361 '--output', '<(resources_cc_file)', |
| 356 '--root_prefix', 'bin/vmstats/', | 362 '--root_prefix', 'bin/vmstats/', |
| 357 '<@(_sources)', | 363 '<@(_sources)', |
| 358 ], | 364 ], |
| 359 'message': 'Generating ''<(resources_cc_file)'' file.' | 365 'message': 'Generating ''<(resources_cc_file)'' file.' |
| 360 }, | 366 }, |
| 361 ] | 367 ] |
| 362 }, | 368 }, |
| 363 { | 369 { |
| 364 # dart binary with a snapshot of corelibs built in. | 370 # dart binary with a snapshot of corelibs built in. |
| 365 'target_name': 'dart', | 371 'target_name': 'dart', |
| 366 'type': 'executable', | 372 'type': 'executable', |
| 373 'toolsets':['target'], | |
| 367 'dependencies': [ | 374 'dependencies': [ |
| 368 'libdart', | 375 'libdart', |
| 369 'libdart_builtin', | 376 'libdart_builtin', |
| 370 'libdart_io', | 377 'libdart_io', |
| 371 'generate_snapshot_file#host', | 378 'generate_snapshot_file#host', |
| 372 'generate_resources_cc_file', | 379 'generate_resources_cc_file#host', |
| 373 ], | 380 ], |
| 374 'include_dirs': [ | 381 'include_dirs': [ |
| 375 '..', | 382 '..', |
| 376 ], | 383 ], |
| 377 'sources': [ | 384 'sources': [ |
| 378 'main.cc', | 385 'main.cc', |
| 379 'builtin_natives.cc', | 386 'builtin_natives.cc', |
| 380 'builtin_nolib.cc', | 387 'builtin_nolib.cc', |
| 381 'builtin.h', | 388 'builtin.h', |
| 382 'io_natives.h', | 389 'io_natives.h', |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 404 }, | 411 }, |
| 405 }, | 412 }, |
| 406 }], | 413 }], |
| 407 ['OS=="linux"', { | 414 ['OS=="linux"', { |
| 408 # Have the linker add all symbols to the dynamic symbol table | 415 # Have the linker add all symbols to the dynamic symbol table |
| 409 # so that extensions can look them up dynamically in the binary. | 416 # so that extensions can look them up dynamically in the binary. |
| 410 'ldflags': [ | 417 'ldflags': [ |
| 411 '-rdynamic', | 418 '-rdynamic', |
| 412 ], | 419 ], |
| 413 }], | 420 }], |
| 421 ['OS=="android"', { | |
| 422 'link_settings': { | |
| 423 'ldflags': [ | |
| 424 # The libraries we need should all be in | |
| 425 # Lthird_party/skia/trunk/out/config/android-x86/Debug but | |
| 426 # As I (gram) want to avoid patching the Skia gyp files to build | |
| 427 # real libraries we'll just point to the location of the 'thin' | |
| 428 # libraries used by the Skia build for now. | |
| 429 # TODO(gram): We need to support debug vs release modes. | |
|
gram
2013/05/28 17:04:19
I think this comment can just be removed - it refe
Bill Hesse
2013/05/29 09:12:44
Done.
| |
| 430 # '<(skia_libs_location_android)', | |
| 431 '-z', | |
| 432 'muldefs', | |
| 433 ], | |
| 434 'ldflags!': [ | |
| 435 '-Wl,--exclude-libs=ALL,-shared', | |
| 436 ], | |
| 437 'libraries': [ | |
| 438 '-llog', | |
| 439 '-lc', | |
| 440 '-lz', | |
| 441 ], | |
| 442 }, | |
| 443 }], | |
| 414 ], | 444 ], |
| 415 }, | 445 }, |
| 416 { | 446 { |
| 417 # dart binary without any snapshot built in. | 447 # dart binary without any snapshot built in. |
| 418 'target_name': 'dart_no_snapshot', | 448 'target_name': 'dart_no_snapshot', |
| 419 'type': 'executable', | 449 'type': 'executable', |
| 450 'toolsets':['target'], | |
| 420 'dependencies': [ | 451 'dependencies': [ |
| 421 'libdart_withcore', | 452 'libdart_withcore', |
| 422 'libdart_builtin', | 453 'libdart_builtin', |
| 423 'libdart_io', | 454 'libdart_io', |
| 424 'generate_resources_cc_file', | 455 'generate_resources_cc_file#host', |
| 425 ], | 456 ], |
| 426 'include_dirs': [ | 457 'include_dirs': [ |
| 427 '..', | 458 '..', |
| 428 ], | 459 ], |
| 429 'sources': [ | 460 'sources': [ |
| 430 'main.cc', | 461 'main.cc', |
| 431 'builtin.cc', | 462 'builtin.cc', |
| 432 'builtin_natives.cc', | 463 'builtin_natives.cc', |
| 433 'builtin.h', | 464 'builtin.h', |
| 434 'io_natives.h', | 465 'io_natives.h', |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 460 }, | 491 }, |
| 461 }, | 492 }, |
| 462 }], | 493 }], |
| 463 ['OS=="linux"', { | 494 ['OS=="linux"', { |
| 464 # Have the linker add all symbols to the dynamic symbol table | 495 # Have the linker add all symbols to the dynamic symbol table |
| 465 # so that extensions can look them up dynamically in the binary. | 496 # so that extensions can look them up dynamically in the binary. |
| 466 'ldflags': [ | 497 'ldflags': [ |
| 467 '-rdynamic', | 498 '-rdynamic', |
| 468 ], | 499 ], |
| 469 }], | 500 }], |
| 501 | |
| 502 ['OS=="android"', { | |
| 503 'link_settings': { | |
| 504 'ldflags': [ | |
| 505 # The libraries we need should all be in | |
| 506 # Lthird_party/skia/trunk/out/config/android-x86/Debug but | |
| 507 # As I (gram) want to avoid patching the Skia gyp files to build | |
| 508 # real libraries we'll just point to the location of the 'thin' | |
| 509 # libraries used by the Skia build for now. | |
|
gram
2013/05/28 17:04:19
Ditto
Bill Hesse
2013/05/29 09:12:44
Done.
| |
| 510 # TODO(gram): We need to support debug vs release modes. | |
| 511 # '<(skia_libs_location_android)', | |
| 512 '-z', | |
| 513 'muldefs', | |
| 514 ], | |
| 515 'ldflags!': [ | |
| 516 '-Wl,--exclude-libs=ALL,-shared', | |
| 517 ], | |
| 518 'libraries': [ | |
| 519 '-llog', | |
| 520 '-lc', | |
| 521 '-lz', | |
| 522 ], | |
| 523 }, | |
| 524 }], | |
| 470 ], | 525 ], |
| 471 }, | 526 }, |
| 472 { | 527 { |
| 473 'target_name': 'process_test', | 528 'target_name': 'process_test', |
| 474 'type': 'executable', | 529 'type': 'executable', |
| 475 'sources': [ | 530 'sources': [ |
| 476 'process_test.cc', | 531 'process_test.cc', |
| 477 ] | 532 ] |
| 478 }, | 533 }, |
| 479 { | 534 { |
| 480 'target_name': 'run_vm_tests', | 535 'target_name': 'run_vm_tests', |
| 481 'type': 'executable', | 536 'type': 'executable', |
| 537 'toolsets':['target'], | |
|
zra
2013/05/28 16:56:16
To make running tests easier, we'll likely also be
Bill Hesse
2013/05/29 09:12:44
I wasn't sure if the entire 'link_settings' sectio
| |
| 482 'dependencies': [ | 538 'dependencies': [ |
| 483 'libdart_withcore', | 539 'libdart_withcore', |
| 484 'libdart_builtin', | 540 'libdart_builtin', |
| 485 'libdart_io', | 541 'libdart_io', |
| 486 'generate_snapshot_file#host', | 542 'generate_snapshot_file#host', |
| 487 'generate_snapshot_test_dat_file', | 543 'generate_snapshot_test_dat_file', |
| 488 ], | 544 ], |
| 489 'include_dirs': [ | 545 'include_dirs': [ |
| 490 '..', | 546 '..', |
| 491 '<(gen_source_dir)', | 547 '<(gen_source_dir)', |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 518 ['include', 'builtin_natives.cc'], | 574 ['include', 'builtin_natives.cc'], |
| 519 ['include', '_gen\\.cc$'], | 575 ['include', '_gen\\.cc$'], |
| 520 ['include', '_test\\.(cc|h)$'], | 576 ['include', '_test\\.(cc|h)$'], |
| 521 ], | 577 ], |
| 522 'conditions': [ | 578 'conditions': [ |
| 523 ['OS=="win"', { | 579 ['OS=="win"', { |
| 524 'link_settings': { | 580 'link_settings': { |
| 525 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], | 581 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], |
| 526 }, | 582 }, |
| 527 }], | 583 }], |
| 584 ['OS=="android"', { | |
| 585 | |
| 586 'link_settings': { | |
| 587 'ldflags': [ | |
| 588 # The libraries we need should all be in | |
| 589 # Lthird_party/skia/trunk/out/config/android-x86/Debug but | |
| 590 # As I (gram) want to avoid patching the Skia gyp files to build | |
| 591 # real libraries we'll just point to the location of the 'thin' | |
| 592 # libraries used by the Skia build for now. | |
| 593 # TODO(gram): We need to support debug vs release modes. | |
|
gram
2013/05/28 17:04:19
Ditto
| |
| 594 # '<(skia_libs_location_android)', | |
| 595 '-z', | |
| 596 'muldefs', | |
| 597 ], | |
| 598 'ldflags!': [ | |
| 599 '-Wl,--exclude-libs=ALL,-shared', | |
| 600 ], | |
| 601 'libraries': [ | |
| 602 '-Wl,--start-group', | |
| 603 '-Wl,--end-group', | |
| 604 '-llog', | |
| 605 '-lc', | |
| 606 '-lz', | |
| 607 ], | |
| 608 }, | |
| 609 }], | |
| 528 ], | 610 ], |
| 529 }, | 611 }, |
| 530 { | 612 ], |
| 531 'target_name': 'test_extension', | 613 'conditions': [ |
| 532 'type': 'shared_library', | 614 ['OS!="android"', { |
| 533 'dependencies': [ | 615 'targets': [ |
| 534 'dart', | 616 { |
| 617 'target_name': 'test_extension', | |
| 618 'type': 'shared_library', | |
| 619 'dependencies': [ | |
| 620 'dart', | |
| 621 ], | |
| 622 'include_dirs': [ | |
| 623 '..', | |
| 624 ], | |
| 625 'sources': [ | |
| 626 'test_extension.cc', | |
| 627 'test_extension_dllmain_win.cc', | |
| 628 ], | |
| 629 'defines': [ | |
| 630 # The only effect of DART_SHARED_LIB is to export the Dart API. | |
| 631 'DART_SHARED_LIB', | |
| 632 ], | |
| 633 'conditions': [ | |
| 634 ['OS=="win"', { | |
| 635 'msvs_settings': { | |
| 636 'VCLinkerTool': { | |
| 637 'AdditionalDependencies': [ 'dart.lib' ], | |
| 638 'AdditionalLibraryDirectories': [ '<(PRODUCT_DIR)' ], | |
| 639 }, | |
| 640 }, | |
| 641 }], | |
| 642 ['OS=="mac"', { | |
| 643 'xcode_settings': { | |
| 644 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], | |
| 645 }, | |
| 646 }], | |
| 647 ['OS=="linux"', { | |
| 648 'cflags': [ | |
| 649 '-fPIC', | |
| 650 ], | |
| 651 }], | |
| 652 ], | |
| 653 }, | |
| 535 ], | 654 ], |
| 536 'include_dirs': [ | 655 }], |
| 537 '..', | |
| 538 ], | |
| 539 'sources': [ | |
| 540 'test_extension.cc', | |
| 541 'test_extension_dllmain_win.cc', | |
| 542 ], | |
| 543 'defines': [ | |
| 544 # The only effect of DART_SHARED_LIB is to export the Dart API entries. | |
| 545 'DART_SHARED_LIB', | |
| 546 ], | |
| 547 'conditions': [ | |
| 548 ['OS=="win"', { | |
| 549 'msvs_settings': { | |
| 550 'VCLinkerTool': { | |
| 551 'AdditionalDependencies': [ 'dart.lib' ], | |
| 552 'AdditionalLibraryDirectories': [ '<(PRODUCT_DIR)' ], | |
| 553 }, | |
| 554 }, | |
| 555 }], | |
| 556 ['OS=="mac"', { | |
| 557 'xcode_settings': { | |
| 558 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], | |
| 559 }, | |
| 560 }], | |
| 561 ['OS=="linux"', { | |
| 562 'cflags': [ | |
| 563 '-fPIC', | |
| 564 ], | |
| 565 }], | |
| 566 ], | |
| 567 }, | |
| 568 ], | 656 ], |
| 569 } | 657 } |
| 570 | 658 |
| OLD | NEW |