blob: 1455d2eddb3805e7069424bc1b0024bd1dc86460 [file] [log] [blame]
Yiwei Zhangfdd7e782020-01-31 15:59:34 -08001// 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 Badour2e671852021-02-12 21:26:48 -080015package {
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 Zhangfdd7e782020-01-31 15:59:34 -080024cc_test {
25 name: "gpuservice_unittest",
26 test_suites: ["device-tests"],
27 sanitize: {
28 address: true,
29 },
30 srcs: [
Yiwei Zhang9feb4ae2020-04-30 10:48:35 -070031 "GpuMemTest.cpp",
Adithya Srinivasanf031e972020-12-12 03:31:50 +000032 "GpuMemTracerTest.cpp",
Yiwei Zhangfdd7e782020-01-31 15:59:34 -080033 "GpuStatsTest.cpp",
sergiuferentz5adee122023-06-26 18:01:47 +000034 "GpuServiceTest.cpp",
Yiwei Zhangfdd7e782020-01-31 15:59:34 -080035 ],
36 shared_libs: [
Yiwei Zhang9feb4ae2020-04-30 10:48:35 -070037 "libbase",
38 "libbpf",
39 "libbpf_android",
Yiwei Zhangfdd7e782020-01-31 15:59:34 -080040 "libcutils",
41 "libgfxstats",
Yiwei Zhang9feb4ae2020-04-30 10:48:35 -070042 "libgpumem",
Adithya Srinivasanf031e972020-12-12 03:31:50 +000043 "libgpumemtracer",
Yiwei Zhangfdd7e782020-01-31 15:59:34 -080044 "libgraphicsenv",
45 "liblog",
Adithya Srinivasanf031e972020-12-12 03:31:50 +000046 "libprotobuf-cpp-lite",
47 "libprotoutil",
Yiwei Zhangb59a1272020-02-04 14:58:01 -080048 "libstatslog",
49 "libstatspull",
Yiwei Zhangfdd7e782020-01-31 15:59:34 -080050 "libutils",
sergiuferentz5adee122023-06-26 18:01:47 +000051 "libgpuservice",
Yiwei Zhangfdd7e782020-01-31 15:59:34 -080052 ],
53 static_libs: [
54 "libgmock",
Adithya Srinivasanaa516512020-12-21 23:36:42 +000055 "libperfetto_client_experimental",
Adithya Srinivasanf031e972020-12-12 03:31:50 +000056 "perfetto_trace_protos",
Yiwei Zhangfdd7e782020-01-31 15:59:34 -080057 ],
Yiwei Zhang7f3f0b32020-10-23 14:52:44 -070058 require_root: true,
Yiwei Zhangfdd7e782020-01-31 15:59:34 -080059}