blob: be81c8445b55f654927118498984a884c5f32e57 [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",
Sungtak Leefce527c2021-03-20 01:24:41 -070039 "C2Fence.cpp",
Pawin Vongmasa36653902018-11-15 00:10:25 -080040 "C2PlatformStorePluginLoader.cpp",
41 "C2Store.cpp",
42 "platform/C2BqBuffer.cpp",
Sungtak Leefce527c2021-03-20 01:24:41 -070043 "platform/C2SurfaceSyncObj.cpp",
Chong Zhangc8ce1d82019-03-27 10:18:38 -070044 "types.cpp",
Pawin Vongmasa36653902018-11-15 00:10:25 -080045 "util/C2Debug.cpp",
46 "util/C2InterfaceHelper.cpp",
47 "util/C2InterfaceUtils.cpp",
48 "util/C2ParamUtils.cpp",
49 ],
50
51 export_include_dirs: [
52 "include",
53 ],
54
55 export_shared_lib_headers: [
56 "libbase",
Sungtak Leed3318082018-09-07 15:52:43 -070057 "android.hardware.media.bufferpool@2.0",
Pawin Vongmasa36653902018-11-15 00:10:25 -080058 ],
59
60 local_include_dirs: [
61 "internal",
62 ],
63
Pawin Vongmasacc1b4762018-11-26 00:46:29 -080064 header_libs: [
65 "media_plugin_headers",
66 "libcodec2_headers",
Pawin Vongmasa36653902018-11-15 00:10:25 -080067 ],
68
69 shared_libs: [
Pawin Vongmasaef939bf2019-03-03 04:44:59 -080070 "android.hardware.graphics.bufferqueue@2.0",
Marissa Wall2a24a302019-11-25 11:19:18 -080071 "android.hardware.graphics.common@1.2",
Sungtak Leed3318082018-09-07 15:52:43 -070072 "android.hardware.media.bufferpool@2.0",
Pawin Vongmasa36653902018-11-15 00:10:25 -080073 "libbase",
Pawin Vongmasa36653902018-11-15 00:10:25 -080074 "libcutils",
75 "libdl",
76 "libhardware",
77 "libhidlbase",
78 "libion",
John Stultz6a407882020-07-11 04:34:19 +000079 "libdmabufheap",
Pawin Vongmasa36653902018-11-15 00:10:25 -080080 "libfmq",
81 "liblog",
Chong Zhangc8ce1d82019-03-27 10:18:38 -070082 "libnativewindow",
Pawin Vongmasa36653902018-11-15 00:10:25 -080083 "libstagefright_foundation",
Pawin Vongmasa329ac9c2019-09-09 21:28:05 -070084 "libstagefright_bufferpool@2.0.1",
Pawin Vongmasa36653902018-11-15 00:10:25 -080085 "libui",
86 "libutils",
87 ],
88
89 cflags: [
90 "-Werror",
91 "-Wall",
92 ],
93}
94
95// public dependency for implementing Codec 2 components
96cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -080097 name: "libcodec2-impl-defaults",
Pawin Vongmasa36653902018-11-15 00:10:25 -080098
99 shared_libs: [
100 "libbase", // for C2_LOG
101 "liblog", // for ALOG
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800102 "libcodec2",
103 "libcodec2_vndk",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800104 "libutils",
105 ],
Jooyung Hane3cf41a2020-04-30 04:22:22 +0900106
107 min_sdk_version: "29",
Pawin Vongmasa36653902018-11-15 00:10:25 -0800108}
109
110// public dependency for implementing Codec 2 framework utilities
111// THIS IS ONLY FOR FRAMEWORK USE ONLY
112cc_defaults {
Pawin Vongmasad0f0e142018-11-15 03:36:28 -0800113 name: "libcodec2-internal-defaults",
114 defaults: ["libcodec2-impl-defaults"],
Pawin Vongmasa36653902018-11-15 00:10:25 -0800115
Wonsik Kim8f9e90a2020-02-25 14:40:18 -0800116 header_libs: [
117 "libcodec2_internal",
118 ],
119
Pawin Vongmasa36653902018-11-15 00:10:25 -0800120 shared_libs: [
121 "libcutils", // for properties
122 ],
123
124 // TODO: separate internal headers so they can be exposed here
125}