OLD | NEW |
| (Empty) |
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 | |
3 # BSD-style license that can be found in the LICENSE file. | |
4 | |
5 { | |
6 'includes': [ | |
7 '../../runtime/tools/gyp/runtime-configurations.gypi', | |
8 ], | |
9 'targets': [ | |
10 { | |
11 'target_name': 'sample_extension', | |
12 'type': 'shared_library', | |
13 'include_dirs': [ | |
14 '../../runtime', | |
15 ], | |
16 'sources': [ | |
17 'sample_extension.cc', | |
18 'sample_extension_dllmain_win.cc', | |
19 ], | |
20 'defines': [ | |
21 'DART_SHARED_LIB', | |
22 ], | |
23 'conditions': [ | |
24 ['OS=="win"', { | |
25 'msvs_settings': { | |
26 'VCLinkerTool': { | |
27 'AdditionalDependencies': [ 'dart.lib' ], | |
28 'AdditionalLibraryDirectories': [ '<(PRODUCT_DIR)' ], | |
29 }, | |
30 }, | |
31 }], | |
32 ['OS=="mac"', { | |
33 'xcode_settings': { | |
34 'OTHER_LDFLAGS': [ '-undefined', 'dynamic_lookup' ], | |
35 }, | |
36 }], | |
37 ['OS=="linux"', { | |
38 'cflags': [ | |
39 '-fPIC', | |
40 ], | |
41 }], | |
42 ], | |
43 }, | |
44 ], | |
45 } | |
OLD | NEW |