blob: c02ffe2c4f9c89650362852130257b2dc48efc52
1 | |
2 | # |
3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
4 | # you may not use this file except in compliance with the License. |
5 | # You may obtain a copy of the License at |
6 | # |
7 | # http://www.apache.org/licenses/LICENSE-2.0 |
8 | # |
9 | # Unless required by applicable law or agreed to in writing, software |
10 | # distributed under the License is distributed on an "AS IS" BASIS, |
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 | # See the License for the specific language governing permissions and |
13 | # limitations under the License. |
14 | |
15 | |
16 | |
17 | # |
18 | #media related config for amlogic & |
19 | #some dynamic shared libraries |
20 | # |
21 | |
22 | |
23 | #for amlogicplayer& liblayer related. |
24 | #TARGET_WITH_AMLOGIC_EXTRATORS :=true |
25 | #TARGET_WITH_AMLOGIC_SCREAN_MEDIASOURCE :=true |
26 | #TARGET_WITH_AMLOGIC_RETRIEVER :=true |
27 | #TARGET_WITH_AMLOGIC_PLAYERS :=true |
28 | #TARGET_WITH_AMNUPLAYER :=true |
29 | TARGET_WITH_MEDIA_EXT_LEVEL := 1 |
30 | #set on some prducts,used libplayer. |
31 | BUILD_WITH_BOOT_PLAYER :=true |
32 | |
33 | ######################################################################### |
34 | # |
35 | # media ext |
36 | # |
37 | ######################################################################### |
38 | ifeq ($(TARGET_WITH_MEDIA_EXT_LEVEL), 1) |
39 | TARGET_WITH_MEDIA_EXT :=true |
40 | TARGET_WITH_SWCODEC_EXT :=true |
41 | else |
42 | ifeq ($(TARGET_WITH_MEDIA_EXT_LEVEL), 2) |
43 | TARGET_WITH_MEDIA_EXT :=true |
44 | TARGET_WITH_SWCODEC_EXT := true |
45 | TARGET_WITH_CODEC_EXT := true |
46 | else |
47 | ifeq ($(TARGET_WITH_MEDIA_EXT_LEVEL), 3) |
48 | TARGET_WITH_MEDIA_EXT :=true |
49 | TARGET_WITH_SWCODEC_EXT := true |
50 | TARGET_WITH_CODEC_EXT := true |
51 | TARGET_WITH_PLAYERS_EXT :=true |
52 | endif |
53 | endif |
54 | endif |
55 | |
56 | ifeq ($(TARGET_WITH_MEDIA_EXT), true) |
57 | PRODUCT_PACKAGES += \ |
58 | libammediaext \ |
59 | libamffmpeg \ |
60 | libamffmpegadapter |
61 | endif |
62 | #soft codec related. |
63 | # |
64 | ifeq ($(TARGET_WITH_SWCODEC_EXT), true) |
65 | PRODUCT_PACKAGES += \ |
66 | libOmxCoreSw \ |
67 | libstagefright_soft_amsoftdec |
68 | |
69 | endif |
70 | |
71 | ######################################################################### |
72 | # |
73 | # PlayReady DRM |
74 | # |
75 | ######################################################################### |
76 | ifeq ($(BOARD_PLAYREADY_LEVEL),1) |
77 | BUILD_WITH_PLAYREADY_DRM := true |
78 | BOARD_PLAYREADY_TVP := true |
79 | TARGET_USE_OPTEEOS := true |
80 | else |
81 | ifeq ($(BOARD_PLAYREADY_LEVEL), 3) |
82 | BUILD_WITH_PLAYREADY_DRM := true |
83 | endif |
84 | endif |
85 | |
86 | ifeq ($(BUILD_WITH_PLAYREADY_DRM),true) |
87 | |
88 | PRODUCT_PACKAGES += libplayreadymediadrmplugin \ |
89 | libplayready \ |
90 | 9a04f079-9840-4286-ab92e65be0885f95 |
91 | |
92 | PRODUCT_COPY_FILES += \ |
93 | vendor/playready/playreadyplugin/keycert/zgpriv.dat:$(TARGET_COPY_OUT_VENDOR)/etc/drm/playready/zgpriv.dat \ |
94 | vendor/playready/playreadyplugin/keycert/bgroupcert.dat:$(TARGET_COPY_OUT_VENDOR)/etc/drm/playready/bgroupcert.dat \ |
95 | vendor/playready/playreadyplugin/keycert/zgpriv_protected.dat:$(TARGET_COPY_OUT_VENDOR)/etc/drm/playready/zgpriv_protected.dat |
96 | |
97 | endif |
98 | |
99 | ######################################################################### |
100 | # |
101 | # Verimatrix ViewRight Web |
102 | # |
103 | ######################################################################### |
104 | ifeq ($(BUILD_WITH_VIEWRIGHT_WEB),true) |
105 | |
106 | PRODUCT_PACKAGES += libVCASCommunication \ |
107 | |
108 | endif |
109 | |
110 | ######################################################################### |
111 | # |
112 | # Verimatrix ViewRight Stb |
113 | # |
114 | ######################################################################### |
115 | ifeq ($(BUILD_WITH_VIEWRIGHT_STB),true) |
116 | |
117 | PRODUCT_PACKAGES += libvm_mod \ |
118 | |
119 | |
120 | endif |
121 | |
122 | |
123 | |
124 | PRODUCT_PACKAGES += ca-certificates.crt \ |
125 | libstagefright_wfd_sink |
126 | |
127 | |
128 | |
129 | |
130 | PRODUCT_PACKAGES += \ |
131 | libstagefright_soft_aacdec \ |
132 | libstagefright_soft_aacenc \ |
133 | libstagefright_soft_amrdec \ |
134 | libstagefright_soft_amrnbenc \ |
135 | libstagefright_soft_amrwbenc \ |
136 | libstagefright_soft_flacenc \ |
137 | libstagefright_soft_g711dec \ |
138 | libstagefright_soft_mp3dec \ |
139 | libstagefright_soft_mp2dec \ |
140 | libstagefright_soft_vorbisdec \ |
141 | libstagefright_soft_rawdec \ |
142 | libstagefright_soft_adpcmdec \ |
143 | libstagefright_soft_adifdec \ |
144 | libstagefright_soft_latmdec \ |
145 | libstagefright_soft_adtsdec \ |
146 | libstagefright_soft_alacdec \ |
147 | libstagefright_soft_dtshd \ |
148 | libstagefright_soft_apedec \ |
149 | libstagefright_soft_wmaprodec \ |
150 | libstagefright_soft_wmadec \ |
151 | libstagefright_soft_ddpdcv \ |
152 | |
153 | |
154 | |
155 | #for drm widevine. |
156 | PRODUCT_PROPERTY_OVERRIDES += drm.service.enable=true |
157 | ifeq ($(BOARD_WIDEVINE_OEMCRYPTO_LEVEL),1) |
158 | TARGET_USE_SECUREOS := true |
159 | CONFIG_SECURE_OS_BDK := true |
160 | endif |
161 | |
162 | ifeq ($(TARGET_USE_OPTEEOS), true) |
163 | BOARD_OMX_WITH_OPTEE_TVP := true |
164 | BUILD_WITH_TEEVIDEOFIRM_LOAD :=true |
165 | else |
166 | ifeq ($(TARGET_USE_SECUREOS), true) |
167 | BOARD_OMX_WITH_TVP := true |
168 | endif |
169 | endif |
170 | |
171 | PRODUCT_PACKAGES += com.google.widevine.software.drm.xml \ |
172 | com.google.widevine.software.drm \ |
173 | libWVStreamControlAPI_L1 \ |
174 | libdrmwvmplugin_L1 \ |
175 | libwvm_L1 \ |
176 | libwvdrm_L1 \ |
177 | libWVStreamControlAPI_L3 \ |
178 | libdrmwvmplugin \ |
179 | libwvm \ |
180 | libwvdrm_L3 \ |
181 | libotzapi \ |
182 | libwvsecureos_api \ |
183 | libdrmdecrypt \ |
184 | libwvdrmengine \ |
185 | liboemcrypto \ |
186 | widevine \ |
187 | wvcenc \ |
188 | edef8ba9-79d6-4ace-a3c827dcd51d21ed \ |
189 | e043cde0-61d0-11e5-9c260002a5d5c51b \ |
190 | secmem_test \ |
191 | secureapi_test \ |
192 | oemcrypto_test |
193 | |
194 | ifeq ($(TARGET_WITH_AMLOGIC_PLAYERS), true) |
195 | ##player related |
196 | BUILD_WITH_AMLOGIC_PLAYER := true |
197 | |
198 | PRODUCT_PACKAGES += libmedia_amlogic \ |
199 | librtmp \ |
200 | libmms_mod \ |
201 | libcurl_mod \ |
202 | libvhls_mod \ |
203 | libprhls_mod.so \ |
204 | libdash_mod.so \ |
205 | libbluray.so \ |
206 | libbluray_mod.so \ |
207 | |
208 | #audio |
209 | PRODUCT_PACKAGES += libamadec_omx_api \ |
210 | libfaad \ |
211 | libape \ |
212 | libmad \ |
213 | libflac \ |
214 | libcook \ |
215 | libraac \ |
216 | libamr \ |
217 | libpcm \ |
218 | libadpcm \ |
219 | libpcm_wfd \ |
220 | libaac_helix \ |
221 | libamadec_wfd_out |
222 | else |
223 | #no libplayer but have amnuplayer |
224 | ifeq ($(TARGET_WITH_AMNUPLAYER), true) |
225 | PRODUCT_PACKAGES += libmedia_amlogic |
226 | endif #amnuplayer |
227 | |
228 | endif |
229 | |
230 | ifeq ($(TARGET_WITH_AMLOGIC_RETRIEVER), true) |
231 | #retriever |
232 | PRODUCT_PACKAGES += libamlogic_metadata_retriever |
233 | endif |
234 | |
235 | ifeq ($(TARGET_WITH_AMLOGIC_SCREAN_MEDIASOURCE), true) |
236 | #for screensource |
237 | PRODUCT_PACKAGES += libstagefright_screenmediasource |
238 | endif |
239 | |
240 | |
241 | ifeq ($(TARGET_WITH_AMLOGIC_EXTRATORS), true) |
242 | #for ffmpeg extrator |
243 | PRODUCT_PACKAGES += libamffmpegadapter |
244 | #for other extrators |
245 | PRODUCT_PACKAGES += libstagefright_extrator |
246 | endif |
247 | |
248 | ifeq ($(BUILD_WITH_BOOT_PLAYER),true) |
249 | PRODUCT_PACKAGES += bootplayer \ |
250 | libasound \ |
251 | alsalib-alsaconf \ |
252 | alsalib-pcmdefaultconf \ |
253 | alsalib-cardsaliasesconf |
254 | |
255 | endif |
256 | ifeq ($(BUILD_WITH_TEEVIDEOFIRM_LOAD),true) |
257 | PRODUCT_PACKAGES += \ |
258 | libtee_load_video_fw \ |
259 | tee_preload_fw \ |
260 | 526fc4fc-7ee6-4a12-96e3-83da9565bce8 |
261 | endif |
262 | #BOARD_SECCOMP_POLICY := device/amlogic/common/seccomp |
263 | PRODUCT_COPY_FILES += \ |
264 | device/amlogic/common/seccomp/mediaextractor.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy \ |
265 | device/amlogic/common/seccomp/mediacodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy |
266 | |
267 | |
268 | BOARD_AML_MEDIAHAL_PATH := hardware/amlogic/media/ |
269 | BOARD_AML_LIBAUDIO_PATH := hardware/amlogic/LibAudio/ |
270 | |
271 | # for media modules |
272 | PRODUCT_COPY_FILES += \ |
273 | device/amlogic/common/init.amlogic.media.rc:root/init.amlogic.media.rc |
274 | |
275 |