xref: /aosp_15_r20/frameworks/native/services/gpuservice/gpustats/Android.bp (revision 38e8c45f13ce32b0dcecb25141ffecaf386fa17f)
1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "frameworks_native_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["frameworks_native_license"],
8}
9
10cc_defaults {
11    name: "libgfxstats_deps",
12    shared_libs: [
13        "libcutils",
14        "libgraphicsenv",
15        "liblog",
16        "libprotoutil",
17        "libstatslog",
18        "libstatspull",
19        "libstatssocket",
20        "libutils",
21    ],
22}
23
24cc_library_static {
25    name: "libgfxstats",
26    defaults: [
27        "libgfxstats_deps",
28    ],
29    srcs: [
30        "GpuStats.cpp",
31    ],
32    export_include_dirs: ["include"],
33    export_shared_lib_headers: [
34        "libstatspull",
35        "libstatssocket",
36    ],
37    cppflags: [
38        "-Wall",
39        "-Werror",
40        "-Wformat",
41        "-Wthread-safety",
42        "-Wunused",
43        "-Wunreachable-code",
44    ],
45}
46