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

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

Issue 1411853003: Service isolate requests Observatory assets from embedder (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | runtime/bin/dartutils.h » ('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',
11 'builtin_in_cc_file': 'builtin_in.cc', 11 'builtin_in_cc_file': 'builtin_in.cc',
12 'builtin_cc_file': '<(gen_source_dir)/builtin_gen.cc', 12 'builtin_cc_file': '<(gen_source_dir)/builtin_gen.cc',
13 'snapshot_in_cc_file': 'snapshot_in.cc', 13 'snapshot_in_cc_file': 'snapshot_in.cc',
14 'vm_isolate_snapshot_bin_file': '<(gen_source_dir)/vm_isolate_snapshot_gen.b in', 14 'vm_isolate_snapshot_bin_file': '<(gen_source_dir)/vm_isolate_snapshot_gen.b in',
15 'isolate_snapshot_bin_file': '<(gen_source_dir)/isolate_snapshot_gen.bin', 15 'isolate_snapshot_bin_file': '<(gen_source_dir)/isolate_snapshot_gen.bin',
16 'gen_snapshot_stamp_file': '<(gen_source_dir)/gen_snapshot.stamp', 16 'gen_snapshot_stamp_file': '<(gen_source_dir)/gen_snapshot.stamp',
17 'resources_cc_file': '<(gen_source_dir)/resources_gen.cc', 17 'resources_cc_file': '<(gen_source_dir)/resources_gen.cc',
18 'bootstrap_resources_cc_file': 18 'bootstrap_resources_cc_file':
19 '<(gen_source_dir)/bootstrap_resources_gen.cc', 19 '<(gen_source_dir)/bootstrap_resources_gen.cc',
20 'snapshot_cc_file': '<(gen_source_dir)/snapshot_gen.cc', 20 'snapshot_cc_file': '<(gen_source_dir)/snapshot_gen.cc',
21 'observatory_assets_cc_file': '<(gen_source_dir)/observatory_assets.cc',
22 'observatory_assets_tar_file': '<(gen_source_dir)/observatory_assets.tar',
21 }, 23 },
22 'targets': [ 24 'targets': [
23 { 25 {
24 'target_name': 'generate_builtin_cc_file', 26 'target_name': 'generate_builtin_cc_file',
25 'type': 'none', 27 'type': 'none',
26 'toolsets':['host'], 28 'toolsets':['host'],
27 'includes': [ 29 'includes': [
28 'builtin_sources.gypi', 30 'builtin_sources.gypi',
29 ], 31 ],
30 'actions': [ 32 'actions': [
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 'includes': [ 197 'includes': [
196 'io_impl_sources.gypi', 198 'io_impl_sources.gypi',
197 'builtin_impl_sources.gypi', 199 'builtin_impl_sources.gypi',
198 ], 200 ],
199 'dependencies': [ 201 'dependencies': [
200 'generate_builtin_cc_file#host', 202 'generate_builtin_cc_file#host',
201 'generate_io_cc_file#host', 203 'generate_io_cc_file#host',
202 'generate_io_patch_cc_file#host', 204 'generate_io_patch_cc_file#host',
203 'generate_snapshot_file#host', 205 'generate_snapshot_file#host',
204 'generate_resources_cc_file#host', 206 'generate_resources_cc_file#host',
207 'generate_observatory_assets_cc_file#host',
205 ], 208 ],
206 'sources': [ 209 'sources': [
207 'builtin_common.cc', 210 'builtin_common.cc',
208 'builtin_natives.cc', 211 'builtin_natives.cc',
209 'builtin_nolib.cc', 212 'builtin_nolib.cc',
210 'builtin.h', 213 'builtin.h',
211 'dartutils.cc', 214 'dartutils.cc',
212 'dartutils.h', 215 'dartutils.h',
213 'io_natives.cc', 216 'io_natives.cc',
214 'io_natives.h', 217 'io_natives.h',
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 'DART_NO_SNAPSHOT', 370 'DART_NO_SNAPSHOT',
368 ], 371 ],
369 }, 372 },
370 { 373 {
371 # Completely statically linked binary for generating snapshots. 374 # Completely statically linked binary for generating snapshots.
372 'target_name': 'gen_snapshot', 375 'target_name': 'gen_snapshot',
373 'type': 'executable', 376 'type': 'executable',
374 'toolsets':['host'], 377 'toolsets':['host'],
375 'dependencies': [ 378 'dependencies': [
376 'generate_resources_cc_file#host', 379 'generate_resources_cc_file#host',
380 'generate_observatory_assets_cc_file#host',
377 'libdart_nosnapshot', 381 'libdart_nosnapshot',
378 'libdart_builtin', 382 'libdart_builtin',
379 'libdart_io', 383 'libdart_io',
380 ], 384 ],
381 'include_dirs': [ 385 'include_dirs': [
382 '..', 386 '..',
383 ], 387 ],
384 'sources': [ 388 'sources': [
385 'address_sanitizer.cc', 389 'address_sanitizer.cc',
386 'gen_snapshot.cc', 390 'gen_snapshot.cc',
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 '--vm_input_bin', '<(vm_isolate_snapshot_bin_file)', 474 '--vm_input_bin', '<(vm_isolate_snapshot_bin_file)',
471 '--input_bin', '<(isolate_snapshot_bin_file)', 475 '--input_bin', '<(isolate_snapshot_bin_file)',
472 '--input_cc', '<(snapshot_in_cc_file)', 476 '--input_cc', '<(snapshot_in_cc_file)',
473 '--output', '<(snapshot_cc_file)', 477 '--output', '<(snapshot_cc_file)',
474 ], 478 ],
475 'message': 'Generating ''<(snapshot_cc_file)'' file.' 479 'message': 'Generating ''<(snapshot_cc_file)'' file.'
476 }, 480 },
477 ] 481 ]
478 }, 482 },
479 { 483 {
484 'target_name': 'generate_observatory_assets_cc_file',
485 'type': 'none',
486 'toolsets':['host'],
487 'dependencies': [
488 'build_observatory#host',
489 ],
490 'actions': [
491 {
492 'action_name': 'generate_observatory_assets_cc_file',
493 'inputs': [
494 '../tools/create_archive.py',
495 '<(PRODUCT_DIR)/observatory/deployed/web/index.html'
496 ],
497 'outputs': [
498 '<(observatory_assets_cc_file)',
499 ],
500 'action': [
501 'python',
502 'tools/create_archive.py',
503 '--output', '<(observatory_assets_cc_file)',
504 '--tar_output', '<(observatory_assets_tar_file)',
505 '--outer_namespace', 'dart',
506 '--inner_namespace', 'bin',
507 '--name', 'observatory_assets_archive',
508 '--client_root', '<(PRODUCT_DIR)/observatory/deployed/web/',
509 ],
510 'message': 'Generating ''<(observatory_assets_cc_file)'' file.'
511 },
512 ]
513 },
514 {
480 'target_name': 'generate_resources_cc_file', 515 'target_name': 'generate_resources_cc_file',
481 'type': 'none', 516 'type': 'none',
482 'toolsets':['host'], 517 'toolsets':['host'],
483 'dependencies': [
484 'build_observatory#host',
485 ],
486 'includes': [ 518 'includes': [
487 'resources_sources.gypi', 519 'resources_sources.gypi',
488 ], 520 ],
489 'actions': [ 521 'actions': [
490 { 522 {
491 'action_name': 'generate_resources_cc', 523 'action_name': 'generate_resources_cc',
492 'inputs': [ 524 'inputs': [
493 '../tools/create_resources.py', 525 '../tools/create_resources.py',
494 # The following two files are used to trigger a rebuild.
495 '<(PRODUCT_DIR)/observatory/deployed/web/index.html',
496 '<@(_sources)', 526 '<@(_sources)',
497 ], 527 ],
498 'outputs': [ 528 'outputs': [
499 '<(resources_cc_file)', 529 '<(resources_cc_file)',
500 ], 530 ],
501 'action': [ 531 'action': [
502 'python', 532 'python',
503 'tools/create_resources.py', 533 'tools/create_resources.py',
504 '--compress',
505 '--output', '<(resources_cc_file)', 534 '--output', '<(resources_cc_file)',
506 '--outer_namespace', 'dart', 535 '--outer_namespace', 'dart',
507 '--inner_namespace', 'bin', 536 '--inner_namespace', 'bin',
508 '--table_name', 'service_bin', 537 '--table_name', 'service_bin',
509 '--root_prefix', 'bin/', 538 '--root_prefix', 'bin/',
510 '--client_root', '<(PRODUCT_DIR)/observatory/deployed/web/',
511 '<@(_sources)' 539 '<@(_sources)'
512 ], 540 ],
513 'message': 'Generating ''<(resources_cc_file)'' file.' 541 'message': 'Generating ''<(resources_cc_file)'' file.'
514 }, 542 },
515 ] 543 ]
516 }, 544 },
517 { 545 {
518 'target_name': 'generate_bootstrap_resources_cc_file', 546 'target_name': 'generate_bootstrap_resources_cc_file',
519 'type': 'none', 547 'type': 'none',
520 'toolsets':['host'], 548 'toolsets':['host'],
(...skipping 29 matching lines...) Expand all
550 # dart binary with a snapshot of corelibs built in. 578 # dart binary with a snapshot of corelibs built in.
551 'target_name': 'dart', 579 'target_name': 'dart',
552 'type': 'executable', 580 'type': 'executable',
553 'dependencies': [ 581 'dependencies': [
554 'libdart', 582 'libdart',
555 'libdart_builtin', 583 'libdart_builtin',
556 'libdart_io', 584 'libdart_io',
557 'build_observatory#host', 585 'build_observatory#host',
558 'generate_snapshot_file#host', 586 'generate_snapshot_file#host',
559 'generate_resources_cc_file#host', 587 'generate_resources_cc_file#host',
588 'generate_observatory_assets_cc_file#host',
560 ], 589 ],
561 'include_dirs': [ 590 'include_dirs': [
562 '..', 591 '..',
563 ], 592 ],
564 'sources': [ 593 'sources': [
565 'main.cc', 594 'main.cc',
566 'builtin_common.cc', 595 'builtin_common.cc',
567 'builtin_natives.cc', 596 'builtin_natives.cc',
568 'builtin_nolib.cc', 597 'builtin_nolib.cc',
569 'builtin.h', 598 'builtin.h',
570 'io_natives.h', 599 'io_natives.h',
571 'vmservice_impl.cc', 600 'vmservice_impl.cc',
572 'vmservice_impl.h', 601 'vmservice_impl.h',
573 '<(snapshot_cc_file)', 602 '<(snapshot_cc_file)',
574 '<(resources_cc_file)', 603 '<(resources_cc_file)',
604 '<(observatory_assets_cc_file)',
575 ], 605 ],
576 'conditions': [ 606 'conditions': [
577 ['OS=="win"', { 607 ['OS=="win"', {
578 'link_settings': { 608 'link_settings': {
579 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], 609 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ],
580 }, 610 },
581 # Generate an import library on Windows, by exporting a function. 611 # Generate an import library on Windows, by exporting a function.
582 # Extensions use this import library to link to the API in dart.exe. 612 # Extensions use this import library to link to the API in dart.exe.
583 'msvs_settings': { 613 'msvs_settings': {
584 'VCLinkerTool': { 614 'VCLinkerTool': {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 'builtin.cc', 649 'builtin.cc',
620 'builtin.h', 650 'builtin.h',
621 'io_natives.h', 651 'io_natives.h',
622 'vmservice_impl.cc', 652 'vmservice_impl.cc',
623 'vmservice_impl.h', 653 'vmservice_impl.h',
624 # Include generated source files. 654 # Include generated source files.
625 '<(builtin_cc_file)', 655 '<(builtin_cc_file)',
626 '<(io_cc_file)', 656 '<(io_cc_file)',
627 '<(io_patch_cc_file)', 657 '<(io_patch_cc_file)',
628 '<(bootstrap_resources_cc_file)', 658 '<(bootstrap_resources_cc_file)',
659 'observatory_assets_empty.cc',
629 'snapshot_empty.cc', 660 'snapshot_empty.cc',
630 ], 661 ],
631 'conditions': [ 662 'conditions': [
632 ['OS=="win"', { 663 ['OS=="win"', {
633 'link_settings': { 664 'link_settings': {
634 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], 665 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ],
635 }, 666 },
636 # Generate an import library on Windows, by exporting a function. 667 # Generate an import library on Windows, by exporting a function.
637 # Extensions use this import library to link to the API in dart.exe. 668 # Extensions use this import library to link to the API in dart.exe.
638 'msvs_settings': { 669 'msvs_settings': {
(...skipping 15 matching lines...) Expand all
654 }, 685 },
655 { 686 {
656 # dart binary without any snapshot built in. 687 # dart binary without any snapshot built in.
657 'target_name': 'dart_no_snapshot', 688 'target_name': 'dart_no_snapshot',
658 'type': 'executable', 689 'type': 'executable',
659 'dependencies': [ 690 'dependencies': [
660 'libdart_nosnapshot', 691 'libdart_nosnapshot',
661 'libdart_builtin', 692 'libdart_builtin',
662 'libdart_io', 693 'libdart_io',
663 'generate_resources_cc_file#host', 694 'generate_resources_cc_file#host',
695 'generate_observatory_assets_cc_file#host',
664 ], 696 ],
665 'include_dirs': [ 697 'include_dirs': [
666 '..', 698 '..',
667 ], 699 ],
668 'sources': [ 700 'sources': [
669 'main.cc', 701 'main.cc',
670 'builtin_common.cc', 702 'builtin_common.cc',
671 'builtin_natives.cc', 703 'builtin_natives.cc',
672 'builtin.cc', 704 'builtin.cc',
673 'builtin.h', 705 'builtin.h',
674 'io_natives.h', 706 'io_natives.h',
675 'vmservice_impl.cc', 707 'vmservice_impl.cc',
676 'vmservice_impl.h', 708 'vmservice_impl.h',
677 # Include generated source files. 709 # Include generated source files.
678 '<(builtin_cc_file)', 710 '<(builtin_cc_file)',
679 '<(io_cc_file)', 711 '<(io_cc_file)',
680 '<(io_patch_cc_file)', 712 '<(io_patch_cc_file)',
681 '<(resources_cc_file)', 713 '<(resources_cc_file)',
714 '<(observatory_assets_cc_file)',
682 'snapshot_empty.cc', 715 'snapshot_empty.cc',
683 ], 716 ],
684 'conditions': [ 717 'conditions': [
685 ['OS=="win"', { 718 ['OS=="win"', {
686 'link_settings': { 719 'link_settings': {
687 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], 720 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ],
688 }, 721 },
689 # Generate an import library on Windows, by exporting a function. 722 # Generate an import library on Windows, by exporting a function.
690 # Extensions use this import library to link to the API in dart.exe. 723 # Extensions use this import library to link to the API in dart.exe.
691 'msvs_settings': { 724 'msvs_settings': {
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
814 }], 847 }],
815 ['OS=="linux"', { 848 ['OS=="linux"', {
816 'cflags': [ 849 'cflags': [
817 '-fPIC', 850 '-fPIC',
818 ], 851 ],
819 }], 852 }],
820 ], 853 ],
821 }, 854 },
822 ], 855 ],
823 } 856 }
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/dartutils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698