blob: 92a94db87abdacfa639ba5189ebc9dd3daa06387
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 | #set on some prducts,used libplayer. |
30 | BUILD_WITH_BOOT_PLAYER :=true |
31 | TARGET_WITH_AMLOGIC_SWCODEC :=true |
32 | |
33 | ######################################################################### |
34 | # |
35 | # PlayReady DRM |
36 | # |
37 | ######################################################################### |
38 | ifeq ($(BOARD_PLAYREADY_LEVEL),1) |
39 | BUILD_WITH_PLAYREADY_DRM := true |
40 | BOARD_PLAYREADY_TVP := true |
41 | TARGET_USE_OPTEEOS := true |
42 | else |
43 | ifeq ($(BOARD_PLAYREADY_LEVEL), 3) |
44 | BUILD_WITH_PLAYREADY_DRM := true |
45 | endif |
46 | endif |
47 | |
48 | ifeq ($(BUILD_WITH_PLAYREADY_DRM),true) |
49 | |
50 | PRODUCT_PACKAGES += libplayreadymediadrmplugin \ |
51 | libplayready \ |
52 | 9a04f079-9840-4286-ab92e65be0885f95 |
53 | |
54 | PRODUCT_COPY_FILES += \ |
55 | vendor/playready/playreadyplugin/keycert/zgpriv.dat:$(TARGET_COPY_OUT_VENDOR)/etc/drm/playready/zgpriv.dat \ |
56 | vendor/playready/playreadyplugin/keycert/bgroupcert.dat:$(TARGET_COPY_OUT_VENDOR)/etc/drm/playready/bgroupcert.dat \ |
57 | vendor/playready/playreadyplugin/keycert/zgpriv_protected.dat:$(TARGET_COPY_OUT_VENDOR)/etc/drm/playready/zgpriv_protected.dat |
58 | |
59 | endif |
60 | |
61 | ######################################################################### |
62 | # |
63 | # Verimatrix ViewRight Web |
64 | # |
65 | ######################################################################### |
66 | ifeq ($(BUILD_WITH_VIEWRIGHT_WEB),true) |
67 | |
68 | PRODUCT_PACKAGES += libVCASCommunication \ |
69 | |
70 | endif |
71 | |
72 | ######################################################################### |
73 | # |
74 | # Verimatrix ViewRight Stb |
75 | # |
76 | ######################################################################### |
77 | ifeq ($(BUILD_WITH_VIEWRIGHT_STB),true) |
78 | |
79 | PRODUCT_PACKAGES += libvm_mod \ |
80 | |
81 | |
82 | endif |
83 | |
84 | |
85 | |
86 | PRODUCT_PACKAGES += ca-certificates.crt \ |
87 | libstagefright_wfd_sink |
88 | |
89 | |
90 | |
91 | |
92 | PRODUCT_PACKAGES += \ |
93 | libstagefright_soft_aacdec \ |
94 | libstagefright_soft_aacenc \ |
95 | libstagefright_soft_amrdec \ |
96 | libstagefright_soft_amrnbenc \ |
97 | libstagefright_soft_amrwbenc \ |
98 | libstagefright_soft_flacenc \ |
99 | libstagefright_soft_g711dec \ |
100 | libstagefright_soft_mp3dec \ |
101 | libstagefright_soft_mp2dec \ |
102 | libstagefright_soft_vorbisdec \ |
103 | libstagefright_soft_rawdec \ |
104 | libstagefright_soft_adpcmdec \ |
105 | libstagefright_soft_adifdec \ |
106 | libstagefright_soft_latmdec \ |
107 | libstagefright_soft_adtsdec \ |
108 | libstagefright_soft_alacdec \ |
109 | libstagefright_soft_dtshd \ |
110 | libstagefright_soft_apedec \ |
111 | libstagefright_soft_wmaprodec \ |
112 | libstagefright_soft_wmadec \ |
113 | libstagefright_soft_ddpdcv \ |
114 | |
115 | |
116 | #soft codec related. |
117 | # |
118 | ifeq ($(TARGET_WITH_AMLOGIC_SWCODEC), true) |
119 | PRODUCT_PACKAGES += \ |
120 | libstagefright_soft_amsoftdec\ |
121 | libstagefright_soft_amsoftadec |
122 | |
123 | endif |
124 | |
125 | #for drm widevine. |
126 | PRODUCT_PROPERTY_OVERRIDES += drm.service.enable=true |
127 | ifeq ($(BOARD_WIDEVINE_OEMCRYPTO_LEVEL),1) |
128 | TARGET_USE_SECUREOS := true |
129 | CONFIG_SECURE_OS_BDK := true |
130 | endif |
131 | |
132 | ifeq ($(TARGET_USE_OPTEEOS), true) |
133 | BOARD_OMX_WITH_OPTEE_TVP := true |
134 | BUILD_WITH_TEEVIDEOFIRM_LOAD :=true |
135 | else |
136 | ifeq ($(TARGET_USE_SECUREOS), true) |
137 | BOARD_OMX_WITH_TVP := true |
138 | endif |
139 | endif |
140 | |
141 | PRODUCT_PACKAGES += com.google.widevine.software.drm.xml \ |
142 | com.google.widevine.software.drm \ |
143 | libWVStreamControlAPI_L1 \ |
144 | libdrmwvmplugin_L1 \ |
145 | libwvm_L1 \ |
146 | libwvdrm_L1 \ |
147 | libWVStreamControlAPI_L3 \ |
148 | libdrmwvmplugin \ |
149 | libwvm \ |
150 | libwvdrm_L3 \ |
151 | libotzapi \ |
152 | libwvsecureos_api \ |
153 | libdrmdecrypt \ |
154 | libwvdrmengine \ |
155 | liboemcrypto \ |
156 | widevine \ |
157 | wvcenc \ |
158 | edef8ba9-79d6-4ace-a3c827dcd51d21ed \ |
159 | e043cde0-61d0-11e5-9c260002a5d5c51b \ |
160 | secmem_test \ |
161 | secureapi_test \ |
162 | oemcrypto_test |
163 | |
164 | ifeq ($(TARGET_WITH_AMLOGIC_PLAYERS), true) |
165 | ##player related |
166 | BUILD_WITH_AMLOGIC_PLAYER := true |
167 | |
168 | PRODUCT_PACKAGES += libmedia_amlogic \ |
169 | librtmp \ |
170 | libmms_mod \ |
171 | libcurl_mod \ |
172 | libvhls_mod \ |
173 | libprhls_mod.so \ |
174 | libdash_mod.so \ |
175 | libbluray.so \ |
176 | libbluray_mod.so \ |
177 | |
178 | #audio |
179 | PRODUCT_PACKAGES += libamadec_omx_api \ |
180 | libfaad \ |
181 | libape \ |
182 | libmad \ |
183 | libflac \ |
184 | libcook \ |
185 | libraac \ |
186 | libamr \ |
187 | libpcm \ |
188 | libadpcm \ |
189 | libpcm_wfd \ |
190 | libaac_helix \ |
191 | libamadec_wfd_out |
192 | else |
193 | #no libplayer but have amnuplayer |
194 | ifeq ($(TARGET_WITH_AMNUPLAYER), true) |
195 | PRODUCT_PACKAGES += libmedia_amlogic |
196 | endif #amnuplayer |
197 | |
198 | endif |
199 | |
200 | ifeq ($(TARGET_WITH_AMLOGIC_RETRIEVER), true) |
201 | #retriever |
202 | PRODUCT_PACKAGES += libamlogic_metadata_retriever |
203 | endif |
204 | |
205 | ifeq ($(TARGET_WITH_AMLOGIC_SCREAN_MEDIASOURCE), true) |
206 | #for screensource |
207 | PRODUCT_PACKAGES += libstagefright_screenmediasource |
208 | endif |
209 | |
210 | |
211 | ifeq ($(TARGET_WITH_AMLOGIC_EXTRATORS), true) |
212 | #for ffmpeg extrator |
213 | PRODUCT_PACKAGES += libamffmpegadapter |
214 | #for other extrators |
215 | PRODUCT_PACKAGES += libstagefright_extrator |
216 | endif |
217 | |
218 | ifeq ($(BUILD_WITH_BOOT_PLAYER),true) |
219 | PRODUCT_PACKAGES += bootplayer \ |
220 | libasound \ |
221 | alsalib-alsaconf \ |
222 | alsalib-pcmdefaultconf \ |
223 | alsalib-cardsaliasesconf |
224 | |
225 | endif |
226 | ifeq ($(BUILD_WITH_TEEVIDEOFIRM_LOAD),true) |
227 | PRODUCT_PACKAGES += \ |
228 | libtee_load_video_fw \ |
229 | tee_preload_fw \ |
230 | 526fc4fc-7ee6-4a12-96e3-83da9565bce8 |
231 | |
232 | PRODUCT_COPY_FILES += \ |
233 | vendor/amlogic/prebuilt/videofirm/tee_preload_fw:/vendor/bin/tee_preload_fw |
234 | endif |
235 | #BOARD_SECCOMP_POLICY := device/amlogic/common/seccomp |
236 | PRODUCT_COPY_FILES += \ |
237 | device/amlogic/common/seccomp/mediaextractor.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy \ |
238 | device/amlogic/common/seccomp/mediacodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy |
239 | |
240 | |
241 | BOARD_AML_MEDIAHAL_PATH := hardware/amlogic/media/ |
242 | BOARD_AML_LIBAUDIO_PATH := hardware/amlogic/LibAudio/ |
243 | |
244 | # for media modules |
245 | PRODUCT_COPY_FILES += \ |
246 | device/amlogic/common/init.amlogic.media.rc:root/init.amlogic.media.rc |
247 |