xref: /aosp_15_r20/external/angle/build/rust/tests/test_bin_crate/BUILD.gn (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1# Copyright 2021 The Chromium Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import("//build/rust/cargo_crate.gni")
6
7cargo_crate("test_bin_crate") {
8  crate_type = "bin"
9  crate_root = "crate/src/main.rs"
10  sources = [
11    "crate/src/main.rs",
12    "crate/src/more.rs",
13  ]
14  build_sources = [ "crate/build.rs" ]
15  build_root = "crate/build.rs"
16
17  rustenv = [ "BUILD_SCRIPT_TEST_VARIABLE=123" ]
18}
19