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

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

Issue 17288009: Removes references to LIB_DIR from gyp files. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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 | « no previous file | runtime/dart-runtime.gyp » ('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 # We place most generated source files in LIB_DIR (rather than, say 7 'gen_source_dir': '<(SHARED_INTERMEDIATE_DIR)',
8 # SHARED_INTERMEDIATE_DIR) because it is toolset specific. This avoids
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,
11 # if a generated source file is needed to build a target with multiple
12 # toolsets, we avoid having duplicate Makefile targets.
13 'gen_source_dir': '<(LIB_DIR)',
14 8
15 'io_cc_file': '<(gen_source_dir)/io_gen.cc', 9 'io_cc_file': '<(gen_source_dir)/io_gen.cc',
16 'io_patch_cc_file': '<(gen_source_dir)/io_patch_gen.cc', 10 'io_patch_cc_file': '<(gen_source_dir)/io_patch_gen.cc',
17 'builtin_in_cc_file': 'builtin_in.cc', 11 'builtin_in_cc_file': 'builtin_in.cc',
18 'builtin_cc_file': '<(gen_source_dir)/builtin_gen.cc', 12 'builtin_cc_file': '<(gen_source_dir)/builtin_gen.cc',
19 'snapshot_in_cc_file': 'snapshot_in.cc', 13 'snapshot_in_cc_file': 'snapshot_in.cc',
20 'snapshot_bin_file': '<(gen_source_dir)/snapshot_gen.bin', 14 'snapshot_bin_file': '<(gen_source_dir)/snapshot_gen.bin',
21 'resources_cc_file': '<(gen_source_dir)/resources_gen.cc', 15 'resources_cc_file': '<(gen_source_dir)/resources_gen.cc',
22 16 'snapshot_cc_file': '<(gen_source_dir)/snapshot_gen.cc',
23 # The program that creates snapshot_gen.cc is only built and run on the
24 # host, but it must be available when dart is built for the target. Thus,
25 # we keep it in a shared location.
26 'snapshot_cc_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.cc',
27 }, 17 },
28 'targets': [ 18 'targets': [
29 { 19 {
30 'target_name': 'generate_builtin_cc_file', 20 'target_name': 'generate_builtin_cc_file',
31 'type': 'none', 21 'type': 'none',
32 'toolsets':['target','host'], 22 'toolsets':['host'],
33 'includes': [ 23 'includes': [
34 'builtin_sources.gypi', 24 'builtin_sources.gypi',
35 ], 25 ],
36 'actions': [ 26 'actions': [
37 { 27 {
38 'action_name': 'generate_builtin_cc', 28 'action_name': 'generate_builtin_cc',
39 'inputs': [ 29 'inputs': [
40 '../tools/gen_library_src_paths.py', 30 '../tools/gen_library_src_paths.py',
41 '<(builtin_in_cc_file)', 31 '<(builtin_in_cc_file)',
42 '<@(_sources)', 32 '<@(_sources)',
(...skipping 11 matching lines...) Expand all
54 '--library_name', 'dart:builtin', 44 '--library_name', 'dart:builtin',
55 '<@(_sources)', 45 '<@(_sources)',
56 ], 46 ],
57 'message': 'Generating ''<(builtin_cc_file)'' file.' 47 'message': 'Generating ''<(builtin_cc_file)'' file.'
58 }, 48 },
59 ] 49 ]
60 }, 50 },
61 { 51 {
62 'target_name': 'generate_io_cc_file', 52 'target_name': 'generate_io_cc_file',
63 'type': 'none', 53 'type': 'none',
64 'toolsets':['target','host'], 54 'toolsets':['host'],
65 'sources': [ 55 'sources': [
66 '../../sdk/lib/io/io.dart', 56 '../../sdk/lib/io/io.dart',
67 ], 57 ],
68 'includes': [ 58 'includes': [
69 '../../sdk/lib/io/iolib_sources.gypi', 59 '../../sdk/lib/io/iolib_sources.gypi',
70 ], 60 ],
71 'actions': [ 61 'actions': [
72 { 62 {
73 'action_name': 'generate_io_cc', 63 'action_name': 'generate_io_cc',
74 'inputs': [ 64 'inputs': [
(...skipping 14 matching lines...) Expand all
89 '--library_name', 'dart:io', 79 '--library_name', 'dart:io',
90 '<@(_sources)', 80 '<@(_sources)',
91 ], 81 ],
92 'message': 'Generating ''<(io_cc_file)'' file.' 82 'message': 'Generating ''<(io_cc_file)'' file.'
93 }, 83 },
94 ] 84 ]
95 }, 85 },
96 { 86 {
97 'target_name': 'generate_io_patch_cc_file', 87 'target_name': 'generate_io_patch_cc_file',
98 'type': 'none', 88 'type': 'none',
99 'toolsets':['target','host'], 89 'toolsets':['host'],
100 'includes': [ 90 'includes': [
101 'io_sources.gypi', 91 'io_sources.gypi',
102 ], 92 ],
103 'actions': [ 93 'actions': [
104 { 94 {
105 'action_name': 'generate_io_patch_cc', 95 'action_name': 'generate_io_patch_cc',
106 'inputs': [ 96 'inputs': [
107 '../tools/gen_library_src_paths.py', 97 '../tools/gen_library_src_paths.py',
108 '<(builtin_in_cc_file)', 98 '<(builtin_in_cc_file)',
109 '<@(_sources)', 99 '<@(_sources)',
(...skipping 13 matching lines...) Expand all
123 ], 113 ],
124 'message': 'Generating ''<(io_patch_cc_file)'' file.' 114 'message': 'Generating ''<(io_patch_cc_file)'' file.'
125 }, 115 },
126 ] 116 ]
127 }, 117 },
128 { 118 {
129 'target_name': 'libdart_builtin', 119 'target_name': 'libdart_builtin',
130 'type': 'static_library', 120 'type': 'static_library',
131 'toolsets':['target','host'], 121 'toolsets':['target','host'],
132 'dependencies': [ 122 'dependencies': [
133 'generate_builtin_cc_file', 123 'generate_builtin_cc_file#host',
134 'generate_io_cc_file', 124 'generate_io_cc_file#host',
135 'generate_io_patch_cc_file', 125 'generate_io_patch_cc_file#host',
136 ], 126 ],
137 'include_dirs': [ 127 'include_dirs': [
138 '..', 128 '..',
139 ], 129 ],
140 'sources': [ 130 'sources': [
141 'log_android.cc', 131 'log_android.cc',
142 'log_linux.cc', 132 'log_linux.cc',
143 'log_macos.cc', 133 'log_macos.cc',
144 'log_win.cc', 134 'log_win.cc',
145 ], 135 ],
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 }, 205 },
216 { 206 {
217 'target_name': 'libdart_withcore', 207 'target_name': 'libdart_withcore',
218 'type': 'static_library', 208 'type': 'static_library',
219 'toolsets':['target','host'], 209 'toolsets':['target','host'],
220 'dependencies': [ 210 'dependencies': [
221 'libdart_lib_withcore', 211 'libdart_lib_withcore',
222 'libdart_vm', 212 'libdart_vm',
223 'libjscre', 213 'libjscre',
224 'libdouble_conversion', 214 'libdouble_conversion',
225 'generate_version_cc_file', 215 'generate_version_cc_file#host',
226 ], 216 ],
227 'include_dirs': [ 217 'include_dirs': [
228 '..', 218 '..',
229 ], 219 ],
230 'sources': [ 220 'sources': [
231 '../include/dart_api.h', 221 '../include/dart_api.h',
232 '../include/dart_debugger_api.h', 222 '../include/dart_debugger_api.h',
233 '../include/dart_mirrors_api.h', 223 '../include/dart_mirrors_api.h',
234 '../include/dart_native_api.h', 224 '../include/dart_native_api.h',
235 '../vm/dart_api_impl.cc', 225 '../vm/dart_api_impl.cc',
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 '--input_cc', '<(snapshot_in_cc_file)', 325 '--input_cc', '<(snapshot_in_cc_file)',
336 '--output', '<(snapshot_cc_file)', 326 '--output', '<(snapshot_cc_file)',
337 ], 327 ],
338 'message': 'Generating ''<(snapshot_cc_file)'' file.' 328 'message': 'Generating ''<(snapshot_cc_file)'' file.'
339 }, 329 },
340 ] 330 ]
341 }, 331 },
342 { 332 {
343 'target_name': 'generate_resources_cc_file', 333 'target_name': 'generate_resources_cc_file',
344 'type': 'none', 334 'type': 'none',
335 'toolsets':['host'],
345 'includes': [ 336 'includes': [
346 'vmstats_sources.gypi', 337 'vmstats_sources.gypi',
347 ], 338 ],
348 'actions': [ 339 'actions': [
349 { 340 {
350 'action_name': 'generate_resources_cc', 341 'action_name': 'generate_resources_cc',
351 'inputs': [ 342 'inputs': [
352 '../tools/create_resources.py', 343 '../tools/create_resources.py',
353 '<@(_sources)', 344 '<@(_sources)',
354 ], 345 ],
(...skipping 13 matching lines...) Expand all
368 }, 359 },
369 { 360 {
370 # dart binary with a snapshot of corelibs built in. 361 # dart binary with a snapshot of corelibs built in.
371 'target_name': 'dart', 362 'target_name': 'dart',
372 'type': 'executable', 363 'type': 'executable',
373 'dependencies': [ 364 'dependencies': [
374 'libdart', 365 'libdart',
375 'libdart_builtin', 366 'libdart_builtin',
376 'libdart_io', 367 'libdart_io',
377 'generate_snapshot_file#host', 368 'generate_snapshot_file#host',
378 'generate_resources_cc_file', 369 'generate_resources_cc_file#host',
379 ], 370 ],
380 'include_dirs': [ 371 'include_dirs': [
381 '..', 372 '..',
382 ], 373 ],
383 'sources': [ 374 'sources': [
384 'main.cc', 375 'main.cc',
385 'builtin_natives.cc', 376 'builtin_natives.cc',
386 'builtin_nolib.cc', 377 'builtin_nolib.cc',
387 'builtin.h', 378 'builtin.h',
388 'io_natives.h', 379 'io_natives.h',
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 ], 427 ],
437 }, 428 },
438 { 429 {
439 # dart binary without any snapshot built in. 430 # dart binary without any snapshot built in.
440 'target_name': 'dart_no_snapshot', 431 'target_name': 'dart_no_snapshot',
441 'type': 'executable', 432 'type': 'executable',
442 'dependencies': [ 433 'dependencies': [
443 'libdart_withcore', 434 'libdart_withcore',
444 'libdart_builtin', 435 'libdart_builtin',
445 'libdart_io', 436 'libdart_io',
446 'generate_resources_cc_file', 437 'generate_resources_cc_file#host',
447 ], 438 ],
448 'include_dirs': [ 439 'include_dirs': [
449 '..', 440 '..',
450 ], 441 ],
451 'sources': [ 442 'sources': [
452 'main.cc', 443 'main.cc',
453 'builtin.cc', 444 'builtin.cc',
454 'builtin_natives.cc', 445 'builtin_natives.cc',
455 'builtin.h', 446 'builtin.h',
456 'io_natives.h', 447 'io_natives.h',
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 }, 508 },
518 { 509 {
519 'target_name': 'run_vm_tests', 510 'target_name': 'run_vm_tests',
520 'type': 'executable', 511 'type': 'executable',
521 'toolsets':['target'], 512 'toolsets':['target'],
522 'dependencies': [ 513 'dependencies': [
523 'libdart_withcore', 514 'libdart_withcore',
524 'libdart_builtin', 515 'libdart_builtin',
525 'libdart_io', 516 'libdart_io',
526 'generate_snapshot_file#host', 517 'generate_snapshot_file#host',
527 'generate_snapshot_test_dat_file', 518 'generate_snapshot_test_dat_file#host',
528 ], 519 ],
529 'include_dirs': [ 520 'include_dirs': [
530 '..', 521 '..',
531 '<(gen_source_dir)', 522 '<(gen_source_dir)',
532 ], 523 ],
533 'sources': [ 524 'sources': [
534 'run_vm_tests.cc', 525 'run_vm_tests.cc',
535 'builtin_natives.cc', 526 'builtin_natives.cc',
536 'builtin_nolib.cc', 527 'builtin_nolib.cc',
537 'builtin.h', 528 'builtin.h',
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
588 }, 579 },
589 { 580 {
590 'target_name': 'run_vm_tests.host', 581 'target_name': 'run_vm_tests.host',
591 'type': 'executable', 582 'type': 'executable',
592 'toolsets':['host'], 583 'toolsets':['host'],
593 'dependencies': [ 584 'dependencies': [
594 'libdart_withcore', 585 'libdart_withcore',
595 'libdart_builtin', 586 'libdart_builtin',
596 'libdart_io', 587 'libdart_io',
597 'generate_snapshot_file#host', 588 'generate_snapshot_file#host',
598 'generate_snapshot_test_dat_file', 589 'generate_snapshot_test_dat_file#host',
599 ], 590 ],
600 'include_dirs': [ 591 'include_dirs': [
601 '..', 592 '..',
602 '<(gen_source_dir)', 593 '<(gen_source_dir)',
603 ], 594 ],
604 'sources': [ 595 'sources': [
605 'run_vm_tests.cc', 596 'run_vm_tests.cc',
606 'builtin_natives.cc', 597 'builtin_natives.cc',
607 'builtin_nolib.cc', 598 'builtin_nolib.cc',
608 'builtin.h', 599 'builtin.h',
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 '-fPIC', 676 '-fPIC',
686 ], 677 ],
687 }], 678 }],
688 ], 679 ],
689 }, 680 },
690 ], 681 ],
691 }], 682 }],
692 ], 683 ],
693 } 684 }
694 685
OLDNEW
« no previous file with comments | « no previous file | runtime/dart-runtime.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698