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

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

Issue 839543002: Revert "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',
18 'snapshot_cc_file': '<(gen_source_dir)/snapshot_gen.cc', 16 'snapshot_cc_file': '<(gen_source_dir)/snapshot_gen.cc',
19 }, 17 },
20 'targets': [ 18 'targets': [
21 { 19 {
22 'target_name': 'generate_builtin_cc_file', 20 'target_name': 'generate_builtin_cc_file',
23 'type': 'none', 21 'type': 'none',
24 'toolsets':['host'], 22 'toolsets':['host'],
25 'includes': [ 23 'includes': [
26 'builtin_sources.gypi', 24 'builtin_sources.gypi',
27 ], 25 ],
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 '--output', '<(snapshot_cc_file)', 351 '--output', '<(snapshot_cc_file)',
354 ], 352 ],
355 'message': 'Generating ''<(snapshot_cc_file)'' file.' 353 'message': 'Generating ''<(snapshot_cc_file)'' file.'
356 }, 354 },
357 ] 355 ]
358 }, 356 },
359 { 357 {
360 'target_name': 'generate_resources_cc_file', 358 'target_name': 'generate_resources_cc_file',
361 'type': 'none', 359 'type': 'none',
362 'toolsets':['host'], 360 'toolsets':['host'],
363 'dependencies': [
364 'build_observatory#host',
365 ],
366 'includes': [ 361 'includes': [
367 'resources_sources.gypi', 362 'resources_sources.gypi',
368 ], 363 ],
369 'actions': [ 364 'actions': [
370 { 365 {
371 'action_name': 'generate_resources_cc', 366 'action_name': 'generate_resources_cc',
372 'inputs': [ 367 'inputs': [
373 '../tools/create_resources.py', 368 '../tools/create_resources.py',
374 # The following two files are used to trigger a rebuild. 369 # The following two files are used to trigger a rebuild.
375 '<(PRODUCT_DIR)/observatory/deployed/web/index.html', 370 'vmservice/observatory/deployed/web/index.html',
376 '<(PRODUCT_DIR)/observatory/deployed/web/index.html_bootstrap.dart.j s', 371 'vmservice/observatory/deployed/web/index.html_bootstrap.dart.js',
377 '<@(_sources)', 372 '<@(_sources)',
378 ], 373 ],
379 'outputs': [ 374 'outputs': [
380 '<(resources_cc_file)', 375 '<(resources_cc_file)',
381 ], 376 ],
382 'action': [ 377 'action': [
383 'python', 378 'python',
384 'tools/create_resources.py', 379 'tools/create_resources.py',
385 '--output', '<(resources_cc_file)', 380 '--output', '<(resources_cc_file)',
386 '--outer_namespace', 'dart', 381 '--outer_namespace', 'dart',
387 '--inner_namespace', 'bin', 382 '--inner_namespace', 'bin',
388 '--table_name', 'service_bin', 383 '--table_name', 'service_bin',
389 '--root_prefix', 'bin/', 384 '--root_prefix', 'bin/',
390 '--client_root', '<(PRODUCT_DIR)/observatory/deployed/web/', 385 '--client_root', 'bin/vmservice/observatory/deployed/',
391 '<@(_sources)' 386 '<@(_sources)'
392 ], 387 ],
393 'message': 'Generating ''<(resources_cc_file)'' file.' 388 'message': 'Generating ''<(resources_cc_file)'' file.'
394 }, 389 },
395 ] 390 ]
396 }, 391 },
397 { 392 {
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 {
430 # dart binary with a snapshot of corelibs built in. 393 # dart binary with a snapshot of corelibs built in.
431 'target_name': 'dart', 394 'target_name': 'dart',
432 'type': 'executable', 395 'type': 'executable',
433 'dependencies': [ 396 'dependencies': [
434 'libdart', 397 'libdart',
435 'libdart_builtin', 398 'libdart_builtin',
436 'libdart_io', 399 'libdart_io',
437 'build_observatory#host',
438 'generate_snapshot_file#host', 400 'generate_snapshot_file#host',
439 'generate_resources_cc_file#host', 401 'generate_resources_cc_file#host',
440 ], 402 ],
441 'include_dirs': [ 403 'include_dirs': [
442 '..', 404 '..',
443 ], 405 ],
444 'sources': [ 406 'sources': [
445 'main.cc', 407 'main.cc',
446 'builtin_natives.cc', 408 'builtin_natives.cc',
447 'builtin_nolib.cc', 409 'builtin_nolib.cc',
(...skipping 23 matching lines...) Expand all
471 'Dart_Linux_Base': { 433 'Dart_Linux_Base': {
472 # Have the linker add all symbols to the dynamic symbol table 434 # Have the linker add all symbols to the dynamic symbol table
473 # so that extensions can look them up dynamically in the binary. 435 # so that extensions can look them up dynamically in the binary.
474 'ldflags': [ 436 'ldflags': [
475 '-rdynamic', 437 '-rdynamic',
476 ], 438 ],
477 }, 439 },
478 }, 440 },
479 }, 441 },
480 { 442 {
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 {
536 # dart binary without any snapshot built in. 443 # dart binary without any snapshot built in.
537 'target_name': 'dart_no_snapshot', 444 'target_name': 'dart_no_snapshot',
538 'type': 'executable', 445 'type': 'executable',
539 'dependencies': [ 446 'dependencies': [
540 'libdart_withcore', 447 'libdart_withcore',
541 'libdart_builtin', 448 'libdart_builtin',
542 'libdart_io', 449 'libdart_io',
543 'generate_resources_cc_file#host', 450 'generate_resources_cc_file#host',
544 ], 451 ],
545 'include_dirs': [ 452 'include_dirs': [
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 }], 590 }],
684 ['OS=="linux"', { 591 ['OS=="linux"', {
685 'cflags': [ 592 'cflags': [
686 '-fPIC', 593 '-fPIC',
687 ], 594 ],
688 }], 595 }],
689 ], 596 ],
690 }, 597 },
691 ], 598 ],
692 } 599 }
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