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_defaults { 23 name: "libgfxstream_guest_egl_defaults", 24 host_supported: true, 25 vendor: true, 26 defaults: [ 27 "libgfxstream_guest_cc_defaults", 28 ], 29 header_libs: [ 30 "libgfxstream_guest_graphics_headers", 31 "libnativebase_headers", 32 ], 33 export_header_lib_headers: [ 34 "libgfxstream_guest_graphics_headers", 35 ], 36 shared_libs: [ 37 "libandroidemu", 38 "libcutils", 39 "libdrm", 40 "liblog", 41 "libOpenglCodecCommon", 42 ], 43 static_libs: [ 44 "libarect", 45 "libqemupipe.ranchu", 46 ], 47 cflags: [ 48 "-DGL_GLEXT_PROTOTYPES", 49 "-DEGL_EGLEXT_PROTOTYPES", 50 "-DLOG_TAG=\"EGL_emulation\"", 51 "-DWITH_GLES2", 52 "-Wno-gnu-designator", 53 ], 54 srcs: [ 55 "eglDisplay.cpp", 56 "egl.cpp", 57 "ClientAPIExts.cpp", 58 ], 59 target: { 60 android: { 61 relative_install_path: "egl", 62 header_libs: [ 63 "libui_headers", 64 ], 65 shared_libs: [ 66 "libdl", 67 ], 68 }, 69 }, 70} 71 72cc_library_shared { 73 name: "libEGL_emulation", 74 defaults: [ 75 "libgfxstream_guest_egl_defaults", 76 ], 77 shared_libs: [ 78 "libOpenglSystemCommon", 79 ], 80 static_libs: [ 81 "libplatform", 82 ], 83} 84 85cc_library_shared { 86 name: "libEGL_emulation_with_host", 87 defaults: [ 88 "libgfxstream_guest_egl_defaults", 89 ], 90 shared_libs: [ 91 "libOpenglSystemCommonWithHost", 92 ], 93 target: { 94 host: { 95 compile_multilib: "64", 96 }, 97 android: { 98 compile_multilib: "64", 99 }, 100 }, 101} 102