xref: /aosp_15_r20/external/minigbm/cros_gralloc/mapper_stablec/Android.bp (revision d95af8df99a05bcb8679a54dc3ab8e5cd312b38e)
1*d95af8dfSAndroid Build Coastguard Worker//
2*d95af8dfSAndroid Build Coastguard Worker// Copyright (C) 2022 The Android Open Source Project
3*d95af8dfSAndroid Build Coastguard Worker//
4*d95af8dfSAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
5*d95af8dfSAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
6*d95af8dfSAndroid Build Coastguard Worker// You may obtain a copy of the License at
7*d95af8dfSAndroid Build Coastguard Worker//
8*d95af8dfSAndroid Build Coastguard Worker//      http://www.apache.org/licenses/LICENSE-2.0
9*d95af8dfSAndroid Build Coastguard Worker//
10*d95af8dfSAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
11*d95af8dfSAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
12*d95af8dfSAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13*d95af8dfSAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
14*d95af8dfSAndroid Build Coastguard Worker// limitations under the License.
15*d95af8dfSAndroid Build Coastguard Worker
16*d95af8dfSAndroid Build Coastguard Workerpackage {
17*d95af8dfSAndroid Build Coastguard Worker    // See: http://go/android-license-faq
18*d95af8dfSAndroid Build Coastguard Worker    // A large-scale-change added 'default_applicable_licenses' to import
19*d95af8dfSAndroid Build Coastguard Worker    // all of the 'license_kinds' from "external_minigbm_license"
20*d95af8dfSAndroid Build Coastguard Worker    // to get the below license kinds:
21*d95af8dfSAndroid Build Coastguard Worker    //   SPDX-license-identifier-Apache-2.0
22*d95af8dfSAndroid Build Coastguard Worker    //   SPDX-license-identifier-BSD
23*d95af8dfSAndroid Build Coastguard Worker    default_applicable_licenses: ["external_minigbm_license"],
24*d95af8dfSAndroid Build Coastguard Worker}
25*d95af8dfSAndroid Build Coastguard Worker
26*d95af8dfSAndroid Build Coastguard Workercc_library_shared {
27*d95af8dfSAndroid Build Coastguard Worker    name: "mapper.minigbm",
28*d95af8dfSAndroid Build Coastguard Worker    defaults: ["minigbm_gralloc4_common_defaults"],
29*d95af8dfSAndroid Build Coastguard Worker    vintf_fragments: ["mapper.minigbm.xml"],
30*d95af8dfSAndroid Build Coastguard Worker    shared_libs: [
31*d95af8dfSAndroid Build Coastguard Worker        "android.hardware.graphics.allocator-V2-ndk",
32*d95af8dfSAndroid Build Coastguard Worker        "libminigbm_gralloc",
33*d95af8dfSAndroid Build Coastguard Worker    ],
34*d95af8dfSAndroid Build Coastguard Worker    header_libs: [
35*d95af8dfSAndroid Build Coastguard Worker        "libbase_headers",
36*d95af8dfSAndroid Build Coastguard Worker        "libimapper_stablec",
37*d95af8dfSAndroid Build Coastguard Worker        "libimapper_providerutils",
38*d95af8dfSAndroid Build Coastguard Worker    ],
39*d95af8dfSAndroid Build Coastguard Worker    srcs: [
40*d95af8dfSAndroid Build Coastguard Worker        ":minigbm_gralloc4_mapper_files",
41*d95af8dfSAndroid Build Coastguard Worker        "Mapper.cpp",
42*d95af8dfSAndroid Build Coastguard Worker    ],
43*d95af8dfSAndroid Build Coastguard Worker    cpp_std: "c++20",
44*d95af8dfSAndroid Build Coastguard Worker}
45*d95af8dfSAndroid Build Coastguard Worker
46*d95af8dfSAndroid Build Coastguard Workerprebuilt_etc {
47*d95af8dfSAndroid Build Coastguard Worker    name: "mapper.minigbm.xml",
48*d95af8dfSAndroid Build Coastguard Worker    src: "mapper.minigbm.xml",
49*d95af8dfSAndroid Build Coastguard Worker    sub_dir: "vintf",
50*d95af8dfSAndroid Build Coastguard Worker    installable: false,
51*d95af8dfSAndroid Build Coastguard Worker}
52