blob: 8e3cc40b9441cefa505b9eabcdcf77d3ff3aa573 [file] [log] [blame]
Jeff Tinker30038072016-04-25 13:41:35 -07001LOCAL_PATH:= $(call my-dir)
2
3#
4# libmediadrm
5#
6
7include $(CLEAR_VARS)
8
9LOCAL_SRC_FILES:= \
Marco Nelissen75571e42016-11-07 16:34:52 -080010 DrmSessionManager.cpp \
11 ICrypto.cpp \
12 IDrm.cpp \
13 IDrmClient.cpp \
14 IMediaDrmService.cpp \
15 SharedLibrary.cpp
Jeff Tinkerf3a591c2017-02-01 15:42:13 -080016ifneq ($(DISABLE_TREBLE_DRM), true)
Jeff Tinkera53d6552017-01-20 00:31:46 -080017LOCAL_SRC_FILES += \
18 DrmHal.cpp \
19 CryptoHal.cpp
20else
21LOCAL_SRC_FILES += \
22 Drm.cpp \
23 Crypto.cpp
24endif
Jeff Tinker30038072016-04-25 13:41:35 -070025
26LOCAL_SHARED_LIBRARIES := \
Marco Nelissen75571e42016-11-07 16:34:52 -080027 libbinder \
28 libcutils \
29 libdl \
30 liblog \
31 libmediautils \
32 libstagefright_foundation \
33 libutils
Jeff Tinkerf3a591c2017-02-01 15:42:13 -080034ifneq ($(DISABLE_TREBLE_DRM), true)
Jeff Tinkera53d6552017-01-20 00:31:46 -080035LOCAL_SHARED_LIBRARIES += \
36 android.hidl.base@1.0 \
37 android.hardware.drm@1.0 \
38 libhidlbase \
39 libhidlmemory
40endif
Jeff Tinker30038072016-04-25 13:41:35 -070041
Jeff Tinker30038072016-04-25 13:41:35 -070042LOCAL_CFLAGS += -Werror -Wno-error=deprecated-declarations -Wall
Jeff Tinker30038072016-04-25 13:41:35 -070043
44LOCAL_MODULE:= libmediadrm
45
46include $(BUILD_SHARED_LIBRARY)
47
48include $(call all-makefiles-under,$(LOCAL_PATH))