blob: 89b31a6884a24588cf820ef343a837588318eae3 [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: [
25 "gpu_work_structs",
26 ],
27 shared_libs: [
28 "libbase",
Paul Thomson17298bc2022-01-06 17:58:08 +000029 "libbinder",
Paul Thomsonf44c6b82021-12-01 13:53:58 +000030 "libbpf_bcc",
31 "libbpf_android",
32 "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",
46 "libbpf_android",
Paul Thomson17298bc2022-01-06 17:58:08 +000047 "libstatspull",
Paul Thomsonf44c6b82021-12-01 13:53:58 +000048 ],
49 cppflags: [
50 "-Wall",
51 "-Werror",
52 "-Wformat",
53 "-Wthread-safety",
54 "-Wunused",
55 "-Wunreachable-code",
56 ],
57 required: [
58 "bpfloader",
59 "gpu_work.o",
60 ],
61}