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 // See: http://go/android-license-faq 19 default_applicable_licenses: ["hardware_google_gfxstream_license"], 20} 21 22cc_library_headers { 23 name: "libgfxstream_egl_headers", 24 defaults: [ 25 "libgfxstream_guest_cc_defaults", 26 ], 27 export_include_dirs: [ 28 ".", 29 ], 30} 31 32cc_library_shared { 33 name: "libEGL_emulation", 34 defaults: [ 35 "libgfxstream_guest_cc_defaults", 36 "mesa_platform_virtgpu_defaults", 37 ], 38 header_libs: [ 39 "libgfxstream_guest_graphics_headers", 40 "libnativebase_headers", 41 ], 42 export_header_lib_headers: [ 43 "libgfxstream_guest_graphics_headers", 44 ], 45 shared_libs: [ 46 "libcutils", 47 "libdrm", 48 "liblog", 49 "libOpenglCodecCommon", 50 "libOpenglSystemCommon", 51 ], 52 static_libs: [ 53 "libgfxstream_androidemu_static", 54 "libarect", 55 "libqemupipe.ranchu", 56 ], 57 cflags: [ 58 "-DGL_GLEXT_PROTOTYPES", 59 "-DEGL_EGLEXT_PROTOTYPES", 60 "-DLOG_TAG=\"EGL_emulation\"", 61 "-DWITH_GLES2", 62 "-Wno-gnu-designator", 63 ], 64 srcs: [ 65 "eglDisplay.cpp", 66 "egl.cpp", 67 "ClientAPIExts.cpp", 68 ], 69 target: { 70 android: { 71 relative_install_path: "egl", 72 header_libs: [ 73 "libui_headers", 74 ], 75 shared_libs: [ 76 "libsync", 77 "libdl", 78 ], 79 }, 80 }, 81} 82