blob: 0401c1d76a2277b6b1295fcbb624f343cb364a36 [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
Pawin Vongmasa36653902018-11-15 00:10:25 -080010cc_library_headers {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080011 name: "libcodec2_internal",
Pawin Vongmasa36653902018-11-15 00:10:25 -080012
13 export_include_dirs: [
14 "internal",
15 ],
16
17 // TODO: Remove this when this module is moved back to frameworks/av.
18 vendor_available: true,
Jooyung Hane3cf41a2020-04-30 04:22:22 +090019
20 min_sdk_version: "29",
Pawin Vongmasa36653902018-11-15 00:10:25 -080021}
22
23// !!!DO NOT DEPEND ON THIS SHARED LIBRARY DIRECTLY!!!
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080024// use libcodec2-impl-defaults instead
S Vasudev Prasad5e525282020-11-23 12:15:40 +053025cc_library {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080026 name: "libcodec2_vndk",
Pawin Vongmasa36653902018-11-15 00:10:25 -080027 vendor_available: true,
Jooyung Hane3cf41a2020-04-30 04:22:22 +090028 min_sdk_version: "29",
Wonsik Kim155d5cb2019-10-09 12:49:49 -070029 // TODO: b/147147883
30 double_loadable: true,
Pawin Vongmasa36653902018-11-15 00:10:25 -080031
32 srcs: [
Pin-chih Linf72774b2019-11-19 18:26:47 +080033 "C2AllocatorBlob.cpp",
Pawin Vongmasa36653902018-11-15 00:10:25 -080034 "C2AllocatorIon.cpp",
35 "C2AllocatorGralloc.cpp",
36 "C2Buffer.cpp",
37 "C2Config.cpp",
John Stultz6a407882020-07-11 04:34:19 +000038 "C2DmaBufAllocator.cpp",
Pawin Vongmasa36653902018-11-15 00:10:25 -080039 "C2PlatformStorePluginLoader.cpp",
40 "C2Store.cpp",
41 "platform/C2BqBuffer.cpp",
Chong Zhangc8ce1d82019-03-27 10:18:38 -070042 "types.cpp",
Pawin Vongmasa36653902018-11-15 00:10:25 -080043 "util/C2Debug.cpp",
44 "util/C2InterfaceHelper.cpp",
45 "util/C2InterfaceUtils.cpp",
46 "util/C2ParamUtils.cpp",
47 ],
48
49 export_include_dirs: [
50 "include",
51 ],
52
53 export_shared_lib_headers: [
54 "libbase",
Sungtak Leed3318082018-09-07 15:52:43 -070055 "android.hardware.media.bufferpool@2.0",
Pawin Vongmasa36653902018-11-15 00:10:25 -080056 ],
57
58 local_include_dirs: [
59 "internal",
60 ],
61
Pawin Vongmasacc1b4762018-11-26 00:46:29 -080062 header_libs: [
63 "media_plugin_headers",
64 "libcodec2_headers",
Pawin Vongmasa36653902018-11-15 00:10:25 -080065 ],
66
67 shared_libs: [
Pawin Vongmasaef939bf2019-03-03 04:44:59 -080068 "android.hardware.graphics.bufferqueue@2.0",
Marissa Wall2a24a302019-11-25 11:19:18 -080069 "android.hardware.graphics.common@1.2",
Sungtak Leed3318082018-09-07 15:52:43 -070070 "android.hardware.media.bufferpool@2.0",
Pawin Vongmasa36653902018-11-15 00:10:25 -080071 "libbase",
Pawin Vongmasa36653902018-11-15 00:10:25 -080072 "libcutils",
73 "libdl",
74 "libhardware",
75 "libhidlbase",
76 "libion",
John Stultz6a407882020-07-11 04:34:19 +000077 "libdmabufheap",
Pawin Vongmasa36653902018-11-15 00:10:25 -080078 "libfmq",
79 "liblog",
Chong Zhangc8ce1d82019-03-27 10:18:38 -070080 "libnativewindow",
Pawin Vongmasa36653902018-11-15 00:10:25 -080081 "libstagefright_foundation",
Pawin Vongmasa329ac9c2019-09-09 21:28:05 -070082 "libstagefright_bufferpool@2.0.1",
Pawin Vongmasa36653902018-11-15 00:10:25 -080083 "libui",
84 "libutils",
85 ],
86
87 cflags: [
88 "-Werror",
89 "-Wall",
90 ],
91}
92
93// public dependency for implementing Codec 2 components
94cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080095 name: "libcodec2-impl-defaults",
Pawin Vongmasa36653902018-11-15 00:10:25 -080096
97 shared_libs: [
98 "libbase", // for C2_LOG
99 "liblog", // for ALOG
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800100 "libcodec2",
101 "libcodec2_vndk",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800102 "libutils",
103 ],
Jooyung Hane3cf41a2020-04-30 04:22:22 +0900104
105 min_sdk_version: "29",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800106}
107
108// public dependency for implementing Codec 2 framework utilities
109// THIS IS ONLY FOR FRAMEWORK USE ONLY
110cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800111 name: "libcodec2-internal-defaults",
112 defaults: ["libcodec2-impl-defaults"],
Pawin Vongmasa36653902018-11-15 00:10:25 -0800113
Wonsik Kim8f9e90a2020-02-25 14:40:18 -0800114 header_libs: [
115 "libcodec2_internal",
116 ],
117
Pawin Vongmasa36653902018-11-15 00:10:25 -0800118 shared_libs: [
119 "libcutils", // for properties
120 ],
121
122 // TODO: separate internal headers so they can be exposed here
123}