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