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_guest_errorlog_headers", 24 defaults: [ 25 "libgfxstream_guest_cc_defaults", 26 ], 27 export_include_dirs: [ 28 ".", 29 ], 30} 31 32cc_library_shared { 33 name: "libOpenglCodecCommon", 34 defaults: [ 35 "libgfxstream_guest_cc_defaults", 36 ], 37 header_libs: [ 38 "gfxstream_opengl_headers", 39 "libgfxstream_guest_graphics_headers", 40 "mesa_gfxstream_guest_iostream", 41 ], 42 export_header_lib_headers: [ 43 "gfxstream_opengl_headers", 44 ], 45 shared_libs: [ 46 "libcutils", 47 "liblog", 48 "libutils", 49 ], 50 export_shared_lib_headers: [ 51 "libcutils", 52 "liblog", 53 ], 54 export_static_lib_headers: [ 55 "libgfxstream_androidemu_static", 56 ], 57 static_libs: [ 58 "libgfxstream_etc", 59 "libgfxstream_androidemu_static", 60 "libqemupipe.ranchu", 61 ], 62 cflags: [ 63 "-DLOG_TAG=\"eglCodecCommon\"", 64 "-Wno-unused-private-field", 65 ], 66 srcs: [ 67 "ChecksumCalculator.cpp", 68 "EncoderDebug.cpp", 69 "GLClientState.cpp", 70 "GLESTextureUtils.cpp", 71 "GLSharedGroup.cpp", 72 "glUtils.cpp", 73 "IndexRangeCache.cpp", 74 ], 75 export_include_dirs: [ 76 "include", 77 ".", 78 ], 79} 80 81cc_library_static { 82 name: "libOpenglCodecCommon_static", 83 host_supported: true, 84 vendor: true, 85 defaults: [ 86 "libgfxstream_guest_cc_defaults", 87 ], 88 header_libs: [ 89 "gfxstream_opengl_headers", 90 "libgfxstream_guest_graphics_headers", 91 "mesa_gfxstream_guest_iostream", 92 ], 93 export_header_lib_headers: [ 94 "gfxstream_opengl_headers", 95 ], 96 shared_libs: [ 97 "libcutils", 98 "liblog", 99 "libutils", 100 ], 101 export_shared_lib_headers: [ 102 "libcutils", 103 "liblog", 104 ], 105 export_static_lib_headers: [ 106 "libgfxstream_androidemu_static", 107 ], 108 static_libs: [ 109 "libgfxstream_etc", 110 "libgfxstream_androidemu_static", 111 "libqemupipe.ranchu", 112 ], 113 cflags: [ 114 "-DLOG_TAG=\"eglCodecCommon\"", 115 "-Wno-unused-private-field", 116 ], 117 srcs: [ 118 "ChecksumCalculator.cpp", 119 "EncoderDebug.cpp", 120 "GLClientState.cpp", 121 "GLESTextureUtils.cpp", 122 "GLSharedGroup.cpp", 123 "glUtils.cpp", 124 "IndexRangeCache.cpp", 125 ], 126 export_include_dirs: [ 127 "include", 128 ], 129} 130