• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//
2// Copyright (C) 2020 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
20cc_library {
21    name: "libcuttlefish_security",
22    defaults: ["hidl_defaults", "cuttlefish_host"],
23    srcs: [
24        "confui_sign.cpp",
25        "gatekeeper_channel.cpp",
26        "keymaster_channel.cpp",
27    ],
28    header_libs: [
29        "libhardware_headers",
30    ],
31    shared_libs: [
32        "libbase",
33        "libcuttlefish_fs",
34        "libgatekeeper",
35        "libkeymaster_messages",
36        "liblog",
37    ],
38}
39
40cc_test {
41    name: "libcuttlefish_security_tests",
42    srcs: [
43        "keymaster_channel_test.cpp",
44    ],
45    shared_libs: [
46        "libbase",
47        "libcuttlefish_fs",
48        "libcuttlefish_security",
49        "libgatekeeper",
50        "libkeymaster_messages",
51        "liblog",
52    ],
53    static_libs: [
54        "libgmock",
55        "libgtest",
56    ],
57    defaults: ["cuttlefish_buildhost_only"],
58    test_suites: ["general-tests"],
59    test_options: {
60        unit_test: true,
61    },
62}
63