blob: e72236db8939af31a0e5eeddf85d94dedbdd52b3 [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
23LOCAL_SHARED_LIBRARIES:= \
Jeff Tinkera69729d2016-02-12 08:47:00 -080024 libbinder \
Jeff Tinker30038072016-04-25 13:41:35 -070025 liblog \
Jeff Tinker30038072016-04-25 13:41:35 -070026 libmediadrm \
Jeff Tinker70537c12017-01-31 11:48:06 -080027 libutils
Jeff Tinkerf3a591c2017-02-01 15:42:13 -080028ifneq ($(DISABLE_TREBLE_DRM), true)
Jeff Tinkera53d6552017-01-20 00:31:46 -080029LOCAL_SHARED_LIBRARIES += \
30 libhidlbase \
31 libhidlmemory \
32 android.hidl.base@1.0 \
33 android.hardware.drm@1.0
34endif
Jeff Tinkera69729d2016-02-12 08:47:00 -080035
Aurimas Liutikasc9036842016-02-18 15:58:04 -080036LOCAL_CFLAGS += -Wall -Wextra -Werror
Jeff Tinkerf3a591c2017-02-01 15:42:13 -080037ifeq ($(DISABLE_TREBLE_DRM), true)
38LOCAL_CFLAGS += -DDISABLE_TREBLE_DRM=1
Jeff Tinkera53d6552017-01-20 00:31:46 -080039endif
Aurimas Liutikasc9036842016-02-18 15:58:04 -080040
Jeff Tinkera69729d2016-02-12 08:47:00 -080041LOCAL_MODULE:= mediadrmserver
42LOCAL_32_BIT_ONLY := true
43
44LOCAL_INIT_RC := mediadrmserver.rc
45
46include $(BUILD_EXECUTABLE)