1*d95af8dfSAndroid Build Coastguard Worker// 2*d95af8dfSAndroid Build Coastguard Worker// Copyright (C) 2020 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 Workerfilegroup { 27*d95af8dfSAndroid Build Coastguard Worker name: "minigbm_gralloc4_allocator_files", 28*d95af8dfSAndroid Build Coastguard Worker srcs: [ 29*d95af8dfSAndroid Build Coastguard Worker "CrosGralloc4Allocator.cc", 30*d95af8dfSAndroid Build Coastguard Worker "CrosGralloc4AllocatorService.cc", 31*d95af8dfSAndroid Build Coastguard Worker "CrosGralloc4Utils.cc", 32*d95af8dfSAndroid Build Coastguard Worker ], 33*d95af8dfSAndroid Build Coastguard Worker} 34*d95af8dfSAndroid Build Coastguard Worker 35*d95af8dfSAndroid Build Coastguard Workerfilegroup { 36*d95af8dfSAndroid Build Coastguard Worker name: "minigbm_gralloc4_mapper_files", 37*d95af8dfSAndroid Build Coastguard Worker srcs: [ 38*d95af8dfSAndroid Build Coastguard Worker "CrosGralloc4Mapper.cc", 39*d95af8dfSAndroid Build Coastguard Worker "CrosGralloc4Utils.cc", 40*d95af8dfSAndroid Build Coastguard Worker ], 41*d95af8dfSAndroid Build Coastguard Worker} 42*d95af8dfSAndroid Build Coastguard Worker 43*d95af8dfSAndroid Build Coastguard Workercc_library { 44*d95af8dfSAndroid Build Coastguard Worker name: "libminigbm_gralloc4_utils", 45*d95af8dfSAndroid Build Coastguard Worker defaults: ["minigbm_cros_gralloc_defaults"], 46*d95af8dfSAndroid Build Coastguard Worker vendor: true, 47*d95af8dfSAndroid Build Coastguard Worker srcs: [ 48*d95af8dfSAndroid Build Coastguard Worker "CrosGralloc4Utils.cc", 49*d95af8dfSAndroid Build Coastguard Worker ], 50*d95af8dfSAndroid Build Coastguard Worker shared_libs: [ 51*d95af8dfSAndroid Build Coastguard Worker "[email protected]", 52*d95af8dfSAndroid Build Coastguard Worker "libgralloctypes", 53*d95af8dfSAndroid Build Coastguard Worker "libhidlbase", 54*d95af8dfSAndroid Build Coastguard Worker "libminigbm_gralloc", 55*d95af8dfSAndroid Build Coastguard Worker ], 56*d95af8dfSAndroid Build Coastguard Worker} 57*d95af8dfSAndroid Build Coastguard Worker 58*d95af8dfSAndroid Build Coastguard Workercc_defaults { 59*d95af8dfSAndroid Build Coastguard Worker name: "minigbm_gralloc4_common_defaults", 60*d95af8dfSAndroid Build Coastguard Worker defaults: ["minigbm_cros_gralloc_defaults"], 61*d95af8dfSAndroid Build Coastguard Worker 62*d95af8dfSAndroid Build Coastguard Worker shared_libs: [ 63*d95af8dfSAndroid Build Coastguard Worker "[email protected]", 64*d95af8dfSAndroid Build Coastguard Worker "libgralloctypes", 65*d95af8dfSAndroid Build Coastguard Worker "libhidlbase", 66*d95af8dfSAndroid Build Coastguard Worker "libbase", 67*d95af8dfSAndroid Build Coastguard Worker "libutils", 68*d95af8dfSAndroid Build Coastguard Worker ], 69*d95af8dfSAndroid Build Coastguard Worker 70*d95af8dfSAndroid Build Coastguard Worker cflags: ["-Wno-sign-compare"], 71*d95af8dfSAndroid Build Coastguard Worker relative_install_path: "hw", 72*d95af8dfSAndroid Build Coastguard Worker} 73*d95af8dfSAndroid Build Coastguard Worker 74*d95af8dfSAndroid Build Coastguard Workercc_defaults { 75*d95af8dfSAndroid Build Coastguard Worker name: "minigbm_gralloc4_allocator_defaults", 76*d95af8dfSAndroid Build Coastguard Worker defaults: ["minigbm_gralloc4_common_defaults"], 77*d95af8dfSAndroid Build Coastguard Worker 78*d95af8dfSAndroid Build Coastguard Worker shared_libs: ["[email protected]"], 79*d95af8dfSAndroid Build Coastguard Worker srcs: [":minigbm_gralloc4_allocator_files"], 80*d95af8dfSAndroid Build Coastguard Worker} 81*d95af8dfSAndroid Build Coastguard Worker 82*d95af8dfSAndroid Build Coastguard Workervintf_fragment { 83*d95af8dfSAndroid Build Coastguard Worker name: "[email protected]", 84*d95af8dfSAndroid Build Coastguard Worker src: "[email protected]", 85*d95af8dfSAndroid Build Coastguard Worker vendor: true, 86*d95af8dfSAndroid Build Coastguard Worker} 87*d95af8dfSAndroid Build Coastguard Worker 88*d95af8dfSAndroid Build Coastguard Workercc_binary { 89*d95af8dfSAndroid Build Coastguard Worker name: "[email protected]", 90*d95af8dfSAndroid Build Coastguard Worker defaults: ["minigbm_gralloc4_allocator_defaults"], 91*d95af8dfSAndroid Build Coastguard Worker shared_libs: ["libminigbm_gralloc"], 92*d95af8dfSAndroid Build Coastguard Worker vintf_fragment_modules: ["[email protected]"], 93*d95af8dfSAndroid Build Coastguard Worker init_rc: ["[email protected]"], 94*d95af8dfSAndroid Build Coastguard Worker} 95*d95af8dfSAndroid Build Coastguard Worker 96*d95af8dfSAndroid Build Coastguard Workercc_binary { 97*d95af8dfSAndroid Build Coastguard Worker name: "[email protected]_msm", 98*d95af8dfSAndroid Build Coastguard Worker defaults: ["minigbm_gralloc4_allocator_defaults"], 99*d95af8dfSAndroid Build Coastguard Worker shared_libs: ["libminigbm_gralloc_msm"], 100*d95af8dfSAndroid Build Coastguard Worker vintf_fragment_modules: ["[email protected]"], 101*d95af8dfSAndroid Build Coastguard Worker init_rc: ["[email protected]_msm.rc"], 102*d95af8dfSAndroid Build Coastguard Worker} 103*d95af8dfSAndroid Build Coastguard Worker 104*d95af8dfSAndroid Build Coastguard Workercc_binary { 105*d95af8dfSAndroid Build Coastguard Worker name: "[email protected]_arcvm", 106*d95af8dfSAndroid Build Coastguard Worker defaults: ["minigbm_gralloc4_allocator_defaults"], 107*d95af8dfSAndroid Build Coastguard Worker shared_libs: ["libminigbm_gralloc_arcvm"], 108*d95af8dfSAndroid Build Coastguard Worker vintf_fragment_modules: ["[email protected]"], 109*d95af8dfSAndroid Build Coastguard Worker init_rc: ["[email protected]_arcvm.rc"], 110*d95af8dfSAndroid Build Coastguard Worker} 111*d95af8dfSAndroid Build Coastguard Worker 112*d95af8dfSAndroid Build Coastguard Workercc_binary { 113*d95af8dfSAndroid Build Coastguard Worker name: "[email protected]_intel", 114*d95af8dfSAndroid Build Coastguard Worker defaults: ["minigbm_gralloc4_allocator_defaults"], 115*d95af8dfSAndroid Build Coastguard Worker shared_libs: ["libminigbm_gralloc_intel"], 116*d95af8dfSAndroid Build Coastguard Worker vintf_fragment_modules: ["[email protected]"], 117*d95af8dfSAndroid Build Coastguard Worker init_rc: ["[email protected]_intel.rc"], 118*d95af8dfSAndroid Build Coastguard Worker enabled: false, 119*d95af8dfSAndroid Build Coastguard Worker arch: { 120*d95af8dfSAndroid Build Coastguard Worker x86: { 121*d95af8dfSAndroid Build Coastguard Worker enabled: true, 122*d95af8dfSAndroid Build Coastguard Worker }, 123*d95af8dfSAndroid Build Coastguard Worker x86_64: { 124*d95af8dfSAndroid Build Coastguard Worker enabled: true, 125*d95af8dfSAndroid Build Coastguard Worker }, 126*d95af8dfSAndroid Build Coastguard Worker }, 127*d95af8dfSAndroid Build Coastguard Worker} 128*d95af8dfSAndroid Build Coastguard Worker 129*d95af8dfSAndroid Build Coastguard Workervintf_fragment { 130*d95af8dfSAndroid Build Coastguard Worker name: "[email protected]", 131*d95af8dfSAndroid Build Coastguard Worker src: "[email protected]", 132*d95af8dfSAndroid Build Coastguard Worker vendor: true, 133*d95af8dfSAndroid Build Coastguard Worker} 134*d95af8dfSAndroid Build Coastguard Worker 135*d95af8dfSAndroid Build Coastguard Workercc_library_shared { 136*d95af8dfSAndroid Build Coastguard Worker name: "[email protected]", 137*d95af8dfSAndroid Build Coastguard Worker defaults: ["minigbm_gralloc4_common_defaults"], 138*d95af8dfSAndroid Build Coastguard Worker shared_libs: ["libminigbm_gralloc"], 139*d95af8dfSAndroid Build Coastguard Worker vintf_fragment_modules: ["[email protected]"], 140*d95af8dfSAndroid Build Coastguard Worker srcs: [":minigbm_gralloc4_mapper_files"], 141*d95af8dfSAndroid Build Coastguard Worker} 142*d95af8dfSAndroid Build Coastguard Worker 143*d95af8dfSAndroid Build Coastguard Workercc_library_shared { 144*d95af8dfSAndroid Build Coastguard Worker name: "[email protected]_msm", 145*d95af8dfSAndroid Build Coastguard Worker defaults: ["minigbm_gralloc4_common_defaults"], 146*d95af8dfSAndroid Build Coastguard Worker shared_libs: ["libminigbm_gralloc_msm"], 147*d95af8dfSAndroid Build Coastguard Worker vintf_fragment_modules: ["[email protected]"], 148*d95af8dfSAndroid Build Coastguard Worker srcs: [":minigbm_gralloc4_mapper_files"], 149*d95af8dfSAndroid Build Coastguard Worker} 150*d95af8dfSAndroid Build Coastguard Worker 151*d95af8dfSAndroid Build Coastguard Workercc_library_shared { 152*d95af8dfSAndroid Build Coastguard Worker name: "[email protected]_arcvm", 153*d95af8dfSAndroid Build Coastguard Worker defaults: ["minigbm_gralloc4_common_defaults"], 154*d95af8dfSAndroid Build Coastguard Worker shared_libs: ["libminigbm_gralloc_arcvm"], 155*d95af8dfSAndroid Build Coastguard Worker vintf_fragment_modules: ["[email protected]"], 156*d95af8dfSAndroid Build Coastguard Worker srcs: [":minigbm_gralloc4_mapper_files"], 157*d95af8dfSAndroid Build Coastguard Worker} 158*d95af8dfSAndroid Build Coastguard Worker 159*d95af8dfSAndroid Build Coastguard Workercc_library_shared { 160*d95af8dfSAndroid Build Coastguard Worker name: "[email protected]_intel", 161*d95af8dfSAndroid Build Coastguard Worker defaults: ["minigbm_gralloc4_common_defaults"], 162*d95af8dfSAndroid Build Coastguard Worker shared_libs: ["libminigbm_gralloc_intel"], 163*d95af8dfSAndroid Build Coastguard Worker vintf_fragment_modules: ["[email protected]"], 164*d95af8dfSAndroid Build Coastguard Worker srcs: [":minigbm_gralloc4_mapper_files"], 165*d95af8dfSAndroid Build Coastguard Worker enabled: false, 166*d95af8dfSAndroid Build Coastguard Worker arch: { 167*d95af8dfSAndroid Build Coastguard Worker x86: { 168*d95af8dfSAndroid Build Coastguard Worker enabled: true, 169*d95af8dfSAndroid Build Coastguard Worker }, 170*d95af8dfSAndroid Build Coastguard Worker x86_64: { 171*d95af8dfSAndroid Build Coastguard Worker enabled: true, 172*d95af8dfSAndroid Build Coastguard Worker }, 173*d95af8dfSAndroid Build Coastguard Worker }, 174*d95af8dfSAndroid Build Coastguard Worker} 175