blob: 6bd7c0691af4aeee73f5264bc7ce1239fcc3d164 [file] [log] [blame]
Janis Danisevskisc51dff82021-10-20 09:51:16 -07001// Copyright 2021, The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16 // See: http://go/android-license-faq
17 // A large-scale-change added 'default_applicable_licenses' to import
18 // all of the 'license_kinds' from "system_security_license"
19 // to get the below license kinds:
20 // SPDX-license-identifier-Apache-2.0
21 default_applicable_licenses: ["system_security_license"],
22}
23
24rust_library {
25 name: "libdiced_utils",
26 crate_name: "diced_utils",
27 srcs: ["src/utils.rs"],
Janis Danisevskisaaba4af2021-11-18 14:25:07 -080028 vendor_available: true,
Janis Danisevskisc51dff82021-10-20 09:51:16 -070029
30 rustlibs: [
Janis Danisevskisc51dff82021-10-20 09:51:16 -070031 "libanyhow",
Janis Danisevskisc51dff82021-10-20 09:51:16 -070032 ],
33}
34
35rust_test {
36 name: "diced_utils_test",
37 crate_name: "diced_utils_test",
38 srcs: ["src/utils.rs"],
39 test_suites: ["general-tests"],
40 auto_gen_config: true,
41 rustlibs: [
Janis Danisevskisc51dff82021-10-20 09:51:16 -070042 "libanyhow",
Janis Danisevskisc51dff82021-10-20 09:51:16 -070043 ],
44}
45
46rust_library {
47 name: "libdiced_sample_inputs",
48 crate_name: "diced_sample_inputs",
49 srcs: ["src/sample_inputs.rs"],
Janis Danisevskisaaba4af2021-11-18 14:25:07 -080050 vendor_available: true,
Janis Danisevskisc51dff82021-10-20 09:51:16 -070051
52 rustlibs: [
Janis Danisevskisc51dff82021-10-20 09:51:16 -070053 "libanyhow",
Alice Wang4d3059a2023-02-15 10:24:33 +000054 "libdiced_open_dice",
Janis Danisevskisc51dff82021-10-20 09:51:16 -070055 "libdiced_utils",
Janis Danisevskisc51dff82021-10-20 09:51:16 -070056 ],
57}
58
59rust_test {
60 name: "diced_sample_inputs_test",
61 crate_name: "diced_sample_inputs_test",
62 srcs: ["src/sample_inputs.rs"],
63 test_suites: ["general-tests"],
64 auto_gen_config: true,
65 rustlibs: [
Janis Danisevskisc51dff82021-10-20 09:51:16 -070066 "libanyhow",
Alice Wang4d3059a2023-02-15 10:24:33 +000067 "libdiced_open_dice",
Janis Danisevskisc51dff82021-10-20 09:51:16 -070068 "libdiced_utils",
Janis Danisevskisc51dff82021-10-20 09:51:16 -070069 ],
70}