blob: e6bad473cd70ba0e45944728834a8e88c5e119f6 [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",
29 "libbpf_bcc",
30 "libbpf_android",
31 "libcutils",
32 "liblog",
33 "libutils",
34 ],
35 export_include_dirs: [
36 "include",
37 ],
38 export_header_lib_headers: [
39 "gpu_work_structs",
40 ],
41 export_shared_lib_headers: [
42 "libbase",
43 "libbpf_android",
44 ],
45 cppflags: [
46 "-Wall",
47 "-Werror",
48 "-Wformat",
49 "-Wthread-safety",
50 "-Wunused",
51 "-Wunreachable-code",
52 ],
53 required: [
54 "bpfloader",
55 "gpu_work.o",
56 ],
57}