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 { 23 name: "libgfxstream_gles2_encoder_program_binary_proto", 24 defaults: [ 25 "libgfxstream_guest_cc_defaults", 26 ], 27 proto: { 28 canonical_path_from_root: false, 29 export_proto_headers: true, 30 type: "lite", 31 }, 32 srcs: [ 33 "ProgramBinary.proto", 34 ], 35} 36 37cc_library_shared { 38 name: "libGLESv2_enc", 39 defaults: [ 40 "libgfxstream_guest_cc_defaults", 41 ], 42 header_libs: [ 43 "libgfxstream_guest_graphics_headers", 44 "mesa_gfxstream_guest_iostream", 45 ], 46 shared_libs: [ 47 "liblog", 48 "libOpenglCodecCommon", 49 ], 50 export_shared_lib_headers: [ 51 "libOpenglCodecCommon", 52 ], 53 static_libs: [ 54 "libgfxstream_androidemu_static", 55 "libgfxstream_gles2_encoder_program_binary_proto", 56 "libprotobuf-cpp-lite", 57 ], 58 export_static_lib_headers: [ 59 "libgfxstream_gles2_encoder_program_binary_proto", 60 ], 61 cflags: [ 62 "-DGL_GLEXT_PROTOTYPES", 63 "-DLOG_TAG=\"emuglGLESv2_enc\"", 64 "-Wno-unused-private-field", 65 ], 66 srcs: [ 67 "GL2EncoderUtils.cpp", 68 "GL2Encoder.cpp", 69 "GLESv2Validation.cpp", 70 "gl2_client_context.cpp", 71 "gl2_enc.cpp", 72 "gl2_entry.cpp", 73 "IOStream2.cpp", 74 ], 75 export_include_dirs: [ 76 ".", 77 ], 78} 79