OLD | NEW |
(Empty) | |
| 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 |
| 3 # BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 static_library("libdart") { |
| 6 configs += ["..:dart_config"] |
| 7 deps = [ |
| 8 "vm:libdart_lib", |
| 9 "vm:libdart_vm", |
| 10 "third_party/jscre:libjscre", |
| 11 "third_party/double-conversion/src:libdouble_conversion", |
| 12 ":generate_version_cc_file", |
| 13 ] |
| 14 include_dirs = [ |
| 15 ".", |
| 16 ] |
| 17 sources = [ |
| 18 "include/dart_api.h", |
| 19 "include/dart_debugger_api.h", |
| 20 "include/dart_mirrors_api.h", |
| 21 "include/dart_native_api.h", |
| 22 "vm/dart_api_impl.cc", |
| 23 "vm/debugger_api_impl.cc", |
| 24 "vm/mirrors_api_impl.cc", |
| 25 "vm/native_api_impl.cc", |
| 26 "vm/version.h", |
| 27 "$target_gen_dir/version.cc", |
| 28 ] |
| 29 defines = [ |
| 30 # Using DART_SHARED_LIB to export the Dart API entries. |
| 31 "DART_SHARED_LIB", |
| 32 ] |
| 33 } |
| 34 |
| 35 |
| 36 action("generate_version_cc_file") { |
| 37 deps = [ |
| 38 ":libdart_dependency_helper", |
| 39 ] |
| 40 inputs = [ |
| 41 "../tools/utils.py", |
| 42 "../tools/print_version.py", |
| 43 "../tools/VERSION", |
| 44 "vm/version_in.cc", |
| 45 ] |
| 46 output = "$target_gen_dir/version.cc" |
| 47 outputs = [ output, ] |
| 48 |
| 49 script = "../tools/make_version.py" |
| 50 args = [ |
| 51 "--output", rebase_path(output, root_build_dir), |
| 52 "--input", rebase_path("vm/version_in.cc", root_build_dir), |
| 53 ] |
| 54 } |
| 55 |
| 56 |
| 57 executable("libdart_dependency_helper") { |
| 58 deps = [ |
| 59 "vm:libdart_lib_withcore", |
| 60 "vm:libdart_lib", |
| 61 "vm:libdart_vm", |
| 62 "vm:libdart_platform", |
| 63 "third_party/jscre:libjscre", |
| 64 "third_party/double-conversion/src:libdouble_conversion", |
| 65 ] |
| 66 sources = [ |
| 67 "vm/libdart_dependency_helper.cc", |
| 68 ] |
| 69 } |
OLD | NEW |