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

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

Issue 810623005: Build Observatory with runtime (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 | « pkg/pkg.gyp ('k') | runtime/bin/vmservice/observatory/.gitignore » ('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 'snapshot_bin_file': '<(gen_source_dir)/snapshot_gen.bin', 14 'snapshot_bin_file': '<(gen_source_dir)/snapshot_gen.bin',
15 'resources_cc_file': '<(gen_source_dir)/resources_gen.cc', 15 'resources_cc_file': '<(gen_source_dir)/resources_gen.cc',
16 'bootstrap_resources_cc_file':
17 '<(gen_source_dir)/bootstrap_resources_gen.cc',
16 'snapshot_cc_file': '<(gen_source_dir)/snapshot_gen.cc', 18 'snapshot_cc_file': '<(gen_source_dir)/snapshot_gen.cc',
17 }, 19 },
18 'targets': [ 20 'targets': [
19 { 21 {
20 'target_name': 'generate_builtin_cc_file', 22 'target_name': 'generate_builtin_cc_file',
21 'type': 'none', 23 'type': 'none',
22 'toolsets':['host'], 24 'toolsets':['host'],
23 'includes': [ 25 'includes': [
24 'builtin_sources.gypi', 26 'builtin_sources.gypi',
25 ], 27 ],
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 '--output', '<(snapshot_cc_file)', 353 '--output', '<(snapshot_cc_file)',
352 ], 354 ],
353 'message': 'Generating ''<(snapshot_cc_file)'' file.' 355 'message': 'Generating ''<(snapshot_cc_file)'' file.'
354 }, 356 },
355 ] 357 ]
356 }, 358 },
357 { 359 {
358 'target_name': 'generate_resources_cc_file', 360 'target_name': 'generate_resources_cc_file',
359 'type': 'none', 361 'type': 'none',
360 'toolsets':['host'], 362 'toolsets':['host'],
363 'dependencies': [
364 'build_observatory#host',
365 ],
361 'includes': [ 366 'includes': [
362 'resources_sources.gypi', 367 'resources_sources.gypi',
363 ], 368 ],
364 'actions': [ 369 'actions': [
365 { 370 {
366 'action_name': 'generate_resources_cc', 371 'action_name': 'generate_resources_cc',
367 'inputs': [ 372 'inputs': [
368 '../tools/create_resources.py', 373 '../tools/create_resources.py',
369 # The following two files are used to trigger a rebuild. 374 # The following two files are used to trigger a rebuild.
370 'vmservice/observatory/deployed/web/index.html', 375 '<(PRODUCT_DIR)/observatory/deployed/web/index.html',
371 'vmservice/observatory/deployed/web/index.html_bootstrap.dart.js', 376 '<(PRODUCT_DIR)/observatory/deployed/web/index.html_bootstrap.dart.j s',
372 '<@(_sources)', 377 '<@(_sources)',
373 ], 378 ],
374 'outputs': [ 379 'outputs': [
375 '<(resources_cc_file)', 380 '<(resources_cc_file)',
376 ], 381 ],
377 'action': [ 382 'action': [
378 'python', 383 'python',
379 'tools/create_resources.py', 384 'tools/create_resources.py',
380 '--output', '<(resources_cc_file)', 385 '--output', '<(resources_cc_file)',
381 '--outer_namespace', 'dart', 386 '--outer_namespace', 'dart',
382 '--inner_namespace', 'bin', 387 '--inner_namespace', 'bin',
383 '--table_name', 'service_bin', 388 '--table_name', 'service_bin',
384 '--root_prefix', 'bin/', 389 '--root_prefix', 'bin/',
385 '--client_root', 'bin/vmservice/observatory/deployed/', 390 '--client_root', '<(PRODUCT_DIR)/observatory/deployed/web/',
386 '<@(_sources)' 391 '<@(_sources)'
387 ], 392 ],
388 'message': 'Generating ''<(resources_cc_file)'' file.' 393 'message': 'Generating ''<(resources_cc_file)'' file.'
389 }, 394 },
390 ] 395 ]
391 }, 396 },
392 { 397 {
398 'target_name': 'generate_bootstrap_resources_cc_file',
399 'type': 'none',
400 'toolsets':['host'],
401 'includes': [
402 'resources_sources.gypi',
403 ],
404 'actions': [
405 {
406 'action_name': 'generate_resources_cc',
407 'inputs': [
408 '../tools/create_resources.py',
409 '<@(_sources)',
410 ],
411 'outputs': [
412 '<(bootstrap_resources_cc_file)',
413 ],
414 'action': [
415 'python',
416 'tools/create_resources.py',
417 '--output', '<(bootstrap_resources_cc_file)',
418 '--outer_namespace', 'dart',
419 '--inner_namespace', 'bin',
420 '--table_name', 'service_bin',
421 '--root_prefix', 'bin/',
422 '<@(_sources)'
423 ],
424 'message':
425 'Generating ''<(bootstrap_resources_cc_file)'' file.'
426 },
427 ]
428 },
429 {
393 # dart binary with a snapshot of corelibs built in. 430 # dart binary with a snapshot of corelibs built in.
394 'target_name': 'dart', 431 'target_name': 'dart',
395 'type': 'executable', 432 'type': 'executable',
396 'dependencies': [ 433 'dependencies': [
397 'libdart', 434 'libdart',
398 'libdart_builtin', 435 'libdart_builtin',
399 'libdart_io', 436 'libdart_io',
437 'build_observatory#host',
400 'generate_snapshot_file#host', 438 'generate_snapshot_file#host',
401 'generate_resources_cc_file#host', 439 'generate_resources_cc_file#host',
402 ], 440 ],
403 'include_dirs': [ 441 'include_dirs': [
404 '..', 442 '..',
405 ], 443 ],
406 'sources': [ 444 'sources': [
407 'main.cc', 445 'main.cc',
408 'builtin_natives.cc', 446 'builtin_natives.cc',
409 'builtin_nolib.cc', 447 'builtin_nolib.cc',
(...skipping 23 matching lines...) Expand all
433 'Dart_Linux_Base': { 471 'Dart_Linux_Base': {
434 # Have the linker add all symbols to the dynamic symbol table 472 # Have the linker add all symbols to the dynamic symbol table
435 # so that extensions can look them up dynamically in the binary. 473 # so that extensions can look them up dynamically in the binary.
436 'ldflags': [ 474 'ldflags': [
437 '-rdynamic', 475 '-rdynamic',
438 ], 476 ],
439 }, 477 },
440 }, 478 },
441 }, 479 },
442 { 480 {
481 # dart binary built for the host. It does not use a snapshot
482 # and does not include Observatory.
483 'target_name': 'dart_bootstrap',
484 'type': 'executable',
485 'toolsets':['host'],
486 'dependencies': [
487 'libdart_withcore',
488 'libdart_builtin',
489 'libdart_io',
490 'generate_bootstrap_resources_cc_file#host',
491 ],
492 'include_dirs': [
493 '..',
494 ],
495 'sources': [
496 'main.cc',
497 'builtin.cc',
498 'builtin_natives.cc',
499 'builtin.h',
500 'io_natives.h',
501 'vmservice.h',
502 'vmservice_impl.cc',
503 'vmservice_impl.h',
504 # Include generated source files.
505 '<(builtin_cc_file)',
506 '<(io_cc_file)',
507 '<(io_patch_cc_file)',
508 '<(bootstrap_resources_cc_file)',
509 'snapshot_empty.cc',
510 ],
511 'conditions': [
512 ['OS=="win"', {
513 'link_settings': {
514 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ],
515 },
516 # Generate an import library on Windows, by exporting a function.
517 # Extensions use this import library to link to the API in dart.exe.
518 'msvs_settings': {
519 'VCLinkerTool': {
520 'AdditionalOptions': [ '/EXPORT:Dart_True' ],
521 },
522 },
523 }],
524 ],
525 'configurations': {
526 'Dart_Linux_Base': {
527 # Have the linker add all symbols to the dynamic symbol table
528 # so that extensions can look them up dynamically in the binary.
529 'ldflags': [
530 '-rdynamic',
531 ],
532 },
533 },
534 },
535 {
443 # dart binary without any snapshot built in. 536 # dart binary without any snapshot built in.
444 'target_name': 'dart_no_snapshot', 537 'target_name': 'dart_no_snapshot',
445 'type': 'executable', 538 'type': 'executable',
446 'dependencies': [ 539 'dependencies': [
447 'libdart_withcore', 540 'libdart_withcore',
448 'libdart_builtin', 541 'libdart_builtin',
449 'libdart_io', 542 'libdart_io',
450 'generate_resources_cc_file#host', 543 'generate_resources_cc_file#host',
451 ], 544 ],
452 'include_dirs': [ 545 'include_dirs': [
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 }], 683 }],
591 ['OS=="linux"', { 684 ['OS=="linux"', {
592 'cflags': [ 685 'cflags': [
593 '-fPIC', 686 '-fPIC',
594 ], 687 ],
595 }], 688 }],
596 ], 689 ],
597 }, 690 },
598 ], 691 ],
599 } 692 }
OLDNEW
« no previous file with comments | « pkg/pkg.gyp ('k') | runtime/bin/vmservice/observatory/.gitignore » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698