blob: a9a59bc023d12d040b1e87b83c763496693b2814 [file] [log] [blame]
Paul Thomsonf44c6b82021-12-01 13:53:58 +00001// Copyright 2022 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
15package {
16 default_applicable_licenses: ["frameworks_native_license"],
17}
18
19cc_library_shared {
20 name: "libgpuwork",
21 srcs: [
22 "GpuWork.cpp",
23 ],
24 header_libs: [
Maciej Żenczykowski47106302022-02-10 15:59:07 -080025 "bpf_headers",
Paul Thomsonf44c6b82021-12-01 13:53:58 +000026 "gpu_work_structs",
27 ],
28 shared_libs: [
29 "libbase",
Paul Thomson17298bc2022-01-06 17:58:08 +000030 "libbinder",
Paul Thomsonf44c6b82021-12-01 13:53:58 +000031 "libbpf_bcc",
Paul Thomsonf44c6b82021-12-01 13:53:58 +000032 "libcutils",
33 "liblog",
Paul Thomson17298bc2022-01-06 17:58:08 +000034 "libstatslog",
35 "libstatspull",
Paul Thomsonf44c6b82021-12-01 13:53:58 +000036 "libutils",
37 ],
38 export_include_dirs: [
39 "include",
40 ],
41 export_header_lib_headers: [
42 "gpu_work_structs",
43 ],
44 export_shared_lib_headers: [
45 "libbase",
Paul Thomson17298bc2022-01-06 17:58:08 +000046 "libstatspull",
Paul Thomsonf44c6b82021-12-01 13:53:58 +000047 ],
48 cppflags: [
49 "-Wall",
50 "-Werror",
51 "-Wformat",
52 "-Wthread-safety",
53 "-Wunused",
54 "-Wunreachable-code",
55 ],
56 required: [
57 "bpfloader",
58 "gpu_work.o",
59 ],
60}