summaryrefslogtreecommitdiff
path: root/common/media.mk (plain)
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.
24TARGET_WITH_AMLOGIC_EXTRATORS :=true
25TARGET_WITH_AMLOGIC_SCREAN_MEDIASOURCE :=true
26TARGET_WITH_AMLOGIC_RETRIEVER :=true
27TARGET_WITH_AMLOGIC_PLAYERS :=true
28TARGET_WITH_AMNUPLAYER :=true
29#set on some prducts,used libplayer.
30BUILD_WITH_BOOT_PLAYER :=true
31TARGET_WITH_AMLOGIC_SWCODEC :=true
32
33#########################################################################
34#
35# PlayReady DRM
36#
37#########################################################################
38ifeq ($(BOARD_PLAYREADY_LEVEL),1)
39 BUILD_WITH_PLAYREADY_DRM := true
40 BOARD_PLAYREADY_TVP := true
41 TARGET_USE_OPTEEOS := true
42else
43ifeq ($(BOARD_PLAYREADY_LEVEL), 3)
44 BUILD_WITH_PLAYREADY_DRM := true
45endif
46endif
47
48ifeq ($(BUILD_WITH_PLAYREADY_DRM),true)
49
50PRODUCT_PACKAGES += libplayreadymediadrmplugin \
51 libplayready \
52 9a04f079-9840-4286-ab92e65be0885f95
53
54PRODUCT_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
59endif
60
61#########################################################################
62#
63# Verimatrix ViewRight Web
64#
65#########################################################################
66ifeq ($(BUILD_WITH_VIEWRIGHT_WEB),true)
67
68PRODUCT_PACKAGES += libVCASCommunication \
69
70endif
71
72#########################################################################
73#
74# Verimatrix ViewRight Stb
75#
76#########################################################################
77ifeq ($(BUILD_WITH_VIEWRIGHT_STB),true)
78
79PRODUCT_PACKAGES += libvm_mod \
80
81
82endif
83
84
85
86PRODUCT_PACKAGES += ca-certificates.crt \
87 libstagefright_wfd_sink
88
89
90
91
92PRODUCT_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#
118ifeq ($(TARGET_WITH_AMLOGIC_SWCODEC), true)
119PRODUCT_PACKAGES += \
120 libstagefright_soft_amsoftdec\
121 libstagefright_soft_amsoftadec
122
123endif
124
125#for drm widevine.
126PRODUCT_PROPERTY_OVERRIDES += drm.service.enable=true
127ifeq ($(BOARD_WIDEVINE_OEMCRYPTO_LEVEL),1)
128 TARGET_USE_SECUREOS := true
129 CONFIG_SECURE_OS_BDK := true
130endif
131
132ifeq ($(TARGET_USE_OPTEEOS), true)
133 BOARD_OMX_WITH_OPTEE_TVP := true
134 BUILD_WITH_TEEVIDEOFIRM_LOAD :=true
135else
136ifeq ($(TARGET_USE_SECUREOS), true)
137 BOARD_OMX_WITH_TVP := true
138endif
139endif
140
141PRODUCT_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
164ifeq ($(TARGET_WITH_AMLOGIC_PLAYERS), true)
165##player related
166BUILD_WITH_AMLOGIC_PLAYER := true
167
168PRODUCT_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
179PRODUCT_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
192else
193#no libplayer but have amnuplayer
194ifeq ($(TARGET_WITH_AMNUPLAYER), true)
195PRODUCT_PACKAGES += libmedia_amlogic
196endif #amnuplayer
197
198endif
199
200ifeq ($(TARGET_WITH_AMLOGIC_RETRIEVER), true)
201#retriever
202PRODUCT_PACKAGES += libamlogic_metadata_retriever
203endif
204
205ifeq ($(TARGET_WITH_AMLOGIC_SCREAN_MEDIASOURCE), true)
206#for screensource
207PRODUCT_PACKAGES += libstagefright_screenmediasource
208endif
209
210
211ifeq ($(TARGET_WITH_AMLOGIC_EXTRATORS), true)
212#for ffmpeg extrator
213PRODUCT_PACKAGES += libamffmpegadapter
214#for other extrators
215PRODUCT_PACKAGES += libstagefright_extrator
216endif
217
218ifeq ($(BUILD_WITH_BOOT_PLAYER),true)
219PRODUCT_PACKAGES += bootplayer \
220 libasound \
221 alsalib-alsaconf \
222 alsalib-pcmdefaultconf \
223 alsalib-cardsaliasesconf
224
225endif
226ifeq ($(BUILD_WITH_TEEVIDEOFIRM_LOAD),true)
227PRODUCT_PACKAGES += \
228 libtee_load_video_fw \
229 tee_preload_fw \
230 526fc4fc-7ee6-4a12-96e3-83da9565bce8
231
232PRODUCT_COPY_FILES += \
233 vendor/amlogic/prebuilt/videofirm/tee_preload_fw:/vendor/bin/tee_preload_fw
234endif
235#BOARD_SECCOMP_POLICY := device/amlogic/common/seccomp
236PRODUCT_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
241BOARD_AML_MEDIAHAL_PATH := hardware/amlogic/media/
242BOARD_AML_LIBAUDIO_PATH := hardware/amlogic/LibAudio/
243
244# for media modules
245PRODUCT_COPY_FILES += \
246 device/amlogic/common/init.amlogic.media.rc:root/init.amlogic.media.rc
247