blob: 864eeb883153870845a3b714187a3d6929367053 [file] [log] [blame]
Bob Badour56786ac2021-02-25 15:24:36 -08001package {
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
Ray Essickfa7b2ae2022-02-10 20:06:52 -080010cc_library_headers {
11 name: "libcodec2_client_headers",
12 export_include_dirs: ["include"],
Ray Essickfa7b2ae2022-02-10 20:06:52 -080013 min_sdk_version: "29",
14 host_supported: true,
15 target: {
16 darwin: {
17 enabled: false,
18 },
19 },
20}
21
Pawin Vongmasa36653902018-11-15 00:10:25 -080022cc_library {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080023 name: "libcodec2_client",
Pawin Vongmasa36653902018-11-15 00:10:25 -080024
25 srcs: [
Sungtak Lee0df96e22023-08-30 22:17:23 +000026 "GraphicBufferAllocator.cpp",
Sungtak Leef075f712023-07-20 23:37:45 +000027 "GraphicsTracker.cpp",
Pawin Vongmasa36653902018-11-15 00:10:25 -080028 "client.cpp",
Sungtak Leea714f112021-03-16 05:40:03 -070029 "output.cpp",
30 ],
31
Wonsik Kim1caded02022-12-09 13:03:11 -080032 defaults: [
33 "libcodec2-aidl-client-defaults",
34 ],
35
Pirama Arumuga Nainar40c6d922024-06-03 05:10:32 +000036 // 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
Sungtak Leea714f112021-03-16 05:40:03 -070043 header_libs: [
44 "libcodec2_internal", // private
Pawin Vongmasa36653902018-11-15 00:10:25 -080045 ],
46
47 shared_libs: [
48 "android.hardware.graphics.bufferqueue@1.0",
Sungtak Leed3318082018-09-07 15:52:43 -070049 "android.hardware.media.bufferpool@2.0",
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080050 "android.hardware.media.c2@1.0",
Pawin Vongmasabf69de92019-10-29 06:21:27 -070051 "android.hardware.media.c2@1.1",
Sungtak Lee8577dab2021-03-12 02:25:50 -080052 "android.hardware.media.c2@1.2",
Sungtak Leed8ccd962024-01-12 07:16:00 +000053 "android.hardware.media.bufferpool2-V2-ndk",
Wonsik Kimc8fc2c32022-12-12 14:43:00 -080054 "android.hardware.media.c2-V1-ndk",
Pawin Vongmasa36653902018-11-15 00:10:25 -080055 "libbase",
56 "libbinder",
Wonsik Kimc8fc2c32022-12-12 14:43:00 -080057 "libbinder_ndk",
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080058 "libcodec2",
Chong Zhangc8ce1d82019-03-27 10:18:38 -070059 "libcodec2_hidl_client@1.0",
Pawin Vongmasabf69de92019-10-29 06:21:27 -070060 "libcodec2_hidl_client@1.1",
Sungtak Lee8577dab2021-03-12 02:25:50 -080061 "libcodec2_hidl_client@1.2",
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080062 "libcodec2_vndk",
Pawin Vongmasa36653902018-11-15 00:10:25 -080063 "libcutils",
64 "libgui",
65 "libhidlbase",
Pawin Vongmasa36653902018-11-15 00:10:25 -080066 "liblog",
Sungtak Leef075f712023-07-20 23:37:45 +000067 "libnativewindow",
Wonsik Kime8e98152022-12-16 16:04:17 -080068 "libstagefright_aidl_bufferpool2",
Pawin Vongmasa329ac9c2019-09-09 21:28:05 -070069 "libstagefright_bufferpool@2.0.1",
Pawin Vongmasa36653902018-11-15 00:10:25 -080070 "libui",
71 "libutils",
72 ],
73
Wonsik Kime8e98152022-12-16 16:04:17 -080074 static_libs: [
75 "libaidlcommonsupport",
76 ],
77
Pawin Vongmasa36653902018-11-15 00:10:25 -080078 export_include_dirs: [
79 "include",
80 ],
81
82 export_shared_lib_headers: [
Pawin Vongmasabf69de92019-10-29 06:21:27 -070083 "android.hardware.media.c2@1.0",
84 "android.hardware.media.c2@1.1",
Sungtak Lee8577dab2021-03-12 02:25:50 -080085 "android.hardware.media.c2@1.2",
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080086 "libcodec2",
Chong Zhangc8ce1d82019-03-27 10:18:38 -070087 "libcodec2_hidl_client@1.0",
Pawin Vongmasabf69de92019-10-29 06:21:27 -070088 "libcodec2_hidl_client@1.1",
Sungtak Lee8577dab2021-03-12 02:25:50 -080089 "libcodec2_hidl_client@1.2",
Pawin Vongmasa270dd6a2019-04-06 04:41:15 -070090 "libcodec2_vndk",
Pawin Vongmasa36653902018-11-15 00:10:25 -080091 ],
92
93}