xref: /aosp_15_r20/frameworks/native/services/gpuservice/gpuwork/Android.bp (revision 38e8c45f13ce32b0dcecb25141ffecaf386fa17f)
1// 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        "bpf_headers",
26        "gpu_work_structs",
27    ],
28    shared_libs: [
29        "libbase",
30        "libbinder",
31        "libbpf_bcc",
32        "libcutils",
33        "liblog",
34        "libstatslog",
35        "libstatspull",
36        "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        "libstatspull",
47    ],
48    cppflags: [
49        "-Wall",
50        "-Werror",
51        "-Wformat",
52        "-Wthread-safety",
53        "-Wunused",
54        "-Wunreachable-code",
55    ],
56    required: [
57        "bpfloader",
58        "gpuWork.o",
59    ],
60}
61