Tri Vo | 5b40e89 | 2020-11-01 13:01:29 -0800 | [diff] [blame] | 1 | // 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 Badour | 187b7d1 | 2021-02-12 17:48:16 -0800 | [diff] [blame^] | 15 | package { |
| 16 | // See: http://go/android-license-faq |
| 17 | // A large-scale-change added 'default_applicable_licenses' to import |
| 18 | // all of the 'license_kinds' from "system_core_license" |
| 19 | // to get the below license kinds: |
| 20 | // SPDX-license-identifier-Apache-2.0 |
| 21 | default_applicable_licenses: ["system_core_license"], |
| 22 | } |
| 23 | |
Tri Vo | 5b40e89 | 2020-11-01 13:01:29 -0800 | [diff] [blame] | 24 | cc_library { |
| 25 | name: "libtrusty_coverage", |
Stephen Crane | c602562 | 2020-12-17 12:52:04 -0800 | [diff] [blame] | 26 | vendor_available: true, |
Tri Vo | 5b40e89 | 2020-11-01 13:01:29 -0800 | [diff] [blame] | 27 | srcs: [ |
| 28 | "coverage.cpp", |
| 29 | ], |
| 30 | export_include_dirs: [ |
| 31 | "include", |
| 32 | ], |
| 33 | static_libs: [ |
Stephen Crane | c602562 | 2020-12-17 12:52:04 -0800 | [diff] [blame] | 34 | "libtrusty", |
Tri Vo | 5b40e89 | 2020-11-01 13:01:29 -0800 | [diff] [blame] | 35 | ], |
Stephen Crane | c602562 | 2020-12-17 12:52:04 -0800 | [diff] [blame] | 36 | |
Tri Vo | 5b40e89 | 2020-11-01 13:01:29 -0800 | [diff] [blame] | 37 | shared_libs: [ |
| 38 | "libbase", |
| 39 | "liblog", |
Stephen Crane | 0d67131 | 2021-01-13 14:05:41 -0800 | [diff] [blame] | 40 | "libdmabufheap", |
Tri Vo | 5b40e89 | 2020-11-01 13:01:29 -0800 | [diff] [blame] | 41 | ], |
| 42 | } |
| 43 | |
| 44 | cc_test { |
| 45 | name: "libtrusty_coverage_test", |
| 46 | srcs: [ |
| 47 | "coverage_test.cpp", |
| 48 | ], |
| 49 | static_libs: [ |
| 50 | "libtrusty_coverage", |
Stephen Crane | c602562 | 2020-12-17 12:52:04 -0800 | [diff] [blame] | 51 | "libtrusty", |
Tri Vo | 5b40e89 | 2020-11-01 13:01:29 -0800 | [diff] [blame] | 52 | ], |
| 53 | shared_libs: [ |
| 54 | "libbase", |
| 55 | "liblog", |
Stephen Crane | 0d67131 | 2021-01-13 14:05:41 -0800 | [diff] [blame] | 56 | "libdmabufheap", |
Tri Vo | 5b40e89 | 2020-11-01 13:01:29 -0800 | [diff] [blame] | 57 | ], |
Stephen Crane | e962930 | 2020-11-16 18:00:53 -0800 | [diff] [blame] | 58 | require_root: true, |
Tri Vo | 5b40e89 | 2020-11-01 13:01:29 -0800 | [diff] [blame] | 59 | } |