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 |
| 24 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 25 | LOCAL_SRC_FILES := \ |
| 26 | service.cpp \ |
| 27 | |
| 28 | LOCAL_SHARED_LIBRARIES := \ |
Jeff Tinker | da002fe | 2017-01-19 14:41:11 -0800 | [diff] [blame] | 29 | android.hardware.drm@1.0 \ |
| 30 | android.hidl.memory@1.0 \ |
Jeff Tinker | d59d362 | 2016-12-16 01:34:52 -0800 | [diff] [blame] | 31 | libhidlbase \ |
| 32 | libhidltransport \ |
Jeff Tinker | d59d362 | 2016-12-16 01:34:52 -0800 | [diff] [blame] | 33 | libhardware \ |
Jeff Tinker | da002fe | 2017-01-19 14:41:11 -0800 | [diff] [blame] | 34 | libhwbinder \ |
| 35 | liblog \ |
| 36 | libutils \ |
Jeff Tinker | d59d362 | 2016-12-16 01:34:52 -0800 | [diff] [blame] | 37 | |
| 38 | LOCAL_C_INCLUDES := \ |
| 39 | hardware/interfaces/drm |
| 40 | |
| 41 | # TODO: The legacy DRM plugins only support 32-bit. They need |
| 42 | # to be migrated to 64-bit (b/18948909) |
| 43 | LOCAL_32_BIT_ONLY := true |
| 44 | |
| 45 | include $(BUILD_EXECUTABLE) |
Jeff Tinker | da002fe | 2017-01-19 14:41:11 -0800 | [diff] [blame] | 46 | |
| 47 | ############# Build legacy drm impl library ############ |
| 48 | |
| 49 | include $(CLEAR_VARS) |
| 50 | LOCAL_MODULE := android.hardware.drm@1.0-impl |
| 51 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 52 | LOCAL_SRC_FILES := \ |
| 53 | DrmFactory.cpp \ |
| 54 | DrmPlugin.cpp \ |
| 55 | CryptoFactory.cpp \ |
| 56 | CryptoPlugin.cpp \ |
| 57 | TypeConvert.cpp \ |
| 58 | |
| 59 | LOCAL_SHARED_LIBRARIES := \ |
| 60 | android.hardware.drm@1.0 \ |
| 61 | android.hidl.memory@1.0 \ |
| 62 | libhidlbase \ |
| 63 | libhidlmemory \ |
| 64 | libhidltransport \ |
| 65 | libhwbinder \ |
| 66 | liblog \ |
| 67 | libmediadrm \ |
| 68 | libstagefright_foundation \ |
| 69 | libutils \ |
| 70 | |
| 71 | LOCAL_C_INCLUDES := \ |
| 72 | frameworks/native/include \ |
| 73 | frameworks/av/include |
| 74 | |
| 75 | # TODO: The legacy DRM plugins only support 32-bit. They need |
| 76 | # to be migrated to 64-bit (b/18948909) |
| 77 | LOCAL_32_BIT_ONLY := true |
| 78 | |
| 79 | include $(BUILD_SHARED_LIBRARY) |