| 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 19 matching lines...) Expand all Loading... |
| 30 'target_name': 'generate_builtin_cc_file', | 30 'target_name': 'generate_builtin_cc_file', |
| 31 'type': 'none', | 31 'type': 'none', |
| 32 'toolsets':['target','host'], | 32 'toolsets':['target','host'], |
| 33 'includes': [ | 33 'includes': [ |
| 34 'builtin_sources.gypi', | 34 'builtin_sources.gypi', |
| 35 ], | 35 ], |
| 36 'actions': [ | 36 'actions': [ |
| 37 { | 37 { |
| 38 'action_name': 'generate_builtin_cc', | 38 'action_name': 'generate_builtin_cc', |
| 39 'inputs': [ | 39 'inputs': [ |
| 40 '../tools/create_string_literal.py', | 40 '../tools/gen_library_src_paths.py', |
| 41 '<(builtin_in_cc_file)', | 41 '<(builtin_in_cc_file)', |
| 42 '<@(_sources)', | 42 '<@(_sources)', |
| 43 ], | 43 ], |
| 44 'outputs': [ | 44 'outputs': [ |
| 45 '<(builtin_cc_file)', | 45 '<(builtin_cc_file)', |
| 46 ], | 46 ], |
| 47 'action': [ | 47 'action': [ |
| 48 'python', | 48 'python', |
| 49 'tools/create_string_literal.py', | 49 'tools/gen_library_src_paths.py', |
| 50 '--output', '<(builtin_cc_file)', | 50 '--output', '<(builtin_cc_file)', |
| 51 '--input_cc', '<(builtin_in_cc_file)', | 51 '--input_cc', '<(builtin_in_cc_file)', |
| 52 '--include', 'bin/builtin.h', | 52 '--include', 'bin/builtin.h', |
| 53 '--var_name', 'dart::bin::Builtin::builtin_source_', | 53 '--var_name', 'dart::bin::Builtin::builtin_source_paths_', |
| 54 '--library_name', 'dart:builtin', |
| 54 '<@(_sources)', | 55 '<@(_sources)', |
| 55 ], | 56 ], |
| 56 'message': 'Generating ''<(builtin_cc_file)'' file.' | 57 'message': 'Generating ''<(builtin_cc_file)'' file.' |
| 57 }, | 58 }, |
| 58 ] | 59 ] |
| 59 }, | 60 }, |
| 60 { | 61 { |
| 61 'target_name': 'generate_io_cc_file', | 62 'target_name': 'generate_io_cc_file', |
| 62 'type': 'none', | 63 'type': 'none', |
| 63 'toolsets':['target','host'], | 64 'toolsets':['target','host'], |
| 64 'variables': { | |
| 65 'io_dart': '<(gen_source_dir)/io_gen.dart', | |
| 66 }, | |
| 67 'sources': [ | 65 'sources': [ |
| 68 'io.dart', | 66 '../../sdk/lib/io/io.dart', |
| 69 ], | 67 ], |
| 70 'includes': [ | 68 'includes': [ |
| 71 '../../sdk/lib/io/iolib_sources.gypi', | 69 '../../sdk/lib/io/iolib_sources.gypi', |
| 72 ], | 70 ], |
| 73 'actions': [ | 71 'actions': [ |
| 74 { | 72 { |
| 75 'action_name': 'generate_io_dart', | |
| 76 'inputs': [ | |
| 77 '../tools/concat_library.py', | |
| 78 '<@(_sources)', | |
| 79 ], | |
| 80 'outputs': [ | |
| 81 '<(io_dart)', | |
| 82 ], | |
| 83 'action': [ | |
| 84 'python', | |
| 85 '<@(_inputs)', | |
| 86 '--output', '<(io_dart)', | |
| 87 ], | |
| 88 'message': 'Generating ''<(io_dart)'' file.', | |
| 89 }, | |
| 90 { | |
| 91 'action_name': 'generate_io_cc', | 73 'action_name': 'generate_io_cc', |
| 92 'inputs': [ | 74 'inputs': [ |
| 93 '../tools/create_string_literal.py', | 75 '../tools/gen_library_src_paths.py', |
| 94 '<(builtin_in_cc_file)', | 76 '<(builtin_in_cc_file)', |
| 95 '<(io_dart)', | 77 '<@(_sources)', |
| 96 ], | 78 ], |
| 97 'outputs': [ | 79 'outputs': [ |
| 98 '<(io_cc_file)', | 80 '<(io_cc_file)', |
| 99 ], | 81 ], |
| 100 'action': [ | 82 'action': [ |
| 101 'python', | 83 'python', |
| 102 'tools/create_string_literal.py', | 84 'tools/gen_library_src_paths.py', |
| 103 '--output', '<(io_cc_file)', | 85 '--output', '<(io_cc_file)', |
| 104 '--input_cc', '<(builtin_in_cc_file)', | 86 '--input_cc', '<(builtin_in_cc_file)', |
| 105 '--include', 'bin/builtin.h', | 87 '--include', 'bin/builtin.h', |
| 106 '--var_name', 'dart::bin::Builtin::io_source_', | 88 '--var_name', 'dart::bin::Builtin::io_source_paths_', |
| 107 '<(io_dart)', | 89 '--library_name', 'dart:io', |
| 90 '<@(_sources)', |
| 108 ], | 91 ], |
| 109 'message': 'Generating ''<(io_cc_file)'' file.' | 92 'message': 'Generating ''<(io_cc_file)'' file.' |
| 110 }, | 93 }, |
| 111 ] | 94 ] |
| 112 }, | 95 }, |
| 113 { | 96 { |
| 114 'target_name': 'generate_io_patch_cc_file', | 97 'target_name': 'generate_io_patch_cc_file', |
| 115 'type': 'none', | 98 'type': 'none', |
| 116 'toolsets':['target','host'], | 99 'toolsets':['target','host'], |
| 117 'includes': [ | 100 'includes': [ |
| 118 'io_sources.gypi', | 101 'io_sources.gypi', |
| 119 ], | 102 ], |
| 120 'actions': [ | 103 'actions': [ |
| 121 { | 104 { |
| 122 'action_name': 'generate_io_patch_cc', | 105 'action_name': 'generate_io_patch_cc', |
| 123 'inputs': [ | 106 'inputs': [ |
| 124 '../tools/create_string_literal.py', | 107 '../tools/gen_library_src_paths.py', |
| 125 '<(builtin_in_cc_file)', | 108 '<(builtin_in_cc_file)', |
| 126 '<@(_sources)', | 109 '<@(_sources)', |
| 127 ], | 110 ], |
| 128 'outputs': [ | 111 'outputs': [ |
| 129 '<(io_patch_cc_file)', | 112 '<(io_patch_cc_file)', |
| 130 ], | 113 ], |
| 131 'action': [ | 114 'action': [ |
| 132 'python', | 115 'python', |
| 133 'tools/create_string_literal.py', | 116 'tools/gen_library_src_paths.py', |
| 134 '--output', '<(io_patch_cc_file)', | 117 '--output', '<(io_patch_cc_file)', |
| 135 '--input_cc', '<(builtin_in_cc_file)', | 118 '--input_cc', '<(builtin_in_cc_file)', |
| 136 '--include', 'bin/builtin.h', | 119 '--include', 'bin/builtin.h', |
| 137 '--var_name', 'dart::bin::Builtin::io_patch_', | 120 '--var_name', 'dart::bin::Builtin::io_patch_paths_', |
| 121 '--library_name', 'dart:io', |
| 138 '<@(_sources)', | 122 '<@(_sources)', |
| 139 ], | 123 ], |
| 140 'message': 'Generating ''<(io_patch_cc_file)'' file.' | 124 'message': 'Generating ''<(io_patch_cc_file)'' file.' |
| 141 }, | 125 }, |
| 142 ] | 126 ] |
| 143 }, | 127 }, |
| 144 { | 128 { |
| 145 'target_name': 'libdart_builtin', | 129 'target_name': 'libdart_builtin', |
| 146 'type': 'static_library', | 130 'type': 'static_library', |
| 147 'toolsets':['target','host'], | 131 'toolsets':['target','host'], |
| 148 'dependencies': [ | 132 'dependencies': [ |
| 149 'generate_builtin_cc_file', | 133 'generate_builtin_cc_file', |
| 150 'generate_io_cc_file', | 134 'generate_io_cc_file', |
| 151 'generate_io_patch_cc_file', | 135 'generate_io_patch_cc_file', |
| 152 ], | 136 ], |
| 153 'include_dirs': [ | 137 'include_dirs': [ |
| 154 '..', | 138 '..', |
| 155 ], | 139 ], |
| 156 'sources': [ | 140 'sources': [ |
| 157 'builtin_natives.cc', | |
| 158 'builtin.h', | |
| 159 'io_natives.h', | |
| 160 'log_android.cc', | 141 'log_android.cc', |
| 161 'log_linux.cc', | 142 'log_linux.cc', |
| 162 'log_macos.cc', | 143 'log_macos.cc', |
| 163 'log_win.cc', | 144 'log_win.cc', |
| 164 ], | 145 ], |
| 165 'includes': [ | 146 'includes': [ |
| 166 'builtin_impl_sources.gypi', | 147 'builtin_impl_sources.gypi', |
| 167 '../platform/platform_sources.gypi', | 148 '../platform/platform_sources.gypi', |
| 168 ], | 149 ], |
| 169 'sources/': [ | 150 'sources/': [ |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 'toolsets':['host'], | 244 'toolsets':['host'], |
| 264 'dependencies': [ | 245 'dependencies': [ |
| 265 'libdart_withcore', | 246 'libdart_withcore', |
| 266 'libdart_builtin', | 247 'libdart_builtin', |
| 267 ], | 248 ], |
| 268 'include_dirs': [ | 249 'include_dirs': [ |
| 269 '..', | 250 '..', |
| 270 ], | 251 ], |
| 271 'sources': [ | 252 'sources': [ |
| 272 'gen_snapshot.cc', | 253 'gen_snapshot.cc', |
| 273 # Only looks up native functions in libdart_builtin, not libdart_io. | 254 # Very limited native resolver provided. |
| 274 'builtin_gen_snapshot.cc', | 255 'builtin_gen_snapshot.cc', |
| 256 'builtin.cc', |
| 257 'builtin.h', |
| 275 # Include generated source files. | 258 # Include generated source files. |
| 276 '<(builtin_cc_file)', | 259 '<(builtin_cc_file)', |
| 277 '<(io_cc_file)', | 260 '<(io_cc_file)', |
| 278 '<(io_patch_cc_file)', | 261 '<(io_patch_cc_file)', |
| 279 ], | 262 ], |
| 280 'conditions': [ | 263 'conditions': [ |
| 281 ['OS=="win"', { | 264 ['OS=="win"', { |
| 282 'link_settings': { | 265 'link_settings': { |
| 283 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 266 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], |
| 284 }, | 267 }, |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 'libdart_builtin', | 369 'libdart_builtin', |
| 387 'libdart_io', | 370 'libdart_io', |
| 388 'generate_snapshot_file#host', | 371 'generate_snapshot_file#host', |
| 389 'generate_resources_cc_file', | 372 'generate_resources_cc_file', |
| 390 ], | 373 ], |
| 391 'include_dirs': [ | 374 'include_dirs': [ |
| 392 '..', | 375 '..', |
| 393 ], | 376 ], |
| 394 'sources': [ | 377 'sources': [ |
| 395 'main.cc', | 378 'main.cc', |
| 379 'builtin_natives.cc', |
| 396 'builtin_nolib.cc', | 380 'builtin_nolib.cc', |
| 381 'builtin.h', |
| 382 'io_natives.h', |
| 397 'resources.h', | 383 'resources.h', |
| 398 'vmstats.h', | 384 'vmstats.h', |
| 399 'vmstats_impl.cc', | 385 'vmstats_impl.cc', |
| 400 'vmstats_impl.h', | 386 'vmstats_impl.h', |
| 401 'vmstats_impl_android.cc', | 387 'vmstats_impl_android.cc', |
| 402 'vmstats_impl_linux.cc', | 388 'vmstats_impl_linux.cc', |
| 403 'vmstats_impl_macos.cc', | 389 'vmstats_impl_macos.cc', |
| 404 'vmstats_impl_win.cc', | 390 'vmstats_impl_win.cc', |
| 405 '<(snapshot_cc_file)', | 391 '<(snapshot_cc_file)', |
| 406 '<(resources_cc_file)', | 392 '<(resources_cc_file)', |
| (...skipping 29 matching lines...) Expand all Loading... |
| 436 'libdart_builtin', | 422 'libdart_builtin', |
| 437 'libdart_io', | 423 'libdart_io', |
| 438 'generate_resources_cc_file', | 424 'generate_resources_cc_file', |
| 439 ], | 425 ], |
| 440 'include_dirs': [ | 426 'include_dirs': [ |
| 441 '..', | 427 '..', |
| 442 ], | 428 ], |
| 443 'sources': [ | 429 'sources': [ |
| 444 'main.cc', | 430 'main.cc', |
| 445 'builtin.cc', | 431 'builtin.cc', |
| 432 'builtin_natives.cc', |
| 433 'builtin.h', |
| 434 'io_natives.h', |
| 446 'resources.h', | 435 'resources.h', |
| 447 'vmstats.h', | 436 'vmstats.h', |
| 448 'vmstats_impl.cc', | 437 'vmstats_impl.cc', |
| 449 'vmstats_impl.h', | 438 'vmstats_impl.h', |
| 450 'vmstats_impl_android.cc', | 439 'vmstats_impl_android.cc', |
| 451 'vmstats_impl_linux.cc', | 440 'vmstats_impl_linux.cc', |
| 452 'vmstats_impl_macos.cc', | 441 'vmstats_impl_macos.cc', |
| 453 'vmstats_impl_win.cc', | 442 'vmstats_impl_win.cc', |
| 454 # Include generated source files. | 443 # Include generated source files. |
| 455 '<(builtin_cc_file)', | 444 '<(builtin_cc_file)', |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 'libdart_io', | 485 'libdart_io', |
| 497 'generate_snapshot_test_dat_file', | 486 'generate_snapshot_test_dat_file', |
| 498 ], | 487 ], |
| 499 'include_dirs': [ | 488 'include_dirs': [ |
| 500 '..', | 489 '..', |
| 501 '<(gen_source_dir)', | 490 '<(gen_source_dir)', |
| 502 ], | 491 ], |
| 503 'sources': [ | 492 'sources': [ |
| 504 'run_vm_tests.cc', | 493 'run_vm_tests.cc', |
| 505 'builtin.cc', | 494 'builtin.cc', |
| 495 'builtin_natives.cc', |
| 496 'builtin.h', |
| 497 'io_natives.h', |
| 506 # Include generated source files. | 498 # Include generated source files. |
| 507 '<(builtin_cc_file)', | 499 '<(builtin_cc_file)', |
| 508 '<(io_cc_file)', | 500 '<(io_cc_file)', |
| 509 '<(io_patch_cc_file)', | 501 '<(io_patch_cc_file)', |
| 510 ], | 502 ], |
| 511 'includes': [ | 503 'includes': [ |
| 512 'builtin_impl_sources.gypi', | 504 'builtin_impl_sources.gypi', |
| 513 '../platform/platform_sources.gypi', | 505 '../platform/platform_sources.gypi', |
| 514 '../vm/vm_sources.gypi', | 506 '../vm/vm_sources.gypi', |
| 515 ], | 507 ], |
| 516 'defines': [ | 508 'defines': [ |
| 517 'TESTING', | 509 'TESTING', |
| 518 ], | 510 ], |
| 519 # Only include _test.[cc|h] files. | 511 # Only include _test.[cc|h] files. |
| 520 'sources/': [ | 512 'sources/': [ |
| 521 ['exclude', '\\.(cc|h)$'], | 513 ['exclude', '\\.(cc|h)$'], |
| 522 ['include', 'run_vm_tests.cc'], | 514 ['include', 'run_vm_tests.cc'], |
| 523 ['include', 'builtin.cc'], | 515 ['include', 'builtin.cc'], |
| 516 ['include', 'builtin_natives.cc'], |
| 524 ['include', '_gen\\.cc$'], | 517 ['include', '_gen\\.cc$'], |
| 525 ['include', '_test\\.(cc|h)$'], | 518 ['include', '_test\\.(cc|h)$'], |
| 526 ], | 519 ], |
| 527 'conditions': [ | 520 'conditions': [ |
| 528 ['OS=="win"', { | 521 ['OS=="win"', { |
| 529 'link_settings': { | 522 'link_settings': { |
| 530 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], | 523 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], |
| 531 }, | 524 }, |
| 532 }], | 525 }], |
| 533 ], | 526 ], |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 ['OS=="linux"', { | 559 ['OS=="linux"', { |
| 567 'cflags': [ | 560 'cflags': [ |
| 568 '-fPIC', | 561 '-fPIC', |
| 569 ], | 562 ], |
| 570 }], | 563 }], |
| 571 ], | 564 ], |
| 572 }, | 565 }, |
| 573 ], | 566 ], |
| 574 } | 567 } |
| 575 | 568 |
| OLD | NEW |