blob: 49a06c4b3bad4ad47429ec9330e02a848438e119 [file] [log] [blame]
Steven Moreland2f6586a2017-05-05 17:12:21 -07001// 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.
17cc_library_shared {
18 name: "libgatekeeper",
Jiyong Park002c8662017-08-09 21:10:16 +090019 vendor_available: true,
20 vndk: {
21 enabled: true,
22 },
Steven Moreland2f6586a2017-05-05 17:12:21 -070023 srcs: [
24 "gatekeeper_messages.cpp",
25 "gatekeeper.cpp",
26 ],
27 cflags: [
28 "-Wall",
29 "-Werror",
30 "-g",
31 ],
Jiyong Park002c8662017-08-09 21:10:16 +090032 header_libs: [
33 "libhardware_headers",
34 ],
Steven Moreland2f6586a2017-05-05 17:12:21 -070035
36 export_include_dirs: ["include"],
37
38 // TODO(krasin): reenable coverage flags, when the new Clang toolchain is released.
39 // Currently, if enabled, these flags will cause an internal error in Clang.
40 // Bug: 25119481
41 clang_cflags: ["-fno-sanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp"],
42}
43
44// libgatekeeper_static is an empty static library that exports
45// all of the files in gatekeeper as includes.
46cc_library_static {
47 name: "libgatekeeper_static",
48 export_include_dirs: [
49 ".",
50 "include",
51 ],
52}