| 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 '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', |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 ], | 330 ], |
| 331 'message': 'Generating ''<(snapshot_cc_file)'' file.' | 331 'message': 'Generating ''<(snapshot_cc_file)'' file.' |
| 332 }, | 332 }, |
| 333 ] | 333 ] |
| 334 }, | 334 }, |
| 335 { | 335 { |
| 336 'target_name': 'generate_resources_cc_file', | 336 'target_name': 'generate_resources_cc_file', |
| 337 'type': 'none', | 337 'type': 'none', |
| 338 'toolsets':['host'], | 338 'toolsets':['host'], |
| 339 'includes': [ | 339 'includes': [ |
| 340 'vmstats_sources.gypi', | 340 'resources_sources.gypi' |
| 341 ], | 341 ], |
| 342 'actions': [ | 342 'actions': [ |
| 343 { | 343 { |
| 344 'action_name': 'generate_resources_cc', | 344 'action_name': 'generate_resources_cc', |
| 345 'inputs': [ | 345 'inputs': [ |
| 346 '../tools/create_resources.py', | 346 '../tools/create_resources.py', |
| 347 '<@(_sources)', | 347 '<@(_sources)', |
| 348 ], | 348 ], |
| 349 'outputs': [ | 349 'outputs': [ |
| 350 '<(resources_cc_file)', | 350 '<(resources_cc_file)', |
| 351 ], | 351 ], |
| 352 'action': [ | 352 'action': [ |
| 353 'python', | 353 'python', |
| 354 'tools/create_resources.py', | 354 'tools/create_resources.py', |
| 355 '--output', '<(resources_cc_file)', | 355 '--output', '<(resources_cc_file)', |
| 356 '--root_prefix', 'bin/vmstats/', | 356 '--root_prefix', 'bin/', |
| 357 '<@(_sources)', | 357 '<@(_sources)', |
| 358 ], | 358 ], |
| 359 'message': 'Generating ''<(resources_cc_file)'' file.' | 359 'message': 'Generating ''<(resources_cc_file)'' file.' |
| 360 }, | 360 }, |
| 361 ] | 361 ] |
| 362 }, | 362 }, |
| 363 { | 363 { |
| 364 # dart binary with a snapshot of corelibs built in. | 364 # dart binary with a snapshot of corelibs built in. |
| 365 'target_name': 'dart', | 365 'target_name': 'dart', |
| 366 'type': 'executable', | 366 'type': 'executable', |
| 367 'dependencies': [ | 367 'dependencies': [ |
| 368 'libdart', | 368 'libdart', |
| 369 'libdart_builtin', | 369 'libdart_builtin', |
| 370 'libdart_io', | 370 'libdart_io', |
| 371 'generate_snapshot_file#host', | 371 'generate_snapshot_file#host', |
| 372 'generate_resources_cc_file#host', | 372 'generate_resources_cc_file#host', |
| 373 ], | 373 ], |
| 374 'include_dirs': [ | 374 'include_dirs': [ |
| 375 '..', | 375 '..', |
| 376 ], | 376 ], |
| 377 'sources': [ | 377 'sources': [ |
| 378 'main.cc', | 378 'main.cc', |
| 379 'builtin_natives.cc', | 379 'builtin_natives.cc', |
| 380 'builtin_nolib.cc', | 380 'builtin_nolib.cc', |
| 381 'builtin.h', | 381 'builtin.h', |
| 382 'io_natives.h', | 382 'io_natives.h', |
| 383 'resources.h', | 383 'resources.h', |
| 384 'vmstats.h', | |
| 385 'vmstats_impl.cc', | |
| 386 'vmstats_impl.h', | |
| 387 'vmstats_impl_android.cc', | |
| 388 'vmstats_impl_linux.cc', | |
| 389 'vmstats_impl_macos.cc', | |
| 390 'vmstats_impl_win.cc', | |
| 391 '<(snapshot_cc_file)', | 384 '<(snapshot_cc_file)', |
| 392 '<(resources_cc_file)', | 385 '<(resources_cc_file)', |
| 393 ], | 386 ], |
| 394 'conditions': [ | 387 'conditions': [ |
| 395 ['OS=="win"', { | 388 ['OS=="win"', { |
| 396 'link_settings': { | 389 'link_settings': { |
| 397 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], | 390 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], |
| 398 }, | 391 }, |
| 399 # Generate an import library on Windows, by exporting a function. | 392 # Generate an import library on Windows, by exporting a function. |
| 400 # Extensions use this import library to link to the API in dart.exe. | 393 # Extensions use this import library to link to the API in dart.exe. |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 'include_dirs': [ | 435 'include_dirs': [ |
| 443 '..', | 436 '..', |
| 444 ], | 437 ], |
| 445 'sources': [ | 438 'sources': [ |
| 446 'main.cc', | 439 'main.cc', |
| 447 'builtin.cc', | 440 'builtin.cc', |
| 448 'builtin_natives.cc', | 441 'builtin_natives.cc', |
| 449 'builtin.h', | 442 'builtin.h', |
| 450 'io_natives.h', | 443 'io_natives.h', |
| 451 'resources.h', | 444 'resources.h', |
| 452 'vmstats.h', | |
| 453 'vmstats_impl.cc', | |
| 454 'vmstats_impl.h', | |
| 455 'vmstats_impl_android.cc', | |
| 456 'vmstats_impl_linux.cc', | |
| 457 'vmstats_impl_macos.cc', | |
| 458 'vmstats_impl_win.cc', | |
| 459 # Include generated source files. | 445 # Include generated source files. |
| 460 '<(builtin_cc_file)', | 446 '<(builtin_cc_file)', |
| 461 '<(io_cc_file)', | 447 '<(io_cc_file)', |
| 462 '<(io_patch_cc_file)', | 448 '<(io_patch_cc_file)', |
| 463 '<(resources_cc_file)', | 449 '<(resources_cc_file)', |
| 464 'snapshot_empty.cc', | 450 'snapshot_empty.cc', |
| 465 ], | 451 ], |
| 466 'conditions': [ | 452 'conditions': [ |
| 467 ['OS=="win"', { | 453 ['OS=="win"', { |
| 468 'link_settings': { | 454 'link_settings': { |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 '-fPIC', | 665 '-fPIC', |
| 680 ], | 666 ], |
| 681 }], | 667 }], |
| 682 ], | 668 ], |
| 683 }, | 669 }, |
| 684 ], | 670 ], |
| 685 }], | 671 }], |
| 686 ], | 672 ], |
| 687 } | 673 } |
| 688 | 674 |
| OLD | NEW |