| 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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 'include_dirs': [ | 315 'include_dirs': [ |
| 316 '..', | 316 '..', |
| 317 ], | 317 ], |
| 318 'sources': [ | 318 'sources': [ |
| 319 '../include/dart_api.h', | 319 '../include/dart_api.h', |
| 320 '../include/dart_debugger_api.h', | 320 '../include/dart_debugger_api.h', |
| 321 '../vm/dart_api_impl.cc', | 321 '../vm/dart_api_impl.cc', |
| 322 '../vm/debugger_api_impl.cc', | 322 '../vm/debugger_api_impl.cc', |
| 323 '<(version_cc_file)', | 323 '<(version_cc_file)', |
| 324 ], | 324 ], |
| 325 'defines': [ |
| 326 'DART_SHARED_LIB', |
| 327 ], |
| 325 }, | 328 }, |
| 326 { | 329 { |
| 327 # Completely statically linked binary for generating snapshots. | 330 # Completely statically linked binary for generating snapshots. |
| 328 'target_name': 'gen_snapshot', | 331 'target_name': 'gen_snapshot', |
| 329 'type': 'executable', | 332 'type': 'executable', |
| 330 'dependencies': [ | 333 'dependencies': [ |
| 331 'libdart_withcore', | 334 'libdart_withcore', |
| 332 'libdart_builtin', | 335 'libdart_builtin', |
| 333 ], | 336 ], |
| 334 'include_dirs': [ | 337 'include_dirs': [ |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 '<(json_cc_file)', | 468 '<(json_cc_file)', |
| 466 '<(uri_cc_file)', | 469 '<(uri_cc_file)', |
| 467 '<(utf_cc_file)', | 470 '<(utf_cc_file)', |
| 468 'snapshot_empty.cc', | 471 'snapshot_empty.cc', |
| 469 ], | 472 ], |
| 470 'conditions': [ | 473 'conditions': [ |
| 471 ['OS=="win"', { | 474 ['OS=="win"', { |
| 472 'link_settings': { | 475 'link_settings': { |
| 473 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 476 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], |
| 474 }, | 477 }, |
| 478 # Generate an import library on Windows, by exporting a function. |
| 479 # Extensions use this import library to link to the API in dart.exe. |
| 480 'msvs_settings': { |
| 481 'VCLinkerTool': { |
| 482 'AdditionalOptions': [ '/EXPORT:Dart_True' ], |
| 483 }, |
| 484 }, |
| 475 }]], | 485 }]], |
| 476 }, | 486 }, |
| 477 { | 487 { |
| 478 'target_name': 'process_test', | 488 'target_name': 'process_test', |
| 479 'type': 'executable', | 489 'type': 'executable', |
| 480 'sources': [ | 490 'sources': [ |
| 481 'process_test.cc', | 491 'process_test.cc', |
| 482 ] | 492 ] |
| 483 }, | 493 }, |
| 484 { | 494 { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 'dart', | 546 'dart', |
| 537 ], | 547 ], |
| 538 'include_dirs': [ | 548 'include_dirs': [ |
| 539 '..', | 549 '..', |
| 540 ], | 550 ], |
| 541 'sources': [ | 551 'sources': [ |
| 542 'test_extension.cc', | 552 'test_extension.cc', |
| 543 'test_extension_dllmain_win.cc', | 553 'test_extension_dllmain_win.cc', |
| 544 ], | 554 ], |
| 545 'defines': [ | 555 'defines': [ |
| 556 # The only effect of DART_SHARED_LIB is to export the Dart API entries. |
| 546 'DART_SHARED_LIB', | 557 'DART_SHARED_LIB', |
| 547 ], | 558 ], |
| 548 'conditions': [ | 559 'conditions': [ |
| 549 ['OS=="win"', { | 560 ['OS=="win"', { |
| 550 'msvs_settings': { | 561 'msvs_settings': { |
| 551 'VCLinkerTool': { | 562 'VCLinkerTool': { |
| 552 'AdditionalDependencies': [ 'dart.lib' ], | 563 'AdditionalDependencies': [ 'dart.lib' ], |
| 553 'AdditionalLibraryDirectories': [ '<(PRODUCT_DIR)' ], | 564 'AdditionalLibraryDirectories': [ '<(PRODUCT_DIR)' ], |
| 554 }, | 565 }, |
| 555 }, | 566 }, |
| 556 }], | 567 }], |
| 557 ['OS=="mac"', { | 568 ['OS=="mac"', { |
| 558 'xcode_settings': { | 569 'xcode_settings': { |
| 559 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], | 570 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], |
| 560 }, | 571 }, |
| 561 }], | 572 }], |
| 562 ], | 573 ], |
| 563 }, | 574 }, |
| 564 ], | 575 ], |
| 565 } | 576 } |
| 566 | 577 |
| OLD | NEW |