Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: runtime/bin/bin.gypi

Issue 9465004: Add native extensions for the Dart shell to mac and windows (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use shared library (dylib) on Mac (and therefore for all platforms). Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/bin/builtin_impl_sources.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 'type': 'shared_library',
435 'dependencies': [
436 'dart',
437 ],
438 'include_dirs': [
439 '..',
440 ],
441 'sources': [
442 'test_extension.cc',
443 'test_extension_dllmain_win.cc',
444 ],
445 'defines': [
446 'DART_SHARED_LIB',
447 ],
448 'conditions': [
449 ['OS=="win"', {
450 'msvs_settings': {
451 'VCLinkerTool': {
452 'AdditionalDependencies': [ 'dart.lib' ],
453 'AdditionalLibraryDirectories': [ '<(PRODUCT_DIR)' ],
454 },
455 },
456 }],
457 ['OS=="mac"', {
458 'xcode_settings': {
459 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ],
460 },
461 }],
462 ],
463 },
424 ], 464 ],
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 } 465 }
447 466
OLDNEW
« no previous file with comments | « no previous file | runtime/bin/builtin_impl_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698