OLD | NEW |
1 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 # Copyright (c) 2014, 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 import("runtime_args.gni") | 5 import("runtime_args.gni") |
6 | 6 |
7 declare_args() { | 7 declare_args() { |
8 # Instead of using is_debug, we introduce a different flag for specifying a | 8 # Instead of using is_debug, we introduce a different flag for specifying a |
9 # Debug build of Dart so that clients can still use a Release build of Dart | 9 # Debug build of Dart so that clients can still use a Release build of Dart |
10 # while themselves doing a Debug build. | 10 # while themselves doing a Debug build. |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 } | 196 } |
197 if (defined(is_msan) && is_msan) { | 197 if (defined(is_msan) && is_msan) { |
198 ldflags += [ "-fsanitize=memory" ] | 198 ldflags += [ "-fsanitize=memory" ] |
199 } | 199 } |
200 if (defined(is_tsan) && is_tsan) { | 200 if (defined(is_tsan) && is_tsan) { |
201 ldflags += [ "-fsanitize=thread" ] | 201 ldflags += [ "-fsanitize=thread" ] |
202 } | 202 } |
203 } | 203 } |
204 } | 204 } |
205 | 205 |
| 206 source_set("dart_api") { |
| 207 public_configs = [ ":dart_public_config" ] |
| 208 sources = [ |
| 209 "include/dart_api.h", |
| 210 "include/dart_mirrors_api.h", |
| 211 "include/dart_native_api.h", |
| 212 "include/dart_tools_api.h", |
| 213 ] |
| 214 } |
| 215 |
206 template("libdart_library") { | 216 template("libdart_library") { |
207 extra_configs = [] | 217 extra_configs = [] |
208 if (defined(invoker.extra_configs)) { | 218 if (defined(invoker.extra_configs)) { |
209 extra_configs += invoker.extra_configs | 219 extra_configs += invoker.extra_configs |
210 } | 220 } |
211 extra_deps = [] | 221 extra_deps = [] |
212 if (defined(invoker.extra_deps)) { | 222 if (defined(invoker.extra_deps)) { |
213 extra_deps += invoker.extra_deps | 223 extra_deps += invoker.extra_deps |
214 } | 224 } |
215 static_library(target_name) { | 225 static_library(target_name) { |
(...skipping 17 matching lines...) Expand all Loading... |
233 "vm/dart_api_impl.cc", | 243 "vm/dart_api_impl.cc", |
234 "vm/debugger_api_impl.cc", | 244 "vm/debugger_api_impl.cc", |
235 "vm/mirrors_api_impl.cc", | 245 "vm/mirrors_api_impl.cc", |
236 "vm/native_api_impl.cc", | 246 "vm/native_api_impl.cc", |
237 "vm/version.h", | 247 "vm/version.h", |
238 ] | 248 ] |
239 defines = [ "DART_SHARED_LIB" ] | 249 defines = [ "DART_SHARED_LIB" ] |
240 } | 250 } |
241 } | 251 } |
242 | 252 |
| 253 # TODO(rmacnak): Remove after updating all clients to use libdart_jit |
| 254 # or libdart_precompiled_runtime. |
243 libdart_library("libdart") { | 255 libdart_library("libdart") { |
244 extra_configs = [ ":dart_maybe_precompiled_runtime_config" ] | 256 extra_configs = [ ":dart_maybe_precompiled_runtime_config" ] |
245 extra_deps = [ | 257 extra_deps = [ |
246 "vm:libdart_lib", | 258 "vm:libdart_lib", |
247 "vm:libdart_vm", | 259 "vm:libdart_vm", |
248 ] | 260 ] |
249 } | 261 } |
250 | 262 |
| 263 libdart_library("libdart_jit") { |
| 264 extra_deps = [ |
| 265 "vm:libdart_lib_jit", |
| 266 "vm:libdart_vm_jit", |
| 267 ] |
| 268 } |
| 269 |
251 libdart_library("libdart_precompiled_runtime") { | 270 libdart_library("libdart_precompiled_runtime") { |
252 extra_configs = [ ":dart_precompiled_runtime_config" ] | 271 extra_configs = [ ":dart_precompiled_runtime_config" ] |
253 extra_deps = [ | 272 extra_deps = [ |
254 "vm:libdart_lib_precompiled_runtime", | 273 "vm:libdart_lib_precompiled_runtime", |
255 "vm:libdart_vm_precompiled_runtime", | 274 "vm:libdart_vm_precompiled_runtime", |
256 ] | 275 ] |
257 } | 276 } |
258 | 277 |
259 libdart_library("libdart_nosnapshot") { | |
260 extra_configs = [ | |
261 ":dart_no_snapshot_config", | |
262 ":dart_maybe_precompiled_runtime_config", | |
263 ] | |
264 extra_deps = [ | |
265 "vm:libdart_lib_nosnapshot", | |
266 "vm:libdart_vm_nosnapshot", | |
267 ] | |
268 } | |
269 | |
270 libdart_library("libdart_nosnapshot_with_precompiler") { | 278 libdart_library("libdart_nosnapshot_with_precompiler") { |
271 extra_configs = [ | 279 extra_configs = [ |
272 ":dart_no_snapshot_config", | 280 ":dart_no_snapshot_config", |
273 ":dart_precompiler_config", | 281 ":dart_precompiler_config", |
274 ] | 282 ] |
275 extra_deps = [ | 283 extra_deps = [ |
276 "vm:libdart_lib_nosnapshot_with_precompiler", | 284 "vm:libdart_lib_nosnapshot_with_precompiler", |
277 "vm:libdart_vm_nosnapshot_with_precompiler", | 285 "vm:libdart_vm_nosnapshot_with_precompiler", |
278 ] | 286 ] |
279 } | 287 } |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 ] | 319 ] |
312 } | 320 } |
313 | 321 |
314 executable("libdart_dependency_helper") { | 322 executable("libdart_dependency_helper") { |
315 configs += [ | 323 configs += [ |
316 ":dart_config", | 324 ":dart_config", |
317 ":dart_maybe_product_config", | 325 ":dart_maybe_product_config", |
318 ] | 326 ] |
319 deps = [ | 327 deps = [ |
320 "third_party/double-conversion/src:libdouble_conversion", | 328 "third_party/double-conversion/src:libdouble_conversion", |
321 "vm:libdart_lib", | 329 "vm:libdart_lib_jit", |
322 "vm:libdart_lib_nosnapshot", | 330 "vm:libdart_lib_nosnapshot_with_precompiler", |
323 "vm:libdart_vm", | 331 "vm:libdart_vm_jit", |
324 "vm:libdart_vm_nosnapshot", | 332 "vm:libdart_vm_nosnapshot_with_precompiler", |
325 ] | 333 ] |
326 sources = [ | 334 sources = [ |
327 "vm/libdart_dependency_helper.cc", | 335 "vm/libdart_dependency_helper.cc", |
328 ] | 336 ] |
329 } | 337 } |
OLD | NEW |