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 | 2e67185 | 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 | f031e97 | 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", |
sergiuferentz | 5adee12 | 2023-06-26 18:01:47 +0000 | [diff] [blame] | 34 | "GpuServiceTest.cpp", |
Yiwei Zhang | fdd7e78 | 2020-01-31 15:59:34 -0800 | [diff] [blame] | 35 | ], |
| 36 | shared_libs: [ |
Yiwei Zhang | 9feb4ae | 2020-04-30 10:48:35 -0700 | [diff] [blame] | 37 | "libbase", |
| 38 | "libbpf", |
| 39 | "libbpf_android", |
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 | f031e97 | 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 | f031e97 | 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", |
sergiuferentz | 5adee12 | 2023-06-26 18:01:47 +0000 | [diff] [blame] | 51 | "libgpuservice", |
Yiwei Zhang | fdd7e78 | 2020-01-31 15:59:34 -0800 | [diff] [blame] | 52 | ], |
| 53 | static_libs: [ |
| 54 | "libgmock", |
Adithya Srinivasan | aa51651 | 2020-12-21 23:36:42 +0000 | [diff] [blame] | 55 | "libperfetto_client_experimental", |
Adithya Srinivasan | f031e97 | 2020-12-12 03:31:50 +0000 | [diff] [blame] | 56 | "perfetto_trace_protos", |
Yiwei Zhang | fdd7e78 | 2020-01-31 15:59:34 -0800 | [diff] [blame] | 57 | ], |
Yiwei Zhang | 7f3f0b3 | 2020-10-23 14:52:44 -0700 | [diff] [blame] | 58 | require_root: true, |
Yiwei Zhang | fdd7e78 | 2020-01-31 15:59:34 -0800 | [diff] [blame] | 59 | } |