blob: fb30604fac2022014404a0c6e1ca76205a953fa8 [file] [log] [blame]
Tri Vo5b40e892020-11-01 13:01:29 -08001// Copyright (C) 2020 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
Bob Badourd69ad692021-02-16 19:02:14 -080015package {
16 default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
Tri Vo5b40e892020-11-01 13:01:29 -080019cc_library {
20 name: "libtrusty_coverage",
Stephen Cranec6025622020-12-17 12:52:04 -080021 vendor_available: true,
Tri Vo5b40e892020-11-01 13:01:29 -080022 srcs: [
23 "coverage.cpp",
24 ],
25 export_include_dirs: [
26 "include",
27 ],
28 static_libs: [
Stephen Cranec6025622020-12-17 12:52:04 -080029 "libtrusty",
Tri Vo5b40e892020-11-01 13:01:29 -080030 ],
Stephen Cranec6025622020-12-17 12:52:04 -080031
Tri Vo5b40e892020-11-01 13:01:29 -080032 shared_libs: [
33 "libbase",
34 "liblog",
Stephen Crane0d671312021-01-13 14:05:41 -080035 "libdmabufheap",
Tri Vo5b40e892020-11-01 13:01:29 -080036 ],
37}
38
39cc_test {
40 name: "libtrusty_coverage_test",
41 srcs: [
42 "coverage_test.cpp",
43 ],
44 static_libs: [
45 "libtrusty_coverage",
Stephen Cranec6025622020-12-17 12:52:04 -080046 "libtrusty",
Tri Vo5b40e892020-11-01 13:01:29 -080047 ],
48 shared_libs: [
49 "libbase",
50 "liblog",
Stephen Crane0d671312021-01-13 14:05:41 -080051 "libdmabufheap",
Tri Vo5b40e892020-11-01 13:01:29 -080052 ],
Stephen Cranee9629302020-11-16 18:00:53 -080053 require_root: true,
Tri Vo5b40e892020-11-01 13:01:29 -080054}