Jeff Tinker | d59d362 | 2016-12-16 01:34:52 -0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2016 The Android Open Source Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | |
Jeff Tinker | da002fe | 2017-01-19 14:41:11 -0800 | [diff] [blame] | 17 | ############# Build legacy drm service ############ |
| 18 | |
Jeff Tinker | d59d362 | 2016-12-16 01:34:52 -0800 | [diff] [blame] | 19 | LOCAL_PATH := $(call my-dir) |
| 20 | |
| 21 | include $(CLEAR_VARS) |
| 22 | LOCAL_MODULE := android.hardware.drm@1.0-service |
| 23 | LOCAL_INIT_RC := android.hardware.drm@1.0-service.rc |
Steven Moreland | a0da1a1 | 2017-02-13 09:59:06 -0800 | [diff] [blame] | 24 | LOCAL_PROPRIETARY_MODULE := true |
Jeff Tinker | d59d362 | 2016-12-16 01:34:52 -0800 | [diff] [blame] | 25 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 26 | LOCAL_SRC_FILES := \ |
| 27 | service.cpp \ |
| 28 | |
| 29 | LOCAL_SHARED_LIBRARIES := \ |
Jeff Tinker | da002fe | 2017-01-19 14:41:11 -0800 | [diff] [blame] | 30 | android.hardware.drm@1.0 \ |
| 31 | android.hidl.memory@1.0 \ |
Jeff Tinker | d59d362 | 2016-12-16 01:34:52 -0800 | [diff] [blame] | 32 | libhidlbase \ |
| 33 | libhidltransport \ |
Jeff Tinker | d59d362 | 2016-12-16 01:34:52 -0800 | [diff] [blame] | 34 | libhardware \ |
Jeff Tinker | da002fe | 2017-01-19 14:41:11 -0800 | [diff] [blame] | 35 | liblog \ |
| 36 | libutils \ |
Iliyan Malchev | 136b5e4 | 2017-04-14 00:15:09 -0700 | [diff] [blame] | 37 | libbinder \ |
Jeff Tinker | d59d362 | 2016-12-16 01:34:52 -0800 | [diff] [blame] | 38 | |
Jiyong Park | acfcb30 | 2017-06-19 22:06:41 +0900 | [diff] [blame] | 39 | LOCAL_STATIC_LIBRARIES := \ |
| 40 | android.hardware.drm@1.0-helper \ |
| 41 | |
Jeff Tinker | d59d362 | 2016-12-16 01:34:52 -0800 | [diff] [blame] | 42 | LOCAL_C_INCLUDES := \ |
| 43 | hardware/interfaces/drm |
| 44 | |
John W. Bruce | fcde9ff | 2017-03-23 22:40:17 -0700 | [diff] [blame] | 45 | # TODO(b/18948909) Some legacy DRM plugins only support 32-bit. They need to be |
| 46 | # migrated to 64-bit. Once all of a device's legacy DRM plugins support 64-bit, |
John W. Bruce | 467c0db | 2017-04-27 12:06:29 -0700 | [diff] [blame] | 47 | # that device can turn on TARGET_ENABLE_MEDIADRM_64 to build this service as |
| 48 | # 64-bit. |
| 49 | ifneq ($(TARGET_ENABLE_MEDIADRM_64), true) |
Jeff Tinker | d59d362 | 2016-12-16 01:34:52 -0800 | [diff] [blame] | 50 | LOCAL_32_BIT_ONLY := true |
John W. Bruce | fcde9ff | 2017-03-23 22:40:17 -0700 | [diff] [blame] | 51 | endif |
Jeff Tinker | d59d362 | 2016-12-16 01:34:52 -0800 | [diff] [blame] | 52 | |
| 53 | include $(BUILD_EXECUTABLE) |
Jeff Tinker | da002fe | 2017-01-19 14:41:11 -0800 | [diff] [blame] | 54 | |
| 55 | ############# Build legacy drm impl library ############ |
| 56 | |
| 57 | include $(CLEAR_VARS) |
| 58 | LOCAL_MODULE := android.hardware.drm@1.0-impl |
Steven Moreland | a0da1a1 | 2017-02-13 09:59:06 -0800 | [diff] [blame] | 59 | LOCAL_PROPRIETARY_MODULE := true |
Jeff Tinker | da002fe | 2017-01-19 14:41:11 -0800 | [diff] [blame] | 60 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 61 | LOCAL_SRC_FILES := \ |
| 62 | DrmFactory.cpp \ |
| 63 | DrmPlugin.cpp \ |
| 64 | CryptoFactory.cpp \ |
| 65 | CryptoPlugin.cpp \ |
John W. Bruce | fcde9ff | 2017-03-23 22:40:17 -0700 | [diff] [blame] | 66 | LegacyPluginPath.cpp \ |
Jeff Tinker | da002fe | 2017-01-19 14:41:11 -0800 | [diff] [blame] | 67 | TypeConvert.cpp \ |
| 68 | |
| 69 | LOCAL_SHARED_LIBRARIES := \ |
| 70 | android.hardware.drm@1.0 \ |
| 71 | android.hidl.memory@1.0 \ |
John W. Bruce | fcde9ff | 2017-03-23 22:40:17 -0700 | [diff] [blame] | 72 | libcutils \ |
Jeff Tinker | da002fe | 2017-01-19 14:41:11 -0800 | [diff] [blame] | 73 | libhidlbase \ |
| 74 | libhidlmemory \ |
| 75 | libhidltransport \ |
Jeff Tinker | da002fe | 2017-01-19 14:41:11 -0800 | [diff] [blame] | 76 | liblog \ |
Jeff Tinker | da002fe | 2017-01-19 14:41:11 -0800 | [diff] [blame] | 77 | libstagefright_foundation \ |
| 78 | libutils \ |
| 79 | |
Jiyong Park | acfcb30 | 2017-06-19 22:06:41 +0900 | [diff] [blame] | 80 | LOCAL_STATIC_LIBRARIES := \ |
| 81 | android.hardware.drm@1.0-helper \ |
| 82 | |
Jeff Tinker | da002fe | 2017-01-19 14:41:11 -0800 | [diff] [blame] | 83 | LOCAL_C_INCLUDES := \ |
| 84 | frameworks/native/include \ |
| 85 | frameworks/av/include |
| 86 | |
John W. Bruce | fcde9ff | 2017-03-23 22:40:17 -0700 | [diff] [blame] | 87 | # TODO: Some legacy DRM plugins only support 32-bit. They need to be migrated to |
| 88 | # 64-bit. (b/18948909) Once all of a device's legacy DRM plugins support 64-bit, |
John W. Bruce | 467c0db | 2017-04-27 12:06:29 -0700 | [diff] [blame] | 89 | # that device can turn on TARGET_ENABLE_MEDIADRM_64 to build this impl as |
| 90 | # 64-bit. |
| 91 | ifneq ($(TARGET_ENABLE_MEDIADRM_64), true) |
Jeff Tinker | da002fe | 2017-01-19 14:41:11 -0800 | [diff] [blame] | 92 | LOCAL_32_BIT_ONLY := true |
John W. Bruce | fcde9ff | 2017-03-23 22:40:17 -0700 | [diff] [blame] | 93 | endif |
Jeff Tinker | da002fe | 2017-01-19 14:41:11 -0800 | [diff] [blame] | 94 | |
| 95 | include $(BUILD_SHARED_LIBRARY) |