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 'libgen_in_cc_file': '../lib/libgen_in.cc', | 8 'libgen_in_cc_file': '../lib/libgen_in.cc', |
9 'builtin_in_cc_file': '../bin/builtin_in.cc', | 9 'builtin_in_cc_file': '../bin/builtin_in.cc', |
10 'async_cc_file': '<(gen_source_dir)/async_gen.cc', | 10 'async_cc_file': '<(gen_source_dir)/async_gen.cc', |
11 'async_patch_cc_file': '<(gen_source_dir)/async_patch_gen.cc', | 11 'async_patch_cc_file': '<(gen_source_dir)/async_patch_gen.cc', |
12 'corelib_cc_file': '<(gen_source_dir)/corelib_gen.cc', | 12 'corelib_cc_file': '<(gen_source_dir)/corelib_gen.cc', |
13 'corelib_patch_cc_file': '<(gen_source_dir)/corelib_patch_gen.cc', | 13 'corelib_patch_cc_file': '<(gen_source_dir)/corelib_patch_gen.cc', |
14 'collection_cc_file': '<(gen_source_dir)/collection_gen.cc', | 14 'collection_cc_file': '<(gen_source_dir)/collection_gen.cc', |
15 'collection_patch_cc_file': '<(gen_source_dir)/collection_patch_gen.cc', | 15 'collection_patch_cc_file': '<(gen_source_dir)/collection_patch_gen.cc', |
16 'collection_dev_cc_file': '<(gen_source_dir)/collection_dev_gen.cc', | 16 'collection_dev_cc_file': '<(gen_source_dir)/collection_dev_gen.cc', |
17 'collection_dev_patch_cc_file': '<(gen_source_dir)/collection_dev_patch_gen.
cc', | 17 'collection_dev_patch_cc_file': '<(gen_source_dir)/collection_dev_patch_gen.
cc', |
18 'convert_cc_file': '<(gen_source_dir)/convert_gen.cc', | 18 'convert_cc_file': '<(gen_source_dir)/convert_gen.cc', |
19 'convert_patch_cc_file': '<(gen_source_dir)/convert_patch_gen.cc', | 19 'convert_patch_cc_file': '<(gen_source_dir)/convert_patch_gen.cc', |
20 'math_cc_file': '<(gen_source_dir)/math_gen.cc', | 20 'math_cc_file': '<(gen_source_dir)/math_gen.cc', |
21 'math_patch_cc_file': '<(gen_source_dir)/math_patch_gen.cc', | 21 'math_patch_cc_file': '<(gen_source_dir)/math_patch_gen.cc', |
22 'mirrors_cc_file': '<(gen_source_dir)/mirrors_gen.cc', | 22 'mirrors_cc_file': '<(gen_source_dir)/mirrors_gen.cc', |
23 'mirrors_patch_cc_file': '<(gen_source_dir)/mirrors_patch_gen.cc', | 23 'mirrors_patch_cc_file': '<(gen_source_dir)/mirrors_patch_gen.cc', |
24 'isolate_cc_file': '<(gen_source_dir)/isolate_gen.cc', | 24 'isolate_cc_file': '<(gen_source_dir)/isolate_gen.cc', |
25 'isolate_patch_cc_file': '<(gen_source_dir)/isolate_patch_gen.cc', | 25 'isolate_patch_cc_file': '<(gen_source_dir)/isolate_patch_gen.cc', |
26 'typed_data_cc_file': '<(gen_source_dir)/typed_data_gen.cc', | 26 'typed_data_cc_file': '<(gen_source_dir)/typed_data_gen.cc', |
27 'typed_data_patch_cc_file': '<(gen_source_dir)/typed_data_patch_gen.cc', | 27 'typed_data_patch_cc_file': '<(gen_source_dir)/typed_data_patch_gen.cc', |
| 28 'service_cc_file': '<(gen_source_dir)/service_gen.cc', |
28 'snapshot_test_dat_file': '<(gen_source_dir)/snapshot_test.dat', | 29 'snapshot_test_dat_file': '<(gen_source_dir)/snapshot_test.dat', |
29 'snapshot_test_in_dat_file': 'snapshot_test_in.dat', | 30 'snapshot_test_in_dat_file': 'snapshot_test_in.dat', |
30 'snapshot_test_dart_file': 'snapshot_test.dart', | 31 'snapshot_test_dart_file': 'snapshot_test.dart', |
31 }, | 32 }, |
32 'targets': [ | 33 'targets': [ |
33 { | 34 { |
34 'target_name': 'libdart_vm', | 35 'target_name': 'libdart_vm', |
35 'type': 'static_library', | 36 'type': 'static_library', |
36 'toolsets':['host', 'target'], | 37 'toolsets':['host', 'target'], |
| 38 'dependencies': [ |
| 39 'generate_service_cc_file#host' |
| 40 ], |
37 'includes': [ | 41 'includes': [ |
38 'vm_sources.gypi', | 42 'vm_sources.gypi', |
39 '../platform/platform_headers.gypi', | 43 '../platform/platform_headers.gypi', |
40 '../platform/platform_sources.gypi', | 44 '../platform/platform_sources.gypi', |
41 ], | 45 ], |
| 46 'sources': [ |
| 47 # Include generated source files. |
| 48 '<(service_cc_file)', |
| 49 ], |
42 'sources/': [ | 50 'sources/': [ |
43 # Exclude all _test.[cc|h] files. | 51 # Exclude all _test.[cc|h] files. |
44 ['exclude', '_test\\.(cc|h)$'], | 52 ['exclude', '_test\\.(cc|h)$'], |
45 ], | 53 ], |
46 'include_dirs': [ | 54 'include_dirs': [ |
47 '..', | 55 '..', |
48 ], | 56 ], |
49 'conditions': [ | 57 'conditions': [ |
50 ['OS=="linux"', { | 58 ['OS=="linux"', { |
51 'link_settings': { | 59 'link_settings': { |
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
899 '--output', '<(snapshot_test_dat_file)', | 907 '--output', '<(snapshot_test_dat_file)', |
900 '--input_cc', '<(snapshot_test_in_dat_file)', | 908 '--input_cc', '<(snapshot_test_in_dat_file)', |
901 '--include', 'INTENTIONALLY_LEFT_BLANK', | 909 '--include', 'INTENTIONALLY_LEFT_BLANK', |
902 '--var_name', 'INTENTIONALLY_LEFT_BLANK_TOO', | 910 '--var_name', 'INTENTIONALLY_LEFT_BLANK_TOO', |
903 '<(snapshot_test_dart_file)', | 911 '<(snapshot_test_dart_file)', |
904 ], | 912 ], |
905 'message': 'Generating ''<(snapshot_test_dat_file)'' file.' | 913 'message': 'Generating ''<(snapshot_test_dat_file)'' file.' |
906 }, | 914 }, |
907 ] | 915 ] |
908 }, | 916 }, |
| 917 { |
| 918 'target_name': 'generate_service_cc_file', |
| 919 'type': 'none', |
| 920 'toolsets':['host'], |
| 921 'includes': [ |
| 922 'service_sources.gypi', |
| 923 ], |
| 924 'actions': [ |
| 925 { |
| 926 'action_name': 'generate_service_cc', |
| 927 'inputs': [ |
| 928 '../tools/create_resources.py', |
| 929 '<@(_sources)', |
| 930 ], |
| 931 'outputs': [ |
| 932 '<(service_cc_file)', |
| 933 ], |
| 934 'action': [ |
| 935 'python', |
| 936 'tools/create_resources.py', |
| 937 '--output', '<(service_cc_file)', |
| 938 '--outer_namespace', 'dart', |
| 939 '--table_name', 'service', |
| 940 '--root_prefix', 'vm/service/', |
| 941 '<@(_sources)' |
| 942 ], |
| 943 'message': 'Generating ''<(service_cc_file)'' file.' |
| 944 }, |
| 945 ] |
| 946 }, |
909 ] | 947 ] |
910 } | 948 } |
OLD | NEW |