| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 import("rules.gni") | 5 import("rules.gni") |
| 6 | 6 |
| 7 group("rust") { | 7 group("rust") { |
| 8 testonly = true | 8 testonly = true |
| 9 deps = [ | 9 deps = [ |
| 10 ":rust_embedder", | 10 ":rust_embedder", |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 assert(rustdoc_tool != "") | 29 assert(rustdoc_tool != "") |
| 30 | 30 |
| 31 cargo_out_dir = "debug" | 31 cargo_out_dir = "debug" |
| 32 if (!is_debug) { | 32 if (!is_debug) { |
| 33 cargo_out_dir = "release" | 33 cargo_out_dir = "release" |
| 34 } | 34 } |
| 35 manifest = "//mojo/public/rust/Cargo.toml" | 35 manifest = "//mojo/public/rust/Cargo.toml" |
| 36 lib_name = "lib" + target_name + ".rlib" | 36 lib_name = "lib" + target_name + ".rlib" |
| 37 deps = [ | 37 deps = [ |
| 38 "//mojo:system_thunks", | 38 "//mojo:system_thunks", |
| 39 "//mojo/public/interfaces/bindings/tests:validation_parser", |
| 39 "//mojo/rust:rust_embedder", | 40 "//mojo/rust:rust_embedder", |
| 40 ] | 41 ] |
| 41 script = "//mojo/rust/cargo.py" | 42 script = "//mojo/rust/cargo.py" |
| 42 inputs = [ | 43 inputs = [ |
| 43 manifest, | 44 manifest, |
| 44 ] | 45 ] |
| 45 inputs += rust_mojo_sources | 46 inputs += rust_mojo_sources |
| 46 args = [ | 47 args = [ |
| 47 rust_cargo_tool, | 48 rust_cargo_tool, |
| 48 "test", | 49 "test", |
| (...skipping 23 matching lines...) Expand all Loading... |
| 72 sources = [ | 73 sources = [ |
| 73 "//mojo/rust/c_embedder/c_embedder.cc", | 74 "//mojo/rust/c_embedder/c_embedder.cc", |
| 74 "//mojo/rust/c_embedder/c_embedder.h", | 75 "//mojo/rust/c_embedder/c_embedder.h", |
| 75 ] | 76 ] |
| 76 deps = [ | 77 deps = [ |
| 77 "//mojo/edk/base_edk", | 78 "//mojo/edk/base_edk", |
| 78 "//mojo/edk/system", | 79 "//mojo/edk/system", |
| 79 "//mojo/public/interfaces/bindings/tests:test_interfaces", | 80 "//mojo/public/interfaces/bindings/tests:test_interfaces", |
| 80 ] | 81 ] |
| 81 } | 82 } |
| OLD | NEW |