blob: 72d42ae2070384c35fab59a6d08b11d4aea88b80 [file] [log] [blame]
Jeff Tinkera69729d2016-02-12 08:47:00 -08001# Copyright 2014 The Android Open Source Project
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
15LOCAL_PATH:= $(call my-dir)
16
17include $(CLEAR_VARS)
18
Jeff Tinkera69729d2016-02-12 08:47:00 -080019LOCAL_SRC_FILES:= \
20 MediaDrmService.cpp \
21 main_mediadrmserver.cpp
22
Marco Nelissen55b259c2019-09-27 10:21:55 -070023LOCAL_HEADER_LIBRARIES:= \
Marco Nelissen6b285942019-10-21 14:52:30 -070024 libmedia_headers \
Marco Nelissen55b259c2019-09-27 10:21:55 -070025 libmediadrm_headers
26
Jeff Tinkera69729d2016-02-12 08:47:00 -080027LOCAL_SHARED_LIBRARIES:= \
Jeff Tinkera69729d2016-02-12 08:47:00 -080028 libbinder \
Jeff Tinker30038072016-04-25 13:41:35 -070029 liblog \
Robert Shih79673cf2019-09-20 21:45:01 -070030 libmedia \
Jeff Tinker30038072016-04-25 13:41:35 -070031 libmediadrm \
Jeff Tinker99a5aba2017-04-24 15:20:53 -070032 libutils \
Jeff Tinkera53d6552017-01-20 00:31:46 -080033 libhidlbase \
34 libhidlmemory \
Jeff Tinker6d998b62017-12-18 14:37:43 -080035 android.hardware.drm@1.0 \
Jeff Tinkerc8baaba2018-10-23 11:32:36 -070036 android.hardware.drm@1.1 \
37 android.hardware.drm@1.2
Jeff Tinkera69729d2016-02-12 08:47:00 -080038
Aurimas Liutikasc9036842016-02-18 15:58:04 -080039LOCAL_CFLAGS += -Wall -Wextra -Werror
40
Jeff Tinkera69729d2016-02-12 08:47:00 -080041LOCAL_MODULE:= mediadrmserver
John W. Brucee9fec542017-03-13 16:29:28 -070042
43# TODO: Some legacy DRM plugins only support 32-bit. They need to be migrated to
44# 64-bit. (b/18948909) Once all of a device's legacy DRM plugins support 64-bit,
John W. Bruce6527a562017-04-27 12:06:44 -070045# that device can turn on TARGET_ENABLE_MEDIADRM_64 to build this service as
46# 64-bit.
47ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
Jeff Tinkera69729d2016-02-12 08:47:00 -080048LOCAL_32_BIT_ONLY := true
John W. Brucee9fec542017-03-13 16:29:28 -070049endif
Jeff Tinkera69729d2016-02-12 08:47:00 -080050
51LOCAL_INIT_RC := mediadrmserver.rc
52
53include $(BUILD_EXECUTABLE)