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 "gatekeeper_channel.cpp", 25 "keymaster_channel.cpp", 26 ], 27 header_libs: [ 28 "libhardware_headers", 29 ], 30 shared_libs: [ 31 "libbase", 32 "libcuttlefish_fs", 33 "libgatekeeper", 34 "libkeymaster_messages", 35 "liblog", 36 ], 37} 38 39cc_test { 40 name: "libcuttlefish_security_tests", 41 srcs: [ 42 "keymaster_channel_test.cpp", 43 ], 44 shared_libs: [ 45 "libbase", 46 "libcuttlefish_fs", 47 "libcuttlefish_security", 48 "libgatekeeper", 49 "libkeymaster_messages", 50 "liblog", 51 ], 52 static_libs: [ 53 "libgmock", 54 "libgtest", 55 ], 56 defaults: ["cuttlefish_buildhost_only"], 57 test_suites: ["general-tests"], 58 test_options: { 59 unit_test: true, 60 }, 61} 62