| Yiwei Zhang | fdd7e78 | 2020-01-31 15:59:34 -0800 | [diff] [blame] | 1 | // Copyright 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 | 3c53823 | 2021-02-12 21:26:48 -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 "frameworks_native_license" |
| 19 | // to get the below license kinds: |
| 20 | // SPDX-license-identifier-Apache-2.0 |
| 21 | default_applicable_licenses: ["frameworks_native_license"], |
| 22 | } |
| 23 | |
| Yiwei Zhang | fdd7e78 | 2020-01-31 15:59:34 -0800 | [diff] [blame] | 24 | cc_test { |
| 25 | name: "gpuservice_unittest", |
| 26 | test_suites: ["device-tests"], |
| 27 | sanitize: { |
| 28 | address: true, |
| 29 | }, |
| 30 | srcs: [ |
| Yiwei Zhang | 9feb4ae | 2020-04-30 10:48:35 -0700 | [diff] [blame] | 31 | "GpuMemTest.cpp", |
| Adithya Srinivasan | 134332b | 2020-12-12 03:31:50 +0000 | [diff] [blame] | 32 | "GpuMemTracerTest.cpp", |
| Yiwei Zhang | fdd7e78 | 2020-01-31 15:59:34 -0800 | [diff] [blame] | 33 | "GpuStatsTest.cpp", |
| 34 | ], |
| Maciej Żenczykowski | b0506c4 | 2022-02-08 12:46:06 -0800 | [diff] [blame] | 35 | header_libs: ["bpf_headers"], |
| Yiwei Zhang | fdd7e78 | 2020-01-31 15:59:34 -0800 | [diff] [blame] | 36 | shared_libs: [ |
| Yiwei Zhang | 9feb4ae | 2020-04-30 10:48:35 -0700 | [diff] [blame] | 37 | "libbase", |
| Vova Sharaienko | 0906b2c | 2022-05-23 21:05:08 +0000 | [diff] [blame] | 38 | "libbinder", |
| Connor O'Brien | 92822a2 | 2021-11-22 18:02:36 -0800 | [diff] [blame] | 39 | "libbpf_bcc", |
| Yiwei Zhang | fdd7e78 | 2020-01-31 15:59:34 -0800 | [diff] [blame] | 40 | "libcutils", |
| 41 | "libgfxstats", |
| Yiwei Zhang | 9feb4ae | 2020-04-30 10:48:35 -0700 | [diff] [blame] | 42 | "libgpumem", |
| Adithya Srinivasan | 134332b | 2020-12-12 03:31:50 +0000 | [diff] [blame] | 43 | "libgpumemtracer", |
| Yiwei Zhang | fdd7e78 | 2020-01-31 15:59:34 -0800 | [diff] [blame] | 44 | "libgraphicsenv", |
| 45 | "liblog", |
| Adithya Srinivasan | 134332b | 2020-12-12 03:31:50 +0000 | [diff] [blame] | 46 | "libprotobuf-cpp-lite", |
| 47 | "libprotoutil", |
| Yiwei Zhang | b59a127 | 2020-02-04 14:58:01 -0800 | [diff] [blame] | 48 | "libstatslog", |
| 49 | "libstatspull", |
| Yiwei Zhang | fdd7e78 | 2020-01-31 15:59:34 -0800 | [diff] [blame] | 50 | "libutils", |
| 51 | ], |
| 52 | static_libs: [ |
| 53 | "libgmock", |
| Adithya Srinivasan | 4558346 | 2020-12-21 23:36:42 +0000 | [diff] [blame] | 54 | "libperfetto_client_experimental", |
| Adithya Srinivasan | 134332b | 2020-12-12 03:31:50 +0000 | [diff] [blame] | 55 | "perfetto_trace_protos", |
| Yiwei Zhang | fdd7e78 | 2020-01-31 15:59:34 -0800 | [diff] [blame] | 56 | ], |
| Yiwei Zhang | 7f3f0b3 | 2020-10-23 14:52:44 -0700 | [diff] [blame] | 57 | require_root: true, |
| Yiwei Zhang | fdd7e78 | 2020-01-31 15:59:34 -0800 | [diff] [blame] | 58 | } |