| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 action("generate_snapshot_bin") { | 5 action("generate_snapshot_bin") { |
| 6 deps = [ | 6 deps = [ |
| 7 "//dart/runtime/bin:gen_snapshot", | 7 "//dart/runtime/bin:gen_snapshot", |
| 8 ] | 8 ] |
| 9 inputs = [ | 9 inputs = [ |
| 10 "snapshot.dart", | 10 "snapshot.dart", |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 outputs = [ | 31 outputs = [ |
| 32 output, | 32 output, |
| 33 ] | 33 ] |
| 34 | 34 |
| 35 script = "//dart/runtime/tools/create_snapshot_bin.py" | 35 script = "//dart/runtime/tools/create_snapshot_bin.py" |
| 36 builtin_path = rebase_path("//mojo/dart/embedder/builtin.dart") | 36 builtin_path = rebase_path("//mojo/dart/embedder/builtin.dart") |
| 37 bindings_path = rebase_path("//mojo/public/dart/bindings.dart") | 37 bindings_path = rebase_path("//mojo/public/dart/bindings.dart") |
| 38 core_path = rebase_path("//mojo/public/dart/core.dart") | 38 core_path = rebase_path("//mojo/public/dart/core.dart") |
| 39 args = [ | 39 args = [ |
| 40 "--executable", rebase_path("$root_out_dir/gen_snapshot"), | 40 "--executable", rebase_path("$root_out_dir/gen_snapshot"), |
| 41 "--package_root", rebase_path("$root_gen_dir"), |
| 41 "--script", rebase_path("snapshot.dart"), | 42 "--script", rebase_path("snapshot.dart"), |
| 42 "--output_bin", rebase_path(output, root_build_dir), | 43 "--output_bin", rebase_path(output, root_build_dir), |
| 43 "--target_os", os, | 44 "--target_os", os, |
| 44 "--url_mapping=dart:mojo_bindings,$bindings_path", | 45 "--url_mapping=dart:mojo_bindings,$bindings_path", |
| 45 "--url_mapping=dart:mojo_builtin,$builtin_path", | 46 "--url_mapping=dart:mojo_builtin,$builtin_path", |
| 46 "--url_mapping=dart:mojo_core,$core_path", | 47 "--url_mapping=dart:mojo_core,$core_path", |
| 47 ] | 48 ] |
| 48 } | 49 } |
| 49 | 50 |
| 50 action("generate_snapshot_file") { | 51 action("generate_snapshot_file") { |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 | 96 |
| 96 defines = [] | 97 defines = [] |
| 97 if (is_debug) { | 98 if (is_debug) { |
| 98 defines += [ "DEBUG" ] | 99 defines += [ "DEBUG" ] |
| 99 } else { | 100 } else { |
| 100 defines += [ "NDEBUG" ] | 101 defines += [ "NDEBUG" ] |
| 101 } | 102 } |
| 102 | 103 |
| 103 include_dirs = [ "//dart/runtime" ] | 104 include_dirs = [ "//dart/runtime" ] |
| 104 } | 105 } |
| OLD | NEW |