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 'io_patch_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_patch_gen.cc', | 9 'io_patch_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_patch_gen.cc', |
10 'json_cc_file': '<(SHARED_INTERMEDIATE_DIR)/json_gen.cc', | 10 'json_cc_file': '<(SHARED_INTERMEDIATE_DIR)/json_gen.cc', |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 'builtin.h', | 269 'builtin.h', |
270 'io_natives.h', | 270 'io_natives.h', |
271 ], | 271 ], |
272 'includes': [ | 272 'includes': [ |
273 'builtin_impl_sources.gypi', | 273 'builtin_impl_sources.gypi', |
274 '../platform/platform_sources.gypi', | 274 '../platform/platform_sources.gypi', |
275 ], | 275 ], |
276 'sources/': [ | 276 'sources/': [ |
277 ['exclude', '_test\\.(cc|h)$'], | 277 ['exclude', '_test\\.(cc|h)$'], |
278 ], | 278 ], |
| 279 'defines': [ |
| 280 'NSS_USE_STATIC_LIBS=1', |
| 281 ], |
279 'conditions': [ | 282 'conditions': [ |
280 ['OS=="win"', { | 283 ['OS=="win"', { |
281 'sources/' : [ | 284 'sources/' : [ |
282 ['exclude', 'fdutils.h'], | 285 ['exclude', 'fdutils.h'], |
283 ], | 286 ], |
284 # TODO(antonm): fix the implementation. | 287 # TODO(antonm): fix the implementation. |
285 # Current implementation accepts char* strings | 288 # Current implementation accepts char* strings |
286 # and therefore fails to compile once _UNICODE is | 289 # and therefore fails to compile once _UNICODE is |
287 # enabled. That should be addressed using -A | 290 # enabled. That should be addressed using -A |
288 # versions of functions and adding necessary conversions. | 291 # versions of functions and adding necessary conversions. |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 '<(crypto_cc_file)', | 385 '<(crypto_cc_file)', |
383 '<(io_cc_file)', | 386 '<(io_cc_file)', |
384 '<(io_patch_cc_file)', | 387 '<(io_patch_cc_file)', |
385 '<(json_cc_file)', | 388 '<(json_cc_file)', |
386 '<(uri_cc_file)', | 389 '<(uri_cc_file)', |
387 '<(utf_cc_file)', | 390 '<(utf_cc_file)', |
388 ], | 391 ], |
389 'conditions': [ | 392 'conditions': [ |
390 ['OS=="win"', { | 393 ['OS=="win"', { |
391 'link_settings': { | 394 'link_settings': { |
392 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 395 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], |
393 }, | 396 }, |
394 }]], | 397 }]], |
395 }, | 398 }, |
396 { | 399 { |
397 # Generate snapshot bin file. | 400 # Generate snapshot bin file. |
398 'target_name': 'generate_snapshot_bin', | 401 'target_name': 'generate_snapshot_bin', |
399 'type': 'none', | 402 'type': 'none', |
400 'dependencies': [ | 403 'dependencies': [ |
401 'gen_snapshot', | 404 'gen_snapshot', |
402 ], | 405 ], |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 '..', | 468 '..', |
466 ], | 469 ], |
467 'sources': [ | 470 'sources': [ |
468 'main.cc', | 471 'main.cc', |
469 'builtin_nolib.cc', | 472 'builtin_nolib.cc', |
470 '<(snapshot_cc_file)', | 473 '<(snapshot_cc_file)', |
471 ], | 474 ], |
472 'conditions': [ | 475 'conditions': [ |
473 ['OS=="win"', { | 476 ['OS=="win"', { |
474 'link_settings': { | 477 'link_settings': { |
475 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 478 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], |
476 }, | 479 }, |
477 # Generate an import library on Windows, by exporting a function. | 480 # Generate an import library on Windows, by exporting a function. |
478 # Extensions use this import library to link to the API in dart.exe. | 481 # Extensions use this import library to link to the API in dart.exe. |
479 'msvs_settings': { | 482 'msvs_settings': { |
480 'VCLinkerTool': { | 483 'VCLinkerTool': { |
481 'AdditionalOptions': [ '/EXPORT:Dart_True' ], | 484 'AdditionalOptions': [ '/EXPORT:Dart_True' ], |
482 }, | 485 }, |
483 }, | 486 }, |
484 }], | 487 }], |
485 ], | 488 ], |
(...skipping 19 matching lines...) Expand all Loading... |
505 '<(io_cc_file)', | 508 '<(io_cc_file)', |
506 '<(io_patch_cc_file)', | 509 '<(io_patch_cc_file)', |
507 '<(json_cc_file)', | 510 '<(json_cc_file)', |
508 '<(uri_cc_file)', | 511 '<(uri_cc_file)', |
509 '<(utf_cc_file)', | 512 '<(utf_cc_file)', |
510 'snapshot_empty.cc', | 513 'snapshot_empty.cc', |
511 ], | 514 ], |
512 'conditions': [ | 515 'conditions': [ |
513 ['OS=="win"', { | 516 ['OS=="win"', { |
514 'link_settings': { | 517 'link_settings': { |
515 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 518 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], |
516 }, | 519 }, |
517 # Generate an import library on Windows, by exporting a function. | 520 # Generate an import library on Windows, by exporting a function. |
518 # Extensions use this import library to link to the API in dart.exe. | 521 # Extensions use this import library to link to the API in dart.exe. |
519 'msvs_settings': { | 522 'msvs_settings': { |
520 'VCLinkerTool': { | 523 'VCLinkerTool': { |
521 'AdditionalOptions': [ '/EXPORT:Dart_True' ], | 524 'AdditionalOptions': [ '/EXPORT:Dart_True' ], |
522 }, | 525 }, |
523 }, | 526 }, |
524 }]], | 527 }]], |
525 }, | 528 }, |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
567 'sources/': [ | 570 'sources/': [ |
568 ['exclude', '\\.(cc|h)$'], | 571 ['exclude', '\\.(cc|h)$'], |
569 ['include', 'run_vm_tests.cc'], | 572 ['include', 'run_vm_tests.cc'], |
570 ['include', 'builtin.cc'], | 573 ['include', 'builtin.cc'], |
571 ['include', '_gen\\.cc$'], | 574 ['include', '_gen\\.cc$'], |
572 ['include', '_test\\.(cc|h)$'], | 575 ['include', '_test\\.(cc|h)$'], |
573 ], | 576 ], |
574 'conditions': [ | 577 'conditions': [ |
575 ['OS=="win"', { | 578 ['OS=="win"', { |
576 'link_settings': { | 579 'link_settings': { |
577 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 580 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], |
578 }, | 581 }, |
579 }], | 582 }], |
580 ], | 583 ], |
581 }, | 584 }, |
582 { | 585 { |
583 'target_name': 'test_extension', | 586 'target_name': 'test_extension', |
584 'type': 'shared_library', | 587 'type': 'shared_library', |
585 'dependencies': [ | 588 'dependencies': [ |
586 'dart', | 589 'dart', |
587 ], | 590 ], |
(...skipping 20 matching lines...) Expand all Loading... |
608 ['OS=="mac"', { | 611 ['OS=="mac"', { |
609 'xcode_settings': { | 612 'xcode_settings': { |
610 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], | 613 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], |
611 }, | 614 }, |
612 }], | 615 }], |
613 ], | 616 ], |
614 }, | 617 }, |
615 ], | 618 ], |
616 } | 619 } |
617 | 620 |
OLD | NEW |