xref: /aosp_15_r20/external/minigbm/cros_gralloc/aidl/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_binary {
27*d95af8dfSAndroid Build Coastguard Worker    name: "android.hardware.graphics.allocator-service.minigbm",
28*d95af8dfSAndroid Build Coastguard Worker    defaults: ["minigbm_cros_gralloc_defaults"],
29*d95af8dfSAndroid Build Coastguard Worker    relative_install_path: "hw",
30*d95af8dfSAndroid Build Coastguard Worker    init_rc: ["allocator.rc"],
31*d95af8dfSAndroid Build Coastguard Worker    vintf_fragments: ["allocator.xml"],
32*d95af8dfSAndroid Build Coastguard Worker    vendor: true,
33*d95af8dfSAndroid Build Coastguard Worker    shared_libs: [
34*d95af8dfSAndroid Build Coastguard Worker        "android.hardware.graphics.allocator-V2-ndk",
35*d95af8dfSAndroid Build Coastguard Worker        "[email protected]",
36*d95af8dfSAndroid Build Coastguard Worker        "libbase",
37*d95af8dfSAndroid Build Coastguard Worker        "libbinder_ndk",
38*d95af8dfSAndroid Build Coastguard Worker        "libgralloctypes",
39*d95af8dfSAndroid Build Coastguard Worker        "libhidlbase",
40*d95af8dfSAndroid Build Coastguard Worker        "liblog",
41*d95af8dfSAndroid Build Coastguard Worker        "libminigbm_gralloc",
42*d95af8dfSAndroid Build Coastguard Worker        "libminigbm_gralloc4_utils",
43*d95af8dfSAndroid Build Coastguard Worker    ],
44*d95af8dfSAndroid Build Coastguard Worker    static_libs: [
45*d95af8dfSAndroid Build Coastguard Worker        "libaidlcommonsupport",
46*d95af8dfSAndroid Build Coastguard Worker    ],
47*d95af8dfSAndroid Build Coastguard Worker    srcs: [
48*d95af8dfSAndroid Build Coastguard Worker        "Allocator.cpp",
49*d95af8dfSAndroid Build Coastguard Worker        "Main.cpp",
50*d95af8dfSAndroid Build Coastguard Worker    ],
51*d95af8dfSAndroid Build Coastguard Worker}
52*d95af8dfSAndroid Build Coastguard Worker
53*d95af8dfSAndroid Build Coastguard Workerfilegroup {
54*d95af8dfSAndroid Build Coastguard Worker    name: "allocator.minigbm.rc",
55*d95af8dfSAndroid Build Coastguard Worker    srcs: ["allocator.rc"]
56*d95af8dfSAndroid Build Coastguard Worker}
57*d95af8dfSAndroid Build Coastguard Worker
58*d95af8dfSAndroid Build Coastguard Workerprebuilt_etc {
59*d95af8dfSAndroid Build Coastguard Worker    name: "allocator.minigbm.xml",
60*d95af8dfSAndroid Build Coastguard Worker    src: "allocator.xml",
61*d95af8dfSAndroid Build Coastguard Worker    sub_dir: "vintf",
62*d95af8dfSAndroid Build Coastguard Worker    installable: false,
63*d95af8dfSAndroid Build Coastguard Worker}
64