• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2022 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16package {
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20rust_library_host {
21    name: "libkmr_cf",
22    srcs: [ "lib.rs" ],
23    crate_name: "kmr_cf",
24    rustlibs: [
25        "libhex",
26        "libkmr_common",
27        "libkmr_crypto_boring",
28        "libkmr_ta",
29        "libkmr_wire",
30        "liblibc",
31        "liblog_rust",
32        "libsecure_env_tpm",
33    ],
34    defaults: ["cuttlefish_buildhost_only"],
35}
36
37rust_ffi_host {
38    name: "libkmr_cf_ffi",
39    compile_multilib: "64",
40    srcs: [ "ffi.rs" ],
41    crate_name: "kmr_cf_ffi",
42    rustlibs: [
43        "libkmr_cf",
44        "libkmr_wire",
45        "liblibc",
46        "liblog_rust",
47    ],
48    defaults: ["cuttlefish_buildhost_only"],
49}
50
51rust_test_host {
52    name: "libkmr_cf_test",
53    srcs: ["lib.rs"],
54    rustlibs: [
55        "libhex",
56        "libkmr_common",
57        "libkmr_crypto_boring",
58        "libkmr_ta",
59        "libkmr_tests",
60        "libkmr_wire",
61        "liblibc",
62        "liblog_rust",
63        "libsecure_env_tpm",
64    ],
65    defaults: ["cuttlefish_buildhost_only"],
66    test_suites: ["general-tests"],
67}