Sungtak Lee | 76937c6 | 2022-12-07 11:42:03 +0000 | [diff] [blame] | 1 | package { |
| 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: ["hardware_interfaces_license"], |
| 8 | } |
| 9 | |
| 10 | cc_library { |
| 11 | name: "libstagefright_aidl_bufferpool2", |
| 12 | vendor_available: true, |
| 13 | min_sdk_version: "29", |
| 14 | apex_available: [ |
| 15 | "//apex_available:platform", |
| 16 | "com.android.media.swcodec", |
| 17 | "test_com.android.media.swcodec", |
| 18 | ], |
| 19 | srcs: [ |
| 20 | "Accessor.cpp", |
| 21 | "BufferPool.cpp", |
| 22 | "BufferPoolClient.cpp", |
| 23 | "BufferStatus.cpp", |
| 24 | "ClientManager.cpp", |
| 25 | "Connection.cpp", |
| 26 | "Observer.cpp", |
| 27 | ], |
| 28 | export_include_dirs: [ |
| 29 | "include", |
| 30 | ], |
| 31 | shared_libs: [ |
| 32 | "libbinder_ndk", |
| 33 | "libcutils", |
| 34 | "libfmq", |
| 35 | "liblog", |
| 36 | "libutils", |
| 37 | "android.hardware.media.bufferpool2-V1-ndk", |
| 38 | ], |
| 39 | static_libs: [ |
| 40 | "libaidlcommonsupport", |
| 41 | ], |
| 42 | export_shared_lib_headers: [ |
| 43 | "libfmq", |
| 44 | "android.hardware.media.bufferpool2-V1-ndk", |
| 45 | ], |
| 46 | double_loadable: true, |
| 47 | cflags: [ |
| 48 | "-DBUFFERPOOL_CLONE_HANDLES", |
| 49 | ], |
| 50 | } |