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 'core_cc_file': '<(gen_source_dir)/core_gen.cc', | 12 'core_cc_file': '<(gen_source_dir)/core_gen.cc', |
13 'core_patch_cc_file': '<(gen_source_dir)/core_patch_gen.cc', | 13 'core_patch_cc_file': '<(gen_source_dir)/core_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 'convert_cc_file': '<(gen_source_dir)/convert_gen.cc', | 16 'convert_cc_file': '<(gen_source_dir)/convert_gen.cc', |
17 'convert_patch_cc_file': '<(gen_source_dir)/convert_patch_gen.cc', | 17 'convert_patch_cc_file': '<(gen_source_dir)/convert_patch_gen.cc', |
18 'developer_cc_file': '<(gen_source_dir)/developer_gen.cc', | 18 'developer_cc_file': '<(gen_source_dir)/developer_gen.cc', |
19 'developer_patch_cc_file': '<(gen_source_dir)/developer_patch_gen.cc', | 19 'developer_patch_cc_file': '<(gen_source_dir)/developer_patch_gen.cc', |
20 'internal_cc_file': '<(gen_source_dir)/internal_gen.cc', | 20 'internal_cc_file': '<(gen_source_dir)/internal_gen.cc', |
21 'internal_patch_cc_file': '<(gen_source_dir)/internal_patch_gen.cc', | 21 'internal_patch_cc_file': '<(gen_source_dir)/internal_patch_gen.cc', |
22 'isolate_cc_file': '<(gen_source_dir)/isolate_gen.cc', | 22 'isolate_cc_file': '<(gen_source_dir)/isolate_gen.cc', |
23 'isolate_patch_cc_file': '<(gen_source_dir)/isolate_patch_gen.cc', | 23 'isolate_patch_cc_file': '<(gen_source_dir)/isolate_patch_gen.cc', |
24 'math_cc_file': '<(gen_source_dir)/math_gen.cc', | 24 'math_cc_file': '<(gen_source_dir)/math_gen.cc', |
25 'math_patch_cc_file': '<(gen_source_dir)/math_patch_gen.cc', | 25 'math_patch_cc_file': '<(gen_source_dir)/math_patch_gen.cc', |
26 'mirrors_cc_file': '<(gen_source_dir)/mirrors_gen.cc', | 26 'mirrors_cc_file': '<(gen_source_dir)/mirrors_gen.cc', |
27 'mirrors_patch_cc_file': '<(gen_source_dir)/mirrors_patch_gen.cc', | 27 'mirrors_patch_cc_file': '<(gen_source_dir)/mirrors_patch_gen.cc', |
28 'profiler_cc_file': '<(gen_source_dir)/profiler_gen.cc', | 28 'profiler_cc_file': '<(gen_source_dir)/profiler_gen.cc', |
29 'service_cc_file': '<(gen_source_dir)/service_gen.cc', | |
30 'snapshot_test_dat_file': '<(gen_source_dir)/snapshot_test.dat', | 29 'snapshot_test_dat_file': '<(gen_source_dir)/snapshot_test.dat', |
31 'snapshot_test_in_dat_file': 'snapshot_test_in.dat', | 30 'snapshot_test_in_dat_file': 'snapshot_test_in.dat', |
32 'snapshot_test_dart_file': 'snapshot_test.dart', | 31 'snapshot_test_dart_file': 'snapshot_test.dart', |
33 'typed_data_cc_file': '<(gen_source_dir)/typed_data_gen.cc', | 32 'typed_data_cc_file': '<(gen_source_dir)/typed_data_gen.cc', |
34 'typed_data_patch_cc_file': '<(gen_source_dir)/typed_data_patch_gen.cc', | 33 'typed_data_patch_cc_file': '<(gen_source_dir)/typed_data_patch_gen.cc', |
| 34 'vmservice_cc_file': '<(gen_source_dir)/vmservice_gen.cc', |
35 }, | 35 }, |
36 'targets': [ | 36 'targets': [ |
37 { | 37 { |
38 'target_name': 'libdart_vm', | 38 'target_name': 'libdart_vm', |
39 'type': 'static_library', | 39 'type': 'static_library', |
40 'toolsets':['host', 'target'], | 40 'toolsets':['host', 'target'], |
41 'dependencies': [ | |
42 'generate_service_cc_file#host' | |
43 ], | |
44 'includes': [ | 41 'includes': [ |
45 'vm_sources.gypi', | 42 'vm_sources.gypi', |
46 '../platform/platform_headers.gypi', | 43 '../platform/platform_headers.gypi', |
47 '../platform/platform_sources.gypi', | 44 '../platform/platform_sources.gypi', |
48 ], | 45 ], |
49 'sources': [ | |
50 # Include generated source files. | |
51 '<(service_cc_file)', | |
52 ], | |
53 'sources/': [ | 46 'sources/': [ |
54 # Exclude all _test.[cc|h] files. | 47 # Exclude all _test.[cc|h] files. |
55 ['exclude', '_test\\.(cc|h)$'], | 48 ['exclude', '_test\\.(cc|h)$'], |
56 ], | 49 ], |
57 'include_dirs': [ | 50 'include_dirs': [ |
58 '..', | 51 '..', |
59 ], | 52 ], |
60 'conditions': [ | 53 'conditions': [ |
61 ['OS=="linux"', { | 54 ['OS=="linux"', { |
62 'link_settings': { | 55 'link_settings': { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 'libraries': ['-ljitprofiling.lib'], | 91 'libraries': ['-ljitprofiling.lib'], |
99 }], | 92 }], |
100 ], | 93 ], |
101 }, | 94 }, |
102 }]], | 95 }]], |
103 }, | 96 }, |
104 { | 97 { |
105 'target_name': 'libdart_vm_nosnapshot', | 98 'target_name': 'libdart_vm_nosnapshot', |
106 'type': 'static_library', | 99 'type': 'static_library', |
107 'toolsets':['host', 'target'], | 100 'toolsets':['host', 'target'], |
108 'dependencies': [ | |
109 'generate_service_cc_file#host' | |
110 ], | |
111 'includes': [ | 101 'includes': [ |
112 'vm_sources.gypi', | 102 'vm_sources.gypi', |
113 '../platform/platform_headers.gypi', | 103 '../platform/platform_headers.gypi', |
114 '../platform/platform_sources.gypi', | 104 '../platform/platform_sources.gypi', |
115 ], | 105 ], |
116 'sources': [ | |
117 # Include generated source files. | |
118 '<(service_cc_file)', | |
119 ], | |
120 'sources/': [ | 106 'sources/': [ |
121 # Exclude all _test.[cc|h] files. | 107 # Exclude all _test.[cc|h] files. |
122 ['exclude', '_test\\.(cc|h)$'], | 108 ['exclude', '_test\\.(cc|h)$'], |
123 ], | 109 ], |
124 'include_dirs': [ | 110 'include_dirs': [ |
125 '..', | 111 '..', |
126 ], | 112 ], |
127 'defines': [ | 113 'defines': [ |
128 'DART_NO_SNAPSHOT', | 114 'DART_NO_SNAPSHOT', |
129 ], | 115 ], |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 'generate_internal_patch_cc_file#host', | 176 'generate_internal_patch_cc_file#host', |
191 'generate_isolate_cc_file#host', | 177 'generate_isolate_cc_file#host', |
192 'generate_isolate_patch_cc_file#host', | 178 'generate_isolate_patch_cc_file#host', |
193 'generate_math_cc_file#host', | 179 'generate_math_cc_file#host', |
194 'generate_math_patch_cc_file#host', | 180 'generate_math_patch_cc_file#host', |
195 'generate_mirrors_cc_file#host', | 181 'generate_mirrors_cc_file#host', |
196 'generate_mirrors_patch_cc_file#host', | 182 'generate_mirrors_patch_cc_file#host', |
197 'generate_profiler_cc_file#host', | 183 'generate_profiler_cc_file#host', |
198 'generate_typed_data_cc_file#host', | 184 'generate_typed_data_cc_file#host', |
199 'generate_typed_data_patch_cc_file#host', | 185 'generate_typed_data_patch_cc_file#host', |
| 186 'generate_vmservice_cc_file#host', |
200 ], | 187 ], |
201 'includes': [ | 188 'includes': [ |
202 '../lib/async_sources.gypi', | 189 '../lib/async_sources.gypi', |
203 '../lib/collection_sources.gypi', | 190 '../lib/collection_sources.gypi', |
204 '../lib/core_sources.gypi', | 191 '../lib/core_sources.gypi', |
205 '../lib/developer_sources.gypi', | 192 '../lib/developer_sources.gypi', |
206 '../lib/internal_sources.gypi', | 193 '../lib/internal_sources.gypi', |
207 '../lib/isolate_sources.gypi', | 194 '../lib/isolate_sources.gypi', |
208 '../lib/math_sources.gypi', | 195 '../lib/math_sources.gypi', |
209 '../lib/mirrors_sources.gypi', | 196 '../lib/mirrors_sources.gypi', |
(...skipping 16 matching lines...) Expand all Loading... |
226 '<(internal_patch_cc_file)', | 213 '<(internal_patch_cc_file)', |
227 '<(isolate_cc_file)', | 214 '<(isolate_cc_file)', |
228 '<(isolate_patch_cc_file)', | 215 '<(isolate_patch_cc_file)', |
229 '<(math_cc_file)', | 216 '<(math_cc_file)', |
230 '<(math_patch_cc_file)', | 217 '<(math_patch_cc_file)', |
231 '<(mirrors_cc_file)', | 218 '<(mirrors_cc_file)', |
232 '<(mirrors_patch_cc_file)', | 219 '<(mirrors_patch_cc_file)', |
233 '<(profiler_cc_file)', | 220 '<(profiler_cc_file)', |
234 '<(typed_data_cc_file)', | 221 '<(typed_data_cc_file)', |
235 '<(typed_data_patch_cc_file)', | 222 '<(typed_data_patch_cc_file)', |
| 223 '<(vmservice_cc_file)', |
236 ], | 224 ], |
237 'include_dirs': [ | 225 'include_dirs': [ |
238 '..', | 226 '..', |
239 ], | 227 ], |
240 }, | 228 }, |
241 { | 229 { |
242 'target_name': 'libdart_lib', | 230 'target_name': 'libdart_lib', |
243 'type': 'static_library', | 231 'type': 'static_library', |
244 'toolsets':['host', 'target'], | 232 'toolsets':['host', 'target'], |
245 'includes': [ | 233 'includes': [ |
246 '../lib/async_sources.gypi', | 234 '../lib/async_sources.gypi', |
247 '../lib/collection_sources.gypi', | 235 '../lib/collection_sources.gypi', |
248 '../lib/core_sources.gypi', | 236 '../lib/core_sources.gypi', |
249 '../lib/developer_sources.gypi', | 237 '../lib/developer_sources.gypi', |
250 '../lib/internal_sources.gypi', | 238 '../lib/internal_sources.gypi', |
251 '../lib/isolate_sources.gypi', | 239 '../lib/isolate_sources.gypi', |
252 '../lib/math_sources.gypi', | 240 '../lib/math_sources.gypi', |
253 '../lib/mirrors_sources.gypi', | 241 '../lib/mirrors_sources.gypi', |
254 '../lib/typed_data_sources.gypi', | 242 '../lib/typed_data_sources.gypi', |
| 243 '../lib/vmservice_sources.gypi', |
255 ], | 244 ], |
256 'sources': [ | 245 'sources': [ |
257 'bootstrap_nocore.cc', | 246 'bootstrap_nocore.cc', |
258 ], | 247 ], |
259 'include_dirs': [ | 248 'include_dirs': [ |
260 '..', | 249 '..', |
261 ], | 250 ], |
262 }, | 251 }, |
263 { | 252 { |
264 'target_name': 'generate_async_cc_file', | 253 'target_name': 'generate_async_cc_file', |
(...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1121 '--input_cc', '<(snapshot_test_in_dat_file)', | 1110 '--input_cc', '<(snapshot_test_in_dat_file)', |
1122 '--include', 'INTENTIONALLY_LEFT_BLANK', | 1111 '--include', 'INTENTIONALLY_LEFT_BLANK', |
1123 '--var_name', 'INTENTIONALLY_LEFT_BLANK_TOO', | 1112 '--var_name', 'INTENTIONALLY_LEFT_BLANK_TOO', |
1124 '<(snapshot_test_dart_file)', | 1113 '<(snapshot_test_dart_file)', |
1125 ], | 1114 ], |
1126 'message': 'Generating ''<(snapshot_test_dat_file)'' file.' | 1115 'message': 'Generating ''<(snapshot_test_dat_file)'' file.' |
1127 }, | 1116 }, |
1128 ] | 1117 ] |
1129 }, | 1118 }, |
1130 { | 1119 { |
1131 'target_name': 'generate_service_cc_file', | 1120 'target_name': 'generate_vmservice_cc_file', |
1132 'type': 'none', | 1121 'type': 'none', |
1133 'toolsets':['host'], | 1122 'toolsets':['host'], |
1134 'includes': [ | 1123 'includes': [ |
1135 'service_sources.gypi', | 1124 '../lib/vmservice_sources.gypi', |
| 1125 ], |
| 1126 'sources/': [ |
| 1127 # Exclude all .[cc|h] files. |
| 1128 # This is only here for reference. Excludes happen after |
| 1129 # variable expansion, so the script has to do its own |
| 1130 # exclude processing of the sources being passed. |
| 1131 ['exclude', '\\.cc|h$'], |
1136 ], | 1132 ], |
1137 'actions': [ | 1133 'actions': [ |
1138 { | 1134 { |
1139 'action_name': 'generate_service_cc', | 1135 'action_name': 'generate_vmservice_cc', |
1140 'inputs': [ | 1136 'inputs': [ |
1141 '../tools/create_resources.py', | 1137 '../tools/gen_library_src_paths.py', |
| 1138 '<(libgen_in_cc_file)', |
1142 '<@(_sources)', | 1139 '<@(_sources)', |
1143 ], | 1140 ], |
1144 'outputs': [ | 1141 'outputs': [ |
1145 '<(service_cc_file)', | 1142 '<(vmservice_cc_file)', |
1146 ], | 1143 ], |
1147 'action': [ | 1144 'action': [ |
1148 'python', | 1145 'python', |
1149 'tools/create_resources.py', | 1146 'tools/gen_library_src_paths.py', |
1150 '--output', '<(service_cc_file)', | 1147 '--output', '<(vmservice_cc_file)', |
1151 '--outer_namespace', 'dart', | 1148 '--input_cc', '<(libgen_in_cc_file)', |
1152 '--table_name', 'service', | 1149 '--include', 'vm/bootstrap.h', |
1153 '--root_prefix', 'vm/service/', | 1150 '--var_name', 'dart::Bootstrap::vmservice_source_paths_', |
1154 '<@(_sources)' | 1151 '--library_name', 'dart:_vmservice', |
| 1152 '<@(_sources)', |
1155 ], | 1153 ], |
1156 'message': 'Generating ''<(service_cc_file)'' file.' | 1154 'message': 'Generating ''<(vmservice_cc_file)'' file.' |
1157 }, | 1155 }, |
1158 ] | 1156 ] |
1159 }, | 1157 }, |
1160 ] | 1158 ] |
1161 } | 1159 } |
OLD | NEW |