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 'io_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_gen.cc', | 7 'io_cc_file': '<(SHARED_INTERMEDIATE_DIR)/io_gen.cc', |
8 'json_cc_file': '<(SHARED_INTERMEDIATE_DIR)/json_gen.cc', | 8 'json_cc_file': '<(SHARED_INTERMEDIATE_DIR)/json_gen.cc', |
9 'uri_cc_file': '<(SHARED_INTERMEDIATE_DIR)/uri_gen.cc', | 9 'uri_cc_file': '<(SHARED_INTERMEDIATE_DIR)/uri_gen.cc', |
10 'utf_cc_file': '<(SHARED_INTERMEDIATE_DIR)/utf_gen.cc', | 10 'utf_cc_file': '<(SHARED_INTERMEDIATE_DIR)/utf_gen.cc', |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
339 'sources': [ | 339 'sources': [ |
340 'main.cc', | 340 'main.cc', |
341 'builtin_nolib.cc', | 341 'builtin_nolib.cc', |
342 '<(snapshot_cc_file)', | 342 '<(snapshot_cc_file)', |
343 ], | 343 ], |
344 'conditions': [ | 344 'conditions': [ |
345 ['OS=="win"', { | 345 ['OS=="win"', { |
346 'link_settings': { | 346 'link_settings': { |
347 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 347 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], |
348 }, | 348 }, |
349 }]], | 349 # Generate an import library on Windows, by exporting a function. |
350 # Extensions use this import library to link to the API in dart.exe. | |
351 'msvs_settings': { | |
352 'VCLinkerTool': { | |
353 'AdditionalOptions': [ '/EXPORT:Dart_True' ], | |
354 }, | |
355 }, | |
356 }], | |
357 ], | |
350 }, | 358 }, |
351 { | 359 { |
352 # dart binary without any snapshot built in. | 360 # dart binary without any snapshot built in. |
353 'target_name': 'dart_no_snapshot', | 361 'target_name': 'dart_no_snapshot', |
354 'type': 'executable', | 362 'type': 'executable', |
355 'dependencies': [ | 363 'dependencies': [ |
356 'libdart_withcore', | 364 'libdart_withcore', |
357 'libdart_builtin', | 365 'libdart_builtin', |
358 ], | 366 ], |
359 'include_dirs': [ | 367 'include_dirs': [ |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
414 ['include', 'run_vm_tests.cc'], | 422 ['include', 'run_vm_tests.cc'], |
415 ], | 423 ], |
416 'conditions': [ | 424 'conditions': [ |
417 ['OS=="win"', { | 425 ['OS=="win"', { |
418 'link_settings': { | 426 'link_settings': { |
419 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], | 427 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib' ], |
420 }, | 428 }, |
421 }], | 429 }], |
422 ], | 430 ], |
423 }, | 431 }, |
432 { | |
433 'target_name': 'test_extension', | |
434 'dependencies': [ | |
435 'dart', | |
436 ], | |
437 'include_dirs': [ | |
438 '..', | |
439 ], | |
440 'sources': [ | |
441 'test_extension.cc', | |
442 'test_extension_dllmain_win.cc', | |
443 ], | |
444 'defines': [ | |
445 'DART_SHARED_LIB', | |
446 ], | |
447 'conditions': [ | |
448 ['OS=="win"', { | |
449 'type': 'shared_library', | |
Ivan Posva
2012/03/08 17:03:05
Why are windows and linux not using loadable_modul
| |
450 'msvs_settings': { | |
451 'VCLinkerTool': { | |
452 'AdditionalDependencies': [ 'dart.lib' ], | |
453 'AdditionalLibraryDirectories': [ '<(PRODUCT_DIR)' ], | |
454 }, | |
455 }, | |
456 }], | |
457 ['OS=="macos"', { | |
458 'type': 'loadable_module', | |
459 'xcode_settings': { | |
460 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], | |
461 }, | |
462 }], | |
463 ['OS=="linux"', { | |
464 'type': 'shared_library', | |
465 }], | |
466 ], | |
467 }, | |
424 ], | 468 ], |
425 'conditions': [ | |
426 ['OS=="linux"', { | |
427 'targets': [ | |
428 { | |
429 'target_name': 'test_extension', | |
430 'type': 'shared_library', | |
431 'dependencies': [ | |
432 ], | |
433 'include_dirs': [ | |
434 '.', | |
435 ], | |
436 'sources': [ | |
437 'test_extension_linux.cc', | |
438 ], | |
439 'defines': [ | |
440 'DART_SHARED_LIB', | |
441 ], | |
442 }, | |
443 ], | |
444 }], | |
445 ], | |
446 } | 469 } |
447 | 470 |
OLD | NEW |