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', | 7 'crypto_cc_file': '<(SHARED_INTERMEDIATE_DIR)/crypto_gen.cc', |
8 'io_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_gen.cc', | 8 'io_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_gen.cc', |
9 'json_cc_file': '<(SHARED_INTERMEDIATE_DIR)/json_gen.cc', | 9 'json_cc_file': '<(SHARED_INTERMEDIATE_DIR)/json_gen.cc', |
10 'uri_cc_file': '<(SHARED_INTERMEDIATE_DIR)/uri_gen.cc', | 10 'uri_cc_file': '<(SHARED_INTERMEDIATE_DIR)/uri_gen.cc', |
11 'utf_cc_file': '<(SHARED_INTERMEDIATE_DIR)/utf_gen.cc', | 11 'utf_cc_file': '<(SHARED_INTERMEDIATE_DIR)/utf_gen.cc', |
| 12 'web_cc_file': '<(SHARED_INTERMEDIATE_DIR)/web_gen.cc', |
12 'builtin_in_cc_file': 'builtin_in.cc', | 13 'builtin_in_cc_file': 'builtin_in.cc', |
13 'builtin_cc_file': '<(SHARED_INTERMEDIATE_DIR)/builtin_gen.cc', | 14 'builtin_cc_file': '<(SHARED_INTERMEDIATE_DIR)/builtin_gen.cc', |
14 'snapshot_in_cc_file': 'snapshot_in.cc', | 15 'snapshot_in_cc_file': 'snapshot_in.cc', |
15 'snapshot_bin_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.bin', | 16 'snapshot_bin_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.bin', |
16 'snapshot_cc_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.cc', | 17 'snapshot_cc_file': '<(SHARED_INTERMEDIATE_DIR)/snapshot_gen.cc', |
17 }, | 18 }, |
18 'targets': [ | 19 'targets': [ |
19 { | 20 { |
20 'target_name': 'generate_builtin_cc_file', | 21 'target_name': 'generate_builtin_cc_file', |
21 'type': 'none', | 22 'type': 'none', |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 '--input_cc', '<(builtin_in_cc_file)', | 210 '--input_cc', '<(builtin_in_cc_file)', |
210 '--include', 'bin/builtin.h', | 211 '--include', 'bin/builtin.h', |
211 '--var_name', 'Builtin::utf_source_', | 212 '--var_name', 'Builtin::utf_source_', |
212 '<@(_sources)', | 213 '<@(_sources)', |
213 ], | 214 ], |
214 'message': 'Generating ''<(utf_cc_file)'' file.' | 215 'message': 'Generating ''<(utf_cc_file)'' file.' |
215 }, | 216 }, |
216 ] | 217 ] |
217 }, | 218 }, |
218 { | 219 { |
| 220 'target_name': 'generate_web_cc_file', |
| 221 'type': 'none', |
| 222 'includes': [ |
| 223 'web_sources.gypi', |
| 224 ], |
| 225 'actions': [ |
| 226 { |
| 227 'action_name': 'generate_web_cc', |
| 228 'inputs': [ |
| 229 '../tools/create_string_literal.py', |
| 230 '<(builtin_in_cc_file)', |
| 231 '<@(_sources)', |
| 232 ], |
| 233 'outputs': [ |
| 234 '<(web_cc_file)', |
| 235 ], |
| 236 'action': [ |
| 237 'python', |
| 238 'tools/create_string_literal.py', |
| 239 '--output', '<(web_cc_file)', |
| 240 '--input_cc', '<(builtin_in_cc_file)', |
| 241 '--include', 'bin/builtin.h', |
| 242 '--var_name', 'Builtin::web_source_', |
| 243 '<@(_sources)', |
| 244 ], |
| 245 'message': 'Generating ''<(web_cc_file)'' file.' |
| 246 }, |
| 247 ] |
| 248 }, |
| 249 { |
219 'target_name': 'libdart_builtin', | 250 'target_name': 'libdart_builtin', |
220 'type': 'static_library', | 251 'type': 'static_library', |
221 'dependencies': [ | 252 'dependencies': [ |
222 'generate_builtin_cc_file', | 253 'generate_builtin_cc_file', |
223 'generate_crypto_cc_file', | 254 'generate_crypto_cc_file', |
224 'generate_io_cc_file', | 255 'generate_io_cc_file', |
225 'generate_json_cc_file', | 256 'generate_json_cc_file', |
226 'generate_uri_cc_file', | 257 'generate_uri_cc_file', |
227 'generate_utf_cc_file', | 258 'generate_utf_cc_file', |
| 259 'generate_web_cc_file', |
228 ], | 260 ], |
229 'include_dirs': [ | 261 'include_dirs': [ |
230 '..', | 262 '..', |
231 ], | 263 ], |
232 'sources': [ | 264 'sources': [ |
233 'builtin_natives.cc', | 265 'builtin_natives.cc', |
234 'builtin.h', | 266 'builtin.h', |
235 ], | 267 ], |
236 'includes': [ | 268 'includes': [ |
237 'builtin_impl_sources.gypi', | 269 'builtin_impl_sources.gypi', |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 'sources': [ | 332 'sources': [ |
301 'gen_snapshot.cc', | 333 'gen_snapshot.cc', |
302 'builtin.cc', | 334 'builtin.cc', |
303 # Include generated source files. | 335 # Include generated source files. |
304 '<(builtin_cc_file)', | 336 '<(builtin_cc_file)', |
305 '<(crypto_cc_file)', | 337 '<(crypto_cc_file)', |
306 '<(io_cc_file)', | 338 '<(io_cc_file)', |
307 '<(json_cc_file)', | 339 '<(json_cc_file)', |
308 '<(uri_cc_file)', | 340 '<(uri_cc_file)', |
309 '<(utf_cc_file)', | 341 '<(utf_cc_file)', |
| 342 '<(web_cc_file)', |
310 ], | 343 ], |
311 'conditions': [ | 344 'conditions': [ |
312 ['OS=="win"', { | 345 ['OS=="win"', { |
313 'link_settings': { | 346 'link_settings': { |
314 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 347 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], |
315 }, | 348 }, |
316 }]], | 349 }]], |
317 }, | 350 }, |
318 { | 351 { |
319 # Generate snapshot file. | 352 # Generate snapshot file. |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 'libdart_builtin', | 387 'libdart_builtin', |
355 'generate_snapshot_file', | 388 'generate_snapshot_file', |
356 ], | 389 ], |
357 'include_dirs': [ | 390 'include_dirs': [ |
358 '..', | 391 '..', |
359 ], | 392 ], |
360 'sources': [ | 393 'sources': [ |
361 'main.cc', | 394 'main.cc', |
362 'builtin_nolib.cc', | 395 'builtin_nolib.cc', |
363 '<(snapshot_cc_file)', | 396 '<(snapshot_cc_file)', |
| 397 '<(web_cc_file)', |
364 ], | 398 ], |
365 'conditions': [ | 399 'conditions': [ |
366 ['OS=="win"', { | 400 ['OS=="win"', { |
367 'link_settings': { | 401 'link_settings': { |
368 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 402 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], |
369 }, | 403 }, |
370 # Generate an import library on Windows, by exporting a function. | 404 # Generate an import library on Windows, by exporting a function. |
371 # Extensions use this import library to link to the API in dart.exe. | 405 # Extensions use this import library to link to the API in dart.exe. |
372 'msvs_settings': { | 406 'msvs_settings': { |
373 'VCLinkerTool': { | 407 'VCLinkerTool': { |
(...skipping 17 matching lines...) Expand all Loading... |
391 'sources': [ | 425 'sources': [ |
392 'main.cc', | 426 'main.cc', |
393 'builtin.cc', | 427 'builtin.cc', |
394 # Include generated source files. | 428 # Include generated source files. |
395 '<(builtin_cc_file)', | 429 '<(builtin_cc_file)', |
396 '<(crypto_cc_file)', | 430 '<(crypto_cc_file)', |
397 '<(io_cc_file)', | 431 '<(io_cc_file)', |
398 '<(json_cc_file)', | 432 '<(json_cc_file)', |
399 '<(uri_cc_file)', | 433 '<(uri_cc_file)', |
400 '<(utf_cc_file)', | 434 '<(utf_cc_file)', |
| 435 '<(web_cc_file)', |
401 'snapshot_empty.cc', | 436 'snapshot_empty.cc', |
402 ], | 437 ], |
403 'conditions': [ | 438 'conditions': [ |
404 ['OS=="win"', { | 439 ['OS=="win"', { |
405 'link_settings': { | 440 'link_settings': { |
406 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 441 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], |
407 }, | 442 }, |
408 }]], | 443 }]], |
409 }, | 444 }, |
410 { | 445 { |
(...skipping 18 matching lines...) Expand all Loading... |
429 'sources': [ | 464 'sources': [ |
430 'run_vm_tests.cc', | 465 'run_vm_tests.cc', |
431 'builtin.cc', | 466 'builtin.cc', |
432 # Include generated source files. | 467 # Include generated source files. |
433 '<(builtin_cc_file)', | 468 '<(builtin_cc_file)', |
434 '<(crypto_cc_file)', | 469 '<(crypto_cc_file)', |
435 '<(io_cc_file)', | 470 '<(io_cc_file)', |
436 '<(json_cc_file)', | 471 '<(json_cc_file)', |
437 '<(uri_cc_file)', | 472 '<(uri_cc_file)', |
438 '<(utf_cc_file)', | 473 '<(utf_cc_file)', |
| 474 '<(web_cc_file)', |
439 ], | 475 ], |
440 'includes': [ | 476 'includes': [ |
441 'builtin_impl_sources.gypi', | 477 'builtin_impl_sources.gypi', |
442 '../platform/platform_sources.gypi', | 478 '../platform/platform_sources.gypi', |
443 '../vm/vm_sources.gypi', | 479 '../vm/vm_sources.gypi', |
444 ], | 480 ], |
445 'defines': [ | 481 'defines': [ |
446 'TESTING', | 482 'TESTING', |
447 ], | 483 ], |
448 # Only include _test.[cc|h] files. | 484 # Only include _test.[cc|h] files. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 ['OS=="mac"', { | 525 ['OS=="mac"', { |
490 'xcode_settings': { | 526 'xcode_settings': { |
491 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], | 527 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], |
492 }, | 528 }, |
493 }], | 529 }], |
494 ], | 530 ], |
495 }, | 531 }, |
496 ], | 532 ], |
497 } | 533 } |
498 | 534 |
OLD | NEW |