1// Copyright (C) 2015 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 15// libgatekeeper contains just the code necessary to communicate with a 16// GoogleGateKeeper implementation, e.g. one running in TrustZone. 17package { 18 default_applicable_licenses: ["Android-Apache-2.0"], 19} 20 21cc_library_shared { 22 name: "libgatekeeper", 23 vendor_available: true, 24 host_supported: true, 25 vndk: { 26 enabled: true, 27 }, 28 srcs: [ 29 "gatekeeper_messages.cpp", 30 "gatekeeper.cpp", 31 ], 32 cflags: [ 33 "-Wall", 34 "-Werror", 35 "-g", 36 "-fno-sanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp", 37 ], 38 header_libs: [ 39 "libhardware_headers", 40 ], 41 target: { 42 windows: { 43 enabled: true, 44 host_ldlibs: [ 45 "-lws2_32", 46 ], 47 }, 48 }, 49 export_include_dirs: ["include"], 50 51} 52 53// libgatekeeper_static is an empty static library that exports 54// all of the files in gatekeeper as includes. 55cc_library_static { 56 name: "libgatekeeper_static", 57 export_include_dirs: [ 58 ".", 59 "include", 60 ], 61} 62