blob: fa3a02b99a989a9140f63a49ac45a2968761cc1a [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:= \
Chong Zhang9dbe9a52017-01-03 11:35:15 -080020 MediaCasService.cpp \
Jeff Tinkera69729d2016-02-12 08:47:00 -080021 MediaDrmService.cpp \
22 main_mediadrmserver.cpp
23
24LOCAL_SHARED_LIBRARIES:= \
Jeff Tinkera69729d2016-02-12 08:47:00 -080025 libbinder \
Jeff Tinker30038072016-04-25 13:41:35 -070026 liblog \
Jeff Tinker30038072016-04-25 13:41:35 -070027 libmediadrm \
Jeff Tinker70537c12017-01-31 11:48:06 -080028 libutils
Jeff Tinkerf3a591c2017-02-01 15:42:13 -080029ifneq ($(DISABLE_TREBLE_DRM), true)
Jeff Tinkera53d6552017-01-20 00:31:46 -080030LOCAL_SHARED_LIBRARIES += \
31 libhidlbase \
32 libhidlmemory \
33 android.hidl.base@1.0 \
34 android.hardware.drm@1.0
35endif
Jeff Tinkera69729d2016-02-12 08:47:00 -080036
Aurimas Liutikasc9036842016-02-18 15:58:04 -080037LOCAL_CFLAGS += -Wall -Wextra -Werror
Jeff Tinkerf3a591c2017-02-01 15:42:13 -080038ifeq ($(DISABLE_TREBLE_DRM), true)
39LOCAL_CFLAGS += -DDISABLE_TREBLE_DRM=1
Jeff Tinkera53d6552017-01-20 00:31:46 -080040endif
Aurimas Liutikasc9036842016-02-18 15:58:04 -080041
Jeff Tinkera69729d2016-02-12 08:47:00 -080042LOCAL_MODULE:= mediadrmserver
John W. Brucee9fec542017-03-13 16:29:28 -070043
44# TODO: Some legacy DRM plugins only support 32-bit. They need to be migrated to
45# 64-bit. (b/18948909) Once all of a device's legacy DRM plugins support 64-bit,
John W. Bruce6527a562017-04-27 12:06:44 -070046# that device can turn on TARGET_ENABLE_MEDIADRM_64 to build this service as
47# 64-bit.
48ifneq ($(TARGET_ENABLE_MEDIADRM_64), true)
Jeff Tinkera69729d2016-02-12 08:47:00 -080049LOCAL_32_BIT_ONLY := true
John W. Brucee9fec542017-03-13 16:29:28 -070050endif
Jeff Tinkera69729d2016-02-12 08:47:00 -080051
52LOCAL_INIT_RC := mediadrmserver.rc
53
54include $(BUILD_EXECUTABLE)