xref: /aosp_15_r20/hardware/libhardware/modules/gralloc/Android.bp (revision e01b6f769022e40d0923dee176e8dc7cd1d52984)
1// Copyright (C) 2008 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
15// HAL module implementation stored in
16// hw/<OVERLAY_HARDWARE_MODULE_ID>.<ro.product.board>.so
17package {
18    // See: http://go/android-license-faq
19    default_applicable_licenses: [
20        "hardware_libhardware_license",
21    ],
22}
23
24cc_library_shared {
25    name: "gralloc.default",
26    relative_install_path: "hw",
27    proprietary: true,
28    shared_libs: [
29        "liblog",
30        "libcutils",
31    ],
32    srcs: [
33        "gralloc.cpp",
34        "framebuffer.cpp",
35        "mapper.cpp",
36    ],
37    header_libs: ["libhardware_headers"],
38    cflags: [
39        "-DLOG_TAG=\"gralloc\"",
40        "-Wno-missing-field-initializers",
41    ] + select(soong_config_variable("gralloc", "target_use_pan_display"), {
42        true: ["-DUSE_PAN_DISPLAY=1"],
43        default: [],
44    }),
45}
46