Jeff Tinker | 3003807 | 2016-04-25 13:41:35 -0700 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
| 3 | # |
| 4 | # libmediadrm |
| 5 | # |
| 6 | |
| 7 | include $(CLEAR_VARS) |
| 8 | |
Chong Zhang | 9dbe9a5 | 2017-01-03 11:35:15 -0800 | [diff] [blame] | 9 | LOCAL_AIDL_INCLUDES := \ |
Chong Zhang | 886aca0 | 2017-02-27 15:56:33 -0800 | [diff] [blame^] | 10 | frameworks/av/drm/libmediadrm/aidl |
Chong Zhang | 9dbe9a5 | 2017-01-03 11:35:15 -0800 | [diff] [blame] | 11 | |
| 12 | LOCAL_SRC_FILES := \ |
Chong Zhang | 886aca0 | 2017-02-27 15:56:33 -0800 | [diff] [blame^] | 13 | aidl/android/media/ICas.aidl \ |
| 14 | aidl/android/media/ICasListener.aidl \ |
| 15 | aidl/android/media/IDescrambler.aidl \ |
| 16 | aidl/android/media/IMediaCasService.aidl \ |
Chong Zhang | 9dbe9a5 | 2017-01-03 11:35:15 -0800 | [diff] [blame] | 17 | |
| 18 | LOCAL_SRC_FILES += \ |
| 19 | CasImpl.cpp \ |
| 20 | DescramblerImpl.cpp \ |
Marco Nelissen | 75571e4 | 2016-11-07 16:34:52 -0800 | [diff] [blame] | 21 | DrmSessionManager.cpp \ |
| 22 | ICrypto.cpp \ |
| 23 | IDrm.cpp \ |
| 24 | IDrmClient.cpp \ |
| 25 | IMediaDrmService.cpp \ |
Chong Zhang | 9dbe9a5 | 2017-01-03 11:35:15 -0800 | [diff] [blame] | 26 | MediaCasDefs.cpp \ |
Marco Nelissen | 75571e4 | 2016-11-07 16:34:52 -0800 | [diff] [blame] | 27 | SharedLibrary.cpp |
Jeff Tinker | f3a591c | 2017-02-01 15:42:13 -0800 | [diff] [blame] | 28 | ifneq ($(DISABLE_TREBLE_DRM), true) |
Jeff Tinker | a53d655 | 2017-01-20 00:31:46 -0800 | [diff] [blame] | 29 | LOCAL_SRC_FILES += \ |
| 30 | DrmHal.cpp \ |
| 31 | CryptoHal.cpp |
| 32 | else |
| 33 | LOCAL_SRC_FILES += \ |
| 34 | Drm.cpp \ |
| 35 | Crypto.cpp |
| 36 | endif |
Jeff Tinker | 3003807 | 2016-04-25 13:41:35 -0700 | [diff] [blame] | 37 | |
| 38 | LOCAL_SHARED_LIBRARIES := \ |
Marco Nelissen | 75571e4 | 2016-11-07 16:34:52 -0800 | [diff] [blame] | 39 | libbinder \ |
| 40 | libcutils \ |
| 41 | libdl \ |
| 42 | liblog \ |
| 43 | libmediautils \ |
| 44 | libstagefright_foundation \ |
| 45 | libutils |
Jeff Tinker | f3a591c | 2017-02-01 15:42:13 -0800 | [diff] [blame] | 46 | ifneq ($(DISABLE_TREBLE_DRM), true) |
Jeff Tinker | a53d655 | 2017-01-20 00:31:46 -0800 | [diff] [blame] | 47 | LOCAL_SHARED_LIBRARIES += \ |
| 48 | android.hidl.base@1.0 \ |
| 49 | android.hardware.drm@1.0 \ |
| 50 | libhidlbase \ |
| 51 | libhidlmemory |
| 52 | endif |
Jeff Tinker | 3003807 | 2016-04-25 13:41:35 -0700 | [diff] [blame] | 53 | |
Jeff Tinker | 3003807 | 2016-04-25 13:41:35 -0700 | [diff] [blame] | 54 | LOCAL_CFLAGS += -Werror -Wno-error=deprecated-declarations -Wall |
Jeff Tinker | 3003807 | 2016-04-25 13:41:35 -0700 | [diff] [blame] | 55 | |
| 56 | LOCAL_MODULE:= libmediadrm |
| 57 | |
| 58 | include $(BUILD_SHARED_LIBRARY) |
| 59 | |
| 60 | include $(call all-makefiles-under,$(LOCAL_PATH)) |