| 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 libdart_library("libdart_with_precompiler") { | 252 libdart_library("libdart_with_precompiler") { |
| 253 extra_configs = [ ":dart_precompiler_config" ] | 253 extra_configs = [ ":dart_precompiler_config" ] |
| 254 extra_deps = [ | 254 extra_deps = [ |
| 255 "vm:libdart_lib_with_precompiler", | 255 "vm:libdart_lib_with_precompiler", |
| 256 "vm:libdart_vm_with_precompiler", | 256 "vm:libdart_vm_with_precompiler", |
| 257 ] | 257 ] |
| 258 } | 258 } |
| 259 | 259 |
| 260 action("generate_version_cc_file") { | 260 action("generate_version_cc_file") { |
| 261 deps = [ | 261 deps = [ |
| 262 ":libdart_dependency_helper", | 262 "third_party/double-conversion/src:libdouble_conversion", |
| 263 "vm:libdart_lib_jit", |
| 264 "vm:libdart_lib_nosnapshot_with_precompiler", |
| 265 "vm:libdart_vm_jit", |
| 266 "vm:libdart_vm_nosnapshot_with_precompiler", |
| 263 ] | 267 ] |
| 264 inputs = [ | 268 inputs = [ |
| 265 "../tools/utils.py", | 269 "../tools/utils.py", |
| 266 "../tools/print_version.py", | 270 "../tools/print_version.py", |
| 267 "../tools/VERSION", | 271 "../tools/VERSION", |
| 268 "vm/version_in.cc", | 272 "vm/version_in.cc", |
| 269 ] | 273 ] |
| 270 output = "$target_gen_dir/version.cc" | 274 output = "$target_gen_dir/version.cc" |
| 271 outputs = [ | 275 outputs = [ |
| 272 output, | 276 output, |
| 273 ] | 277 ] |
| 274 | 278 |
| 275 script = "../tools/make_version.py" | 279 script = "../tools/make_version.py" |
| 276 args = [ | 280 args = [ |
| 277 "--quiet", | 281 "--quiet", |
| 278 "--output", | 282 "--output", |
| 279 rebase_path(output, root_build_dir), | 283 rebase_path(output, root_build_dir), |
| 280 "--input", | 284 "--input", |
| 281 rebase_path("vm/version_in.cc", root_build_dir), | 285 rebase_path("vm/version_in.cc", root_build_dir), |
| 282 ] | 286 ] |
| 283 } | 287 } |
| 284 | |
| 285 executable("libdart_dependency_helper") { | |
| 286 configs += [ | |
| 287 ":dart_config", | |
| 288 ":dart_maybe_product_config", | |
| 289 ] | |
| 290 if (is_fuchsia) { | |
| 291 configs -= [ "//build/config:symbol_visibility_hidden" ] | |
| 292 } | |
| 293 deps = [ | |
| 294 "third_party/double-conversion/src:libdouble_conversion", | |
| 295 "vm:libdart_lib_jit", | |
| 296 "vm:libdart_lib_nosnapshot_with_precompiler", | |
| 297 "vm:libdart_vm_jit", | |
| 298 "vm:libdart_vm_nosnapshot_with_precompiler", | |
| 299 ] | |
| 300 sources = [ | |
| 301 "vm/libdart_dependency_helper.cc", | |
| 302 ] | |
| 303 } | |
| OLD | NEW |