blob: 51642f94728e68cc7fe1648118a81cd2bba55550 [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 Badour3c538232021-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"],
Yiwei Zhangfdd7e782020-01-31 15:59:34 -080027 srcs: [
Yiwei Zhang9feb4ae2020-04-30 10:48:35 -070028 "GpuMemTest.cpp",
Adithya Srinivasan134332b2020-12-12 03:31:50 +000029 "GpuMemTracerTest.cpp",
Yiwei Zhangfdd7e782020-01-31 15:59:34 -080030 "GpuStatsTest.cpp",
31 ],
Maciej Żenczykowskib0506c42022-02-08 12:46:06 -080032 header_libs: ["bpf_headers"],
Yiwei Zhangfdd7e782020-01-31 15:59:34 -080033 shared_libs: [
Yiwei Zhang9feb4ae2020-04-30 10:48:35 -070034 "libbase",
Vova Sharaienko0906b2c2022-05-23 21:05:08 +000035 "libbinder",
Connor O'Brien92822a22021-11-22 18:02:36 -080036 "libbpf_bcc",
Yiwei Zhangfdd7e782020-01-31 15:59:34 -080037 "libcutils",
38 "libgfxstats",
Yiwei Zhang9feb4ae2020-04-30 10:48:35 -070039 "libgpumem",
Adithya Srinivasan134332b2020-12-12 03:31:50 +000040 "libgpumemtracer",
Yiwei Zhangfdd7e782020-01-31 15:59:34 -080041 "libgraphicsenv",
42 "liblog",
Adithya Srinivasan134332b2020-12-12 03:31:50 +000043 "libprotobuf-cpp-lite",
44 "libprotoutil",
Yiwei Zhangb59a1272020-02-04 14:58:01 -080045 "libstatslog",
46 "libstatspull",
Yiwei Zhangfdd7e782020-01-31 15:59:34 -080047 "libutils",
48 ],
49 static_libs: [
50 "libgmock",
Adithya Srinivasan45583462020-12-21 23:36:42 +000051 "libperfetto_client_experimental",
Adithya Srinivasan134332b2020-12-12 03:31:50 +000052 "perfetto_trace_protos",
Yiwei Zhangfdd7e782020-01-31 15:59:34 -080053 ],
Yiwei Zhang7f3f0b32020-10-23 14:52:44 -070054 require_root: true,
Yiwei Zhangfdd7e782020-01-31 15:59:34 -080055}