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 'gen_source_dir': '<(SHARED_INTERMEDIATE_DIR)', | 7 'gen_source_dir': '<(SHARED_INTERMEDIATE_DIR)', |
8 | 8 |
9 'io_cc_file': '<(gen_source_dir)/io_gen.cc', | 9 'io_cc_file': '<(gen_source_dir)/io_gen.cc', |
10 'io_patch_cc_file': '<(gen_source_dir)/io_patch_gen.cc', | 10 'io_patch_cc_file': '<(gen_source_dir)/io_patch_gen.cc', |
(...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1160 'Dart_Linux_Base': { | 1160 'Dart_Linux_Base': { |
1161 # Have the linker add all symbols to the dynamic symbol table | 1161 # Have the linker add all symbols to the dynamic symbol table |
1162 # so that extensions can look them up dynamically in the binary. | 1162 # so that extensions can look them up dynamically in the binary. |
1163 'ldflags': [ | 1163 'ldflags': [ |
1164 '-rdynamic', | 1164 '-rdynamic', |
1165 ], | 1165 ], |
1166 }, | 1166 }, |
1167 }, | 1167 }, |
1168 }, | 1168 }, |
1169 { | 1169 { |
1170 # dart binary with a snapshot of corelibs built in and support for testing | |
1171 # precompilation (aka --noopt) | |
1172 'target_name': 'dart_noopt', | |
1173 'type': 'executable', | |
1174 'dependencies': [ | |
1175 'build_observatory#host', | |
1176 'generate_observatory_assets_cc_file#host', | |
1177 'generate_resources_cc_file#host', | |
1178 'generate_snapshot_file#host', | |
1179 'libdart_builtin', | |
1180 'libdart_io', | |
1181 'libdart_noopt', | |
1182 ], | |
1183 'include_dirs': [ | |
1184 '..', | |
1185 ], | |
1186 'sources': [ | |
1187 'main.cc', | |
1188 'builtin.h', | |
1189 'builtin_common.cc', | |
1190 'builtin_natives.cc', | |
1191 'builtin_nolib.cc', | |
1192 'io_natives.h', | |
1193 'vmservice_impl.cc', | |
1194 'vmservice_impl.h', | |
1195 '<(observatory_assets_cc_file)', | |
1196 '<(resources_cc_file)', | |
1197 '<(snapshot_cc_file)', | |
1198 ], | |
1199 'defines': [ | |
1200 'DART_PRECOMPILER', | |
1201 ], | |
1202 'conditions': [ | |
1203 ['OS=="win"', { | |
1204 'link_settings': { | |
1205 'libraries': [ '-lws2_32.lib', '-lRpcrt4.lib', '-lwinmm.lib' ], | |
1206 }, | |
1207 # Generate an import library on Windows, by exporting a function. | |
1208 # Extensions use this import library to link to the API in dart.exe. | |
1209 'msvs_settings': { | |
1210 'VCLinkerTool': { | |
1211 'AdditionalOptions': [ '/EXPORT:Dart_True' ], | |
1212 }, | |
1213 }, | |
1214 }], | |
1215 ], | |
1216 'configurations': { | |
1217 'Dart_Linux_Base': { | |
1218 # Have the linker add all symbols to the dynamic symbol table | |
1219 # so that extensions can look them up dynamically in the binary. | |
1220 'ldflags': [ | |
1221 '-rdynamic', | |
1222 ], | |
1223 }, | |
1224 }, | |
1225 }, | |
1226 { | |
1227 # dart binary for running precompiled snapshots without the compiler. | 1170 # dart binary for running precompiled snapshots without the compiler. |
1228 'target_name': 'dart_precompiled_runtime', | 1171 'target_name': 'dart_precompiled_runtime', |
1229 'type': 'executable', | 1172 'type': 'executable', |
1230 'dependencies': [ | 1173 'dependencies': [ |
1231 'bin/zlib.gyp:zlib_dart', | 1174 'bin/zlib.gyp:zlib_dart', |
1232 'build_observatory#host', | 1175 'build_observatory#host', |
1233 'generate_observatory_assets_cc_file#host', | 1176 'generate_observatory_assets_cc_file#host', |
1234 'generate_resources_cc_file#host', | 1177 'generate_resources_cc_file#host', |
1235 'libdart_builtin', | 1178 'libdart_builtin', |
1236 'libdart_io', | 1179 'libdart_io', |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1460 }], | 1403 }], |
1461 ['OS=="linux"', { | 1404 ['OS=="linux"', { |
1462 'cflags': [ | 1405 'cflags': [ |
1463 '-fPIC', | 1406 '-fPIC', |
1464 ], | 1407 ], |
1465 }], | 1408 }], |
1466 ], | 1409 ], |
1467 }, | 1410 }, |
1468 ], | 1411 ], |
1469 } | 1412 } |
OLD | NEW |