Jeff Tinker | a69729d | 2016-02-12 08:47:00 -0800 | [diff] [blame] | 1 | # Copyright 2014 The Android Open Source Project |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | LOCAL_PATH:= $(call my-dir) |
| 16 | |
| 17 | include $(CLEAR_VARS) |
| 18 | |
Jeff Tinker | a69729d | 2016-02-12 08:47:00 -0800 | [diff] [blame] | 19 | LOCAL_SRC_FILES:= \ |
| 20 | MediaDrmService.cpp \ |
| 21 | main_mediadrmserver.cpp |
| 22 | |
Marco Nelissen | 55b259c | 2019-09-27 10:21:55 -0700 | [diff] [blame] | 23 | LOCAL_HEADER_LIBRARIES:= \ |
Marco Nelissen | 6b28594 | 2019-10-21 14:52:30 -0700 | [diff] [blame] | 24 | libmedia_headers \ |
Marco Nelissen | 55b259c | 2019-09-27 10:21:55 -0700 | [diff] [blame] | 25 | libmediadrm_headers |
| 26 | |
Jeff Tinker | a69729d | 2016-02-12 08:47:00 -0800 | [diff] [blame] | 27 | LOCAL_SHARED_LIBRARIES:= \ |
Jeff Tinker | a69729d | 2016-02-12 08:47:00 -0800 | [diff] [blame] | 28 | libbinder \ |
Jeff Tinker | 3003807 | 2016-04-25 13:41:35 -0700 | [diff] [blame] | 29 | liblog \ |
Robert Shih | 79673cf | 2019-09-20 21:45:01 -0700 | [diff] [blame] | 30 | libmedia \ |
Jeff Tinker | 3003807 | 2016-04-25 13:41:35 -0700 | [diff] [blame] | 31 | libmediadrm \ |
Jeff Tinker | 99a5aba | 2017-04-24 15:20:53 -0700 | [diff] [blame] | 32 | libutils \ |
Jeff Tinker | a53d655 | 2017-01-20 00:31:46 -0800 | [diff] [blame] | 33 | libhidlbase \ |
| 34 | libhidlmemory \ |
Jeff Tinker | 6d998b6 | 2017-12-18 14:37:43 -0800 | [diff] [blame] | 35 | android.hardware.drm@1.0 \ |
Jeff Tinker | c8baaba | 2018-10-23 11:32:36 -0700 | [diff] [blame] | 36 | android.hardware.drm@1.1 \ |
| 37 | android.hardware.drm@1.2 |
Jeff Tinker | a69729d | 2016-02-12 08:47:00 -0800 | [diff] [blame] | 38 | |
Aurimas Liutikas | c903684 | 2016-02-18 15:58:04 -0800 | [diff] [blame] | 39 | LOCAL_CFLAGS += -Wall -Wextra -Werror |
| 40 | |
Jeff Tinker | a69729d | 2016-02-12 08:47:00 -0800 | [diff] [blame] | 41 | LOCAL_MODULE:= mediadrmserver |
John W. Bruce | e9fec54 | 2017-03-13 16:29:28 -0700 | [diff] [blame] | 42 | |
| 43 | # TODO: Some legacy DRM plugins only support 32-bit. They need to be migrated to |
| 44 | # 64-bit. (b/18948909) Once all of a device's legacy DRM plugins support 64-bit, |
John W. Bruce | 6527a56 | 2017-04-27 12:06:44 -0700 | [diff] [blame] | 45 | # that device can turn on TARGET_ENABLE_MEDIADRM_64 to build this service as |
| 46 | # 64-bit. |
| 47 | ifneq ($(TARGET_ENABLE_MEDIADRM_64), true) |
Jeff Tinker | a69729d | 2016-02-12 08:47:00 -0800 | [diff] [blame] | 48 | LOCAL_32_BIT_ONLY := true |
John W. Bruce | e9fec54 | 2017-03-13 16:29:28 -0700 | [diff] [blame] | 49 | endif |
Jeff Tinker | a69729d | 2016-02-12 08:47:00 -0800 | [diff] [blame] | 50 | |
| 51 | LOCAL_INIT_RC := mediadrmserver.rc |
| 52 | |
| 53 | include $(BUILD_EXECUTABLE) |