1package { 2 // See: http://go/android-license-faq 3 // A large-scale-change added 'default_applicable_licenses' to import 4 // all of the 'license_kinds' from "frameworks_av_license" 5 // to get the below license kinds: 6 // SPDX-license-identifier-Apache-2.0 7 default_applicable_licenses: ["frameworks_av_license"], 8} 9 10cc_library_headers { 11 name: "libcodec2_client_headers", 12 export_include_dirs: ["include"], 13 min_sdk_version: "29", 14 host_supported: true, 15 target: { 16 darwin: { 17 enabled: false, 18 }, 19 }, 20} 21 22cc_library { 23 name: "libcodec2_client", 24 25 srcs: [ 26 "GraphicBufferAllocator.cpp", 27 "GraphicsTracker.cpp", 28 "client.cpp", 29 "output.cpp", 30 ], 31 32 defaults: [ 33 "libcodec2-aidl-client-defaults", 34 ], 35 36 // http://b/343951602#comment4 Explicitly set cpp_std to gnu++20. The 37 // default inherited from libcodec2-impl-defaults sets it to gnu++17 which 38 // causes a segfault when mixing global std::string symbols built with 39 // gnu++17 and gnu++20. TODO(b/343951602): clean this after 40 // libcodec2-impl-defaults opt into gnu++17 is removed. 41 cpp_std: "gnu++20", 42 43 header_libs: [ 44 "libcodec2_internal", // private 45 ], 46 47 shared_libs: [ 48 "android.hardware.graphics.bufferqueue@1.0", 49 "android.hardware.media.bufferpool@2.0", 50 "android.hardware.media.c2@1.0", 51 "android.hardware.media.c2@1.1", 52 "android.hardware.media.c2@1.2", 53 "android.hardware.media.bufferpool2-V2-ndk", 54 "android.hardware.media.c2-V1-ndk", 55 "libbase", 56 "libbinder", 57 "libbinder_ndk", 58 "libcodec2", 59 "libcodec2_hidl_client@1.0", 60 "libcodec2_hidl_client@1.1", 61 "libcodec2_hidl_client@1.2", 62 "libcodec2_vndk", 63 "libcutils", 64 "libgui", 65 "libhidlbase", 66 "liblog", 67 "libnativewindow", 68 "libstagefright_aidl_bufferpool2", 69 "libstagefright_bufferpool@2.0.1", 70 "libui", 71 "libutils", 72 ], 73 74 static_libs: [ 75 "libaidlcommonsupport", 76 ], 77 78 export_include_dirs: [ 79 "include", 80 ], 81 82 export_shared_lib_headers: [ 83 "android.hardware.media.c2@1.0", 84 "android.hardware.media.c2@1.1", 85 "android.hardware.media.c2@1.2", 86 "libcodec2", 87 "libcodec2_hidl_client@1.0", 88 "libcodec2_hidl_client@1.1", 89 "libcodec2_hidl_client@1.2", 90 "libcodec2_vndk", 91 ], 92 93} 94