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:= \ |
Chong Zhang | 9dbe9a5 | 2017-01-03 11:35:15 -0800 | [diff] [blame] | 20 | MediaCasService.cpp \ |
Jeff Tinker | a69729d | 2016-02-12 08:47:00 -0800 | [diff] [blame] | 21 | MediaDrmService.cpp \ |
| 22 | main_mediadrmserver.cpp |
| 23 | |
| 24 | LOCAL_SHARED_LIBRARIES:= \ |
Jeff Tinker | a69729d | 2016-02-12 08:47:00 -0800 | [diff] [blame] | 25 | libbinder \ |
Jeff Tinker | 3003807 | 2016-04-25 13:41:35 -0700 | [diff] [blame] | 26 | liblog \ |
Jeff Tinker | 3003807 | 2016-04-25 13:41:35 -0700 | [diff] [blame] | 27 | libmediadrm \ |
Jeff Tinker | 70537c1 | 2017-01-31 11:48:06 -0800 | [diff] [blame] | 28 | libutils |
Jeff Tinker | f3a591c | 2017-02-01 15:42:13 -0800 | [diff] [blame] | 29 | ifneq ($(DISABLE_TREBLE_DRM), true) |
Jeff Tinker | a53d655 | 2017-01-20 00:31:46 -0800 | [diff] [blame] | 30 | LOCAL_SHARED_LIBRARIES += \ |
| 31 | libhidlbase \ |
| 32 | libhidlmemory \ |
| 33 | android.hidl.base@1.0 \ |
| 34 | android.hardware.drm@1.0 |
| 35 | endif |
Jeff Tinker | a69729d | 2016-02-12 08:47:00 -0800 | [diff] [blame] | 36 | |
Aurimas Liutikas | c903684 | 2016-02-18 15:58:04 -0800 | [diff] [blame] | 37 | LOCAL_CFLAGS += -Wall -Wextra -Werror |
Jeff Tinker | f3a591c | 2017-02-01 15:42:13 -0800 | [diff] [blame] | 38 | ifeq ($(DISABLE_TREBLE_DRM), true) |
| 39 | LOCAL_CFLAGS += -DDISABLE_TREBLE_DRM=1 |
Jeff Tinker | a53d655 | 2017-01-20 00:31:46 -0800 | [diff] [blame] | 40 | endif |
Aurimas Liutikas | c903684 | 2016-02-18 15:58:04 -0800 | [diff] [blame] | 41 | |
Jeff Tinker | a69729d | 2016-02-12 08:47:00 -0800 | [diff] [blame] | 42 | LOCAL_MODULE:= mediadrmserver |
John W. Bruce | e9fec54 | 2017-03-13 16:29:28 -0700 | [diff] [blame^] | 43 | |
| 44 | # TODO: Some legacy DRM plugins only support 32-bit. They need to be migrated to |
| 45 | # 64-bit. (b/18948909) Once all of a device's legacy DRM plugins support 64-bit, |
| 46 | # that device can turn on ENABLE_MEDIADRM_64 to build this service as 64-bit. |
| 47 | ifneq ($(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) |