OLD | NEW |
1 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2011, 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 'includes': [ | 6 'includes': [ |
7 'tools/gyp/runtime-configurations.gypi', | 7 'tools/gyp/runtime-configurations.gypi', |
8 'vm/vm.gypi', | 8 'vm/vm.gypi', |
9 'bin/bin.gypi', | 9 'bin/bin.gypi', |
10 'third_party/double-conversion/src/double-conversion.gypi', | 10 'third_party/double-conversion/src/double-conversion.gypi', |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 'target_name': 'libdart_dependency_helper.host', | 104 'target_name': 'libdart_dependency_helper.host', |
105 'type': 'executable', | 105 'type': 'executable', |
106 'toolsets':['host'], | 106 'toolsets':['host'], |
107 # The dependencies here are the union of the dependencies of libdart and | 107 # The dependencies here are the union of the dependencies of libdart and |
108 # libdart_withcore. | 108 # libdart_withcore. |
109 'dependencies': ['<@(libdart_deps)'], | 109 'dependencies': ['<@(libdart_deps)'], |
110 'sources': [ | 110 'sources': [ |
111 'vm/libdart_dependency_helper.cc', | 111 'vm/libdart_dependency_helper.cc', |
112 ], | 112 ], |
113 }, | 113 }, |
| 114 # Targets coming from dart/dart.gyp. |
114 { | 115 { |
115 'target_name': 'runtime_packages', | 116 'target_name': 'runtime_all', |
116 'type': 'none', | 117 'type': 'none', |
117 'dependencies': [ | 118 'dependencies': [ |
118 '../pkg/pkg.gyp:pkg_packages', | 119 '../pkg/pkg.gyp:pkg_packages', |
| 120 'sample_extension', |
| 121 ], |
| 122 }, |
| 123 { |
| 124 'target_name': 'sample_extension', |
| 125 'type': 'shared_library', |
| 126 'dependencies': [ |
| 127 'dart', |
| 128 ], |
| 129 'include_dirs': [ |
| 130 '.', |
| 131 ], |
| 132 'sources': [ |
| 133 '../samples/sample_extension/sample_extension.cc', |
| 134 '../samples/sample_extension/sample_extension_dllmain_win.cc', |
| 135 ], |
| 136 'defines': [ |
| 137 'DART_SHARED_LIB', |
| 138 ], |
| 139 'conditions': [ |
| 140 ['OS=="win"', { |
| 141 'msvs_settings': { |
| 142 'VCLinkerTool': { |
| 143 'AdditionalDependencies': [ 'dart.lib' ], |
| 144 'AdditionalLibraryDirectories': [ '<(PRODUCT_DIR)' ], |
| 145 }, |
| 146 }, |
| 147 }], |
| 148 ['OS=="mac"', { |
| 149 'xcode_settings': { |
| 150 'OTHER_LDFLAGS': [ |
| 151 '-undefined', |
| 152 'dynamic_lookup', |
| 153 ], |
| 154 }, |
| 155 }], |
| 156 ['OS=="linux"', { |
| 157 'cflags': [ |
| 158 '-fPIC', |
| 159 ], |
| 160 }], |
119 ], | 161 ], |
120 }, | 162 }, |
121 ], | 163 ], |
122 } | 164 } |
OLD | NEW |