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', |
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
515 }, | 515 }, |
516 }], | 516 }], |
517 ['OS=="mac"', { | 517 ['OS=="mac"', { |
518 'xcode_settings': { | 518 'xcode_settings': { |
519 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], | 519 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], |
520 }, | 520 }, |
521 }], | 521 }], |
522 ], | 522 ], |
523 }, | 523 }, |
524 ], | 524 ], |
| 525 'conditions': [ |
| 526 ['OS=="android"', |
| 527 { |
| 528 'targets': [ |
| 529 { |
| 530 # dart shared library with a snapshot of corelibs built in. |
| 531 # designed to be called from Java (e.g. on Android) |
| 532 'target_name': 'dart_so', |
| 533 'type': 'shared_library', |
| 534 'dependencies': [ |
| 535 'libdart_export', |
| 536 'libdart_builtin', |
| 537 'generate_snapshot_file', |
| 538 ], |
| 539 'include_dirs': [ |
| 540 '..' |
| 541 ], |
| 542 'defines': [ |
| 543 'DART_SHARED_LIB' |
| 544 ], |
| 545 'sources': [ |
| 546 'main.cc', |
| 547 'main_android.cc', |
| 548 'builtin_nolib.cc', |
| 549 '<(snapshot_cc_file)', |
| 550 ], |
| 551 'link_settings': { |
| 552 'libraries': [ '-llog' ], |
| 553 'ldflags': [ |
| 554 '-z', 'muldefs', |
| 555 ], |
| 556 'ldflags!': [ |
| 557 '-Wl,--exclude-libs=ALL', |
| 558 ], |
| 559 }, |
| 560 }, |
| 561 ], |
| 562 }, |
| 563 ] |
| 564 ], |
| 565 |
525 } | 566 } |
526 | 567 |
OLD | NEW |