1/* 2 * Copyright (C) 2023 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17package { 18 default_applicable_licenses: ["device_generic_goldfish-opengl_license"], 19} 20 21cc_library_shared { 22 name: "gralloc.goldfish", 23 vendor: true, 24 relative_install_path: "hw", 25 shared_libs: [ 26 "libcutils", 27 "libdl", 28 "libdrm", 29 "liblog", 30 "libGLESv1_enc", 31 "lib_renderControl_enc", 32 "libOpenglCodecCommon", 33 "libOpenglSystemCommon", 34 ], 35 static_libs: [ 36 "mesa_goldfish_address_space", 37 "libqemupipe.ranchu", 38 ], 39 cflags: [ 40 "-DVIRTIO_GPU", 41 "-DLOG_TAG=\"gralloc_goldfish\"", 42 "-Wno-gnu-designator", 43 "-Wno-missing-field-initializers", 44 "-Wno-unused-parameter", 45 ], 46 srcs: [ 47 "gralloc_old.cpp", 48 ], 49} 50 51cc_library_shared { 52 name: "gralloc.ranchu", 53 vendor: true, 54 relative_install_path: "hw", 55 shared_libs: [ 56 "libcutils", 57 "libdl", 58 "libdrm", 59 "liblog", 60 "libGLESv1_enc", 61 "lib_renderControl_enc", 62 "libOpenglCodecCommon", 63 "libOpenglSystemCommon", 64 ], 65 static_libs: [ 66 "mesa_goldfish_address_space", 67 "libqemupipe.ranchu", 68 ], 69 cflags: [ 70 "-DVIRTIO_GPU", 71 "-DLOG_TAG=\"gralloc_ranchu\"", 72 "-Wno-gnu-designator", 73 "-Wno-unused-parameter", 74 ], 75 srcs: [ 76 "gralloc_old.cpp", 77 ], 78} 79