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 'crypto_cc_file': '<(SHARED_INTERMEDIATE_DIR)/crypto_gen.cc', | |
8 'io_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_gen.cc', | 7 'io_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_gen.cc', |
9 'io_patch_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_patch_gen.cc', | 8 'io_patch_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_patch_gen.cc', |
10 'json_cc_file': '<(SHARED_INTERMEDIATE_DIR)/json_gen.cc', | |
11 'uri_cc_file': '<(SHARED_INTERMEDIATE_DIR)/uri_gen.cc', | |
12 'utf_cc_file': '<(SHARED_INTERMEDIATE_DIR)/utf_gen.cc', | |
13 'builtin_in_cc_file': 'builtin_in.cc', | 9 'builtin_in_cc_file': 'builtin_in.cc', |
14 'builtin_cc_file': '<(SHARED_INTERMEDIATE_DIR)/builtin_gen.cc', | 10 'builtin_cc_file': '<(SHARED_INTERMEDIATE_DIR)/builtin_gen.cc', |
15 'snapshot_in_cc_file': 'snapshot_in.cc', | 11 'snapshot_in_cc_file': 'snapshot_in.cc', |
16 'snapshot_bin_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.bin', | 12 'snapshot_bin_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.bin', |
17 'snapshot_cc_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.cc', | 13 'snapshot_cc_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.cc', |
18 }, | 14 }, |
19 'targets': [ | 15 'targets': [ |
20 { | 16 { |
21 'target_name': 'generate_builtin_cc_file', | 17 'target_name': 'generate_builtin_cc_file', |
22 'type': 'none', | 18 'type': 'none', |
(...skipping 18 matching lines...) Expand all Loading... |
41 '--input_cc', '<(builtin_in_cc_file)', | 37 '--input_cc', '<(builtin_in_cc_file)', |
42 '--include', 'bin/builtin.h', | 38 '--include', 'bin/builtin.h', |
43 '--var_name', 'Builtin::builtin_source_', | 39 '--var_name', 'Builtin::builtin_source_', |
44 '<@(_sources)', | 40 '<@(_sources)', |
45 ], | 41 ], |
46 'message': 'Generating ''<(builtin_cc_file)'' file.' | 42 'message': 'Generating ''<(builtin_cc_file)'' file.' |
47 }, | 43 }, |
48 ] | 44 ] |
49 }, | 45 }, |
50 { | 46 { |
51 'target_name': 'generate_crypto_cc_file', | |
52 'type': 'none', | |
53 'variables': { | |
54 'crypto_dart': '<(SHARED_INTERMEDIATE_DIR)/crypto_gen.dart', | |
55 }, | |
56 'includes': [ | |
57 'crypto_sources.gypi', | |
58 ], | |
59 'actions': [ | |
60 { | |
61 'action_name': 'generate_crypto_dart', | |
62 'inputs': [ | |
63 '../tools/concat_library.py', | |
64 '<@(_sources)', | |
65 ], | |
66 'outputs': [ | |
67 '<(crypto_dart)', | |
68 ], | |
69 'action': [ | |
70 'python', | |
71 '<@(_inputs)', | |
72 '--output', '<(crypto_dart)', | |
73 ], | |
74 'message': 'Generating ''<(crypto_dart)'' file.', | |
75 }, | |
76 { | |
77 'action_name': 'generate_crypto_cc', | |
78 'inputs': [ | |
79 '../tools/create_string_literal.py', | |
80 '<(builtin_in_cc_file)', | |
81 '<(crypto_dart)', | |
82 ], | |
83 'outputs': [ | |
84 '<(crypto_cc_file)', | |
85 ], | |
86 'action': [ | |
87 'python', | |
88 'tools/create_string_literal.py', | |
89 '--output', '<(crypto_cc_file)', | |
90 '--input_cc', '<(builtin_in_cc_file)', | |
91 '--include', 'bin/builtin.h', | |
92 '--var_name', 'Builtin::crypto_source_', | |
93 '<(crypto_dart)', | |
94 ], | |
95 'message': 'Generating ''<(crypto_cc_file)'' file.' | |
96 }, | |
97 ] | |
98 }, | |
99 { | |
100 'target_name': 'generate_io_cc_file', | 47 'target_name': 'generate_io_cc_file', |
101 'type': 'none', | 48 'type': 'none', |
102 'variables': { | 49 'variables': { |
103 'io_dart': '<(SHARED_INTERMEDIATE_DIR)/io_gen.dart', | 50 'io_dart': '<(SHARED_INTERMEDIATE_DIR)/io_gen.dart', |
104 }, | 51 }, |
105 'sources': [ | 52 'sources': [ |
106 'io.dart', | 53 'io.dart', |
107 ], | 54 ], |
108 'includes': [ | 55 'includes': [ |
109 '../../sdk/lib/io/iolib_sources.gypi', | 56 '../../sdk/lib/io/iolib_sources.gypi', |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 '--input_cc', '<(builtin_in_cc_file)', | 119 '--input_cc', '<(builtin_in_cc_file)', |
173 '--include', 'bin/builtin.h', | 120 '--include', 'bin/builtin.h', |
174 '--var_name', 'Builtin::io_patch_', | 121 '--var_name', 'Builtin::io_patch_', |
175 '<@(_sources)', | 122 '<@(_sources)', |
176 ], | 123 ], |
177 'message': 'Generating ''<(io_patch_cc_file)'' file.' | 124 'message': 'Generating ''<(io_patch_cc_file)'' file.' |
178 }, | 125 }, |
179 ] | 126 ] |
180 }, | 127 }, |
181 { | 128 { |
182 'target_name': 'generate_json_cc_file', | |
183 'type': 'none', | |
184 'variables': { | |
185 'json_dart': '<(SHARED_INTERMEDIATE_DIR)/json_gen.dart', | |
186 }, | |
187 'includes': [ | |
188 'json_sources.gypi', | |
189 ], | |
190 'actions': [ | |
191 { | |
192 'action_name': 'generate_json_dart', | |
193 'inputs': [ | |
194 '../tools/concat_library.py', | |
195 '<@(_sources)', | |
196 ], | |
197 'outputs': [ | |
198 '<(json_dart)', | |
199 ], | |
200 'action': [ | |
201 'python', | |
202 '<@(_inputs)', | |
203 '--output', '<(json_dart)', | |
204 ], | |
205 'message': 'Generating ''<(json_dart)'' file.', | |
206 }, | |
207 { | |
208 'action_name': 'generate_json_cc', | |
209 'inputs': [ | |
210 '../tools/create_string_literal.py', | |
211 '<(builtin_in_cc_file)', | |
212 '<(json_dart)', | |
213 ], | |
214 'outputs': [ | |
215 '<(json_cc_file)', | |
216 ], | |
217 'action': [ | |
218 'python', | |
219 'tools/create_string_literal.py', | |
220 '--output', '<(json_cc_file)', | |
221 '--input_cc', '<(builtin_in_cc_file)', | |
222 '--include', 'bin/builtin.h', | |
223 '--var_name', 'Builtin::json_source_', | |
224 '<(json_dart)', | |
225 ], | |
226 'message': 'Generating ''<(json_cc_file)'' file.' | |
227 }, | |
228 ] | |
229 }, | |
230 { | |
231 'target_name': 'generate_uri_cc_file', | |
232 'type': 'none', | |
233 'variables': { | |
234 'uri_dart': '<(SHARED_INTERMEDIATE_DIR)/uri_gen.dart', | |
235 }, | |
236 'includes': [ | |
237 'uri_sources.gypi', | |
238 ], | |
239 'actions': [ | |
240 { | |
241 'action_name': 'generate_uri_dart', | |
242 'inputs': [ | |
243 '../tools/concat_library.py', | |
244 '<@(_sources)', | |
245 ], | |
246 'outputs': [ | |
247 '<(uri_dart)', | |
248 ], | |
249 'action': [ | |
250 'python', | |
251 '<@(_inputs)', | |
252 '--output', '<(uri_dart)', | |
253 ], | |
254 'message': 'Generating ''<(uri_dart)'' file.' | |
255 }, | |
256 { | |
257 'action_name': 'generate_uri_cc', | |
258 'inputs': [ | |
259 '../tools/create_string_literal.py', | |
260 '<(builtin_in_cc_file)', | |
261 '<(uri_dart)', | |
262 ], | |
263 'outputs': [ | |
264 '<(uri_cc_file)', | |
265 ], | |
266 'action': [ | |
267 'python', | |
268 'tools/create_string_literal.py', | |
269 '--output', '<(uri_cc_file)', | |
270 '--input_cc', '<(builtin_in_cc_file)', | |
271 '--include', 'bin/builtin.h', | |
272 '--var_name', 'Builtin::uri_source_', | |
273 '<(uri_dart)', | |
274 ], | |
275 'message': 'Generating ''<(uri_cc_file)'' file.' | |
276 }, | |
277 ] | |
278 }, | |
279 { | |
280 'target_name': 'generate_utf_cc_file', | |
281 'type': 'none', | |
282 'variables': { | |
283 'utf_dart': '<(SHARED_INTERMEDIATE_DIR)/utf_gen.dart', | |
284 }, | |
285 'includes': [ | |
286 'utf_sources.gypi', | |
287 ], | |
288 'actions': [ | |
289 { | |
290 'action_name': 'generate_utf_dart', | |
291 'inputs': [ | |
292 '../tools/concat_library.py', | |
293 '<@(_sources)', | |
294 ], | |
295 'outputs': [ | |
296 '<(utf_dart)', | |
297 ], | |
298 'action': [ | |
299 'python', | |
300 '<@(_inputs)', | |
301 '--output', '<(utf_dart)', | |
302 ], | |
303 'message': 'Generating ''<(utf_dart)'' file.', | |
304 }, | |
305 { | |
306 'action_name': 'generate_utf_cc', | |
307 'inputs': [ | |
308 '../tools/create_string_literal.py', | |
309 '<(builtin_in_cc_file)', | |
310 '<(utf_dart)', | |
311 ], | |
312 'outputs': [ | |
313 '<(utf_cc_file)', | |
314 ], | |
315 'action': [ | |
316 'python', | |
317 'tools/create_string_literal.py', | |
318 '--output', '<(utf_cc_file)', | |
319 '--input_cc', '<(builtin_in_cc_file)', | |
320 '--include', 'bin/builtin.h', | |
321 '--var_name', 'Builtin::utf_source_', | |
322 '<(utf_dart)', | |
323 ], | |
324 'message': 'Generating ''<(utf_cc_file)'' file.' | |
325 }, | |
326 ] | |
327 }, | |
328 { | |
329 'target_name': 'libdart_builtin', | 129 'target_name': 'libdart_builtin', |
330 'type': 'static_library', | 130 'type': 'static_library', |
331 'dependencies': [ | 131 'dependencies': [ |
332 'generate_builtin_cc_file', | 132 'generate_builtin_cc_file', |
333 'generate_crypto_cc_file', | |
334 'generate_io_cc_file', | 133 'generate_io_cc_file', |
335 'generate_io_patch_cc_file', | 134 'generate_io_patch_cc_file', |
336 'generate_json_cc_file', | |
337 'generate_uri_cc_file', | |
338 'generate_utf_cc_file', | |
339 ], | 135 ], |
340 'include_dirs': [ | 136 'include_dirs': [ |
341 '..', | 137 '..', |
342 ], | 138 ], |
343 'sources': [ | 139 'sources': [ |
344 'builtin_natives.cc', | 140 'builtin_natives.cc', |
345 'builtin.h', | 141 'builtin.h', |
346 'io_natives.h', | 142 'io_natives.h', |
347 'log_android.cc', | 143 'log_android.cc', |
348 'log_linux.cc', | 144 'log_linux.cc', |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 ], | 248 ], |
453 'include_dirs': [ | 249 'include_dirs': [ |
454 '..', | 250 '..', |
455 ], | 251 ], |
456 'sources': [ | 252 'sources': [ |
457 'gen_snapshot.cc', | 253 'gen_snapshot.cc', |
458 # Only looks up native functions in libdart_builtin, not libdart_io. | 254 # Only looks up native functions in libdart_builtin, not libdart_io. |
459 'builtin_gen_snapshot.cc', | 255 'builtin_gen_snapshot.cc', |
460 # Include generated source files. | 256 # Include generated source files. |
461 '<(builtin_cc_file)', | 257 '<(builtin_cc_file)', |
462 '<(crypto_cc_file)', | |
463 '<(io_cc_file)', | 258 '<(io_cc_file)', |
464 '<(io_patch_cc_file)', | 259 '<(io_patch_cc_file)', |
465 '<(json_cc_file)', | |
466 '<(uri_cc_file)', | |
467 '<(utf_cc_file)', | |
468 ], | 260 ], |
469 'conditions': [ | 261 'conditions': [ |
470 ['OS=="win"', { | 262 ['OS=="win"', { |
471 'link_settings': { | 263 'link_settings': { |
472 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 264 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], |
473 }, | 265 }, |
474 }], | 266 }], |
475 ['OS=="android"', { | 267 ['OS=="android"', { |
476 'link_settings': { | 268 'link_settings': { |
477 'libraries': [ '-llog' ], | 269 'libraries': [ '-llog' ], |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
587 'libdart_io', | 379 'libdart_io', |
588 ], | 380 ], |
589 'include_dirs': [ | 381 'include_dirs': [ |
590 '..', | 382 '..', |
591 ], | 383 ], |
592 'sources': [ | 384 'sources': [ |
593 'main.cc', | 385 'main.cc', |
594 'builtin.cc', | 386 'builtin.cc', |
595 # Include generated source files. | 387 # Include generated source files. |
596 '<(builtin_cc_file)', | 388 '<(builtin_cc_file)', |
597 '<(crypto_cc_file)', | |
598 '<(io_cc_file)', | 389 '<(io_cc_file)', |
599 '<(io_patch_cc_file)', | 390 '<(io_patch_cc_file)', |
600 '<(json_cc_file)', | |
601 '<(uri_cc_file)', | |
602 '<(utf_cc_file)', | |
603 'snapshot_empty.cc', | 391 'snapshot_empty.cc', |
604 ], | 392 ], |
605 'conditions': [ | 393 'conditions': [ |
606 ['OS=="win"', { | 394 ['OS=="win"', { |
607 'link_settings': { | 395 'link_settings': { |
608 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], | 396 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], |
609 }, | 397 }, |
610 # Generate an import library on Windows, by exporting a function. | 398 # Generate an import library on Windows, by exporting a function. |
611 # Extensions use this import library to link to the API in dart.exe. | 399 # Extensions use this import library to link to the API in dart.exe. |
612 'msvs_settings': { | 400 'msvs_settings': { |
(...skipping 29 matching lines...) Expand all Loading... |
642 ], | 430 ], |
643 'include_dirs': [ | 431 'include_dirs': [ |
644 '..', | 432 '..', |
645 '<(SHARED_INTERMEDIATE_DIR)', | 433 '<(SHARED_INTERMEDIATE_DIR)', |
646 ], | 434 ], |
647 'sources': [ | 435 'sources': [ |
648 'run_vm_tests.cc', | 436 'run_vm_tests.cc', |
649 'builtin.cc', | 437 'builtin.cc', |
650 # Include generated source files. | 438 # Include generated source files. |
651 '<(builtin_cc_file)', | 439 '<(builtin_cc_file)', |
652 '<(crypto_cc_file)', | |
653 '<(io_cc_file)', | 440 '<(io_cc_file)', |
654 '<(io_patch_cc_file)', | 441 '<(io_patch_cc_file)', |
655 '<(json_cc_file)', | |
656 '<(uri_cc_file)', | |
657 '<(utf_cc_file)', | |
658 ], | 442 ], |
659 'includes': [ | 443 'includes': [ |
660 'builtin_impl_sources.gypi', | 444 'builtin_impl_sources.gypi', |
661 '../platform/platform_sources.gypi', | 445 '../platform/platform_sources.gypi', |
662 '../vm/vm_sources.gypi', | 446 '../vm/vm_sources.gypi', |
663 ], | 447 ], |
664 'defines': [ | 448 'defines': [ |
665 'TESTING', | 449 'TESTING', |
666 ], | 450 ], |
667 # Only include _test.[cc|h] files. | 451 # Only include _test.[cc|h] files. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
709 ['OS=="mac"', { | 493 ['OS=="mac"', { |
710 'xcode_settings': { | 494 'xcode_settings': { |
711 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], | 495 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], |
712 }, | 496 }, |
713 }], | 497 }], |
714 ], | 498 ], |
715 }, | 499 }, |
716 ], | 500 ], |
717 } | 501 } |
718 | 502 |
OLD | NEW |