Marco Nelissen | 1900e77 | 2016-02-02 16:12:16 -0800 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| 2 | |
| 3 | # service library |
| 4 | include $(CLEAR_VARS) |
| 5 | LOCAL_SRC_FILES := MediaCodecService.cpp |
Pawin Vongmasa | 9c47c97 | 2017-02-08 04:09:38 -0800 | [diff] [blame] | 6 | LOCAL_SHARED_LIBRARIES := \ |
| 7 | libmedia \ |
| 8 | libbinder \ |
Mathias Agopian | bc1713d | 2017-02-13 18:37:50 -0800 | [diff] [blame] | 9 | libgui \ |
Pawin Vongmasa | 9c47c97 | 2017-02-08 04:09:38 -0800 | [diff] [blame] | 10 | libutils \ |
| 11 | liblog \ |
| 12 | libstagefright_omx |
Marco Nelissen | 1900e77 | 2016-02-02 16:12:16 -0800 | [diff] [blame] | 13 | LOCAL_C_INCLUDES := \ |
YOUNG HO CHA | 2ee7aab | 2017-05-25 23:16:51 +0900 | [diff] [blame] | 14 | frameworks/av/media/libstagefright \ |
| 15 | frameworks/native/include/media/openmax |
Marco Nelissen | 1900e77 | 2016-02-02 16:12:16 -0800 | [diff] [blame] | 16 | LOCAL_MODULE:= libmediacodecservice |
| 17 | LOCAL_32_BIT_ONLY := true |
| 18 | include $(BUILD_SHARED_LIBRARY) |
| 19 | |
| 20 | |
| 21 | # service executable |
| 22 | include $(CLEAR_VARS) |
Jeff Vander Stoep | 79234e4 | 2017-02-23 10:03:30 -0800 | [diff] [blame] | 23 | LOCAL_REQUIRED_MODULES_arm := mediacodec.policy |
Jorge Lucangeli Obes | fbfb8e8 | 2017-02-14 10:33:41 -0500 | [diff] [blame] | 24 | LOCAL_SRC_FILES := main_codecservice.cpp |
Pawin Vongmasa | 9c47c97 | 2017-02-08 04:09:38 -0800 | [diff] [blame] | 25 | LOCAL_SHARED_LIBRARIES := \ |
| 26 | libmedia \ |
| 27 | libmediacodecservice \ |
| 28 | libbinder \ |
| 29 | libutils \ |
Mathias Agopian | bc1713d | 2017-02-13 18:37:50 -0800 | [diff] [blame] | 30 | libgui \ |
Pawin Vongmasa | 9c47c97 | 2017-02-08 04:09:38 -0800 | [diff] [blame] | 31 | liblog \ |
| 32 | libbase \ |
Steven Moreland | 009578c | 2017-06-08 11:23:53 -0700 | [diff] [blame^] | 33 | libavservices_minijail_vendor \ |
Pawin Vongmasa | 9c47c97 | 2017-02-08 04:09:38 -0800 | [diff] [blame] | 34 | libcutils \ |
| 35 | libhwbinder \ |
Steven Moreland | f2832c4 | 2017-02-21 13:41:39 -0800 | [diff] [blame] | 36 | libhidltransport \ |
Pawin Vongmasa | 04563aa | 2017-03-09 07:02:01 -0800 | [diff] [blame] | 37 | libstagefright_omx \ |
Pawin Vongmasa | 0d3a5ed | 2017-02-22 03:19:35 -0800 | [diff] [blame] | 38 | android.hardware.media.omx@1.0 \ |
Pawin Vongmasa | 0d3a5ed | 2017-02-22 03:19:35 -0800 | [diff] [blame] | 39 | android.hidl.memory@1.0 |
Marco Nelissen | 1900e77 | 2016-02-02 16:12:16 -0800 | [diff] [blame] | 40 | LOCAL_C_INCLUDES := \ |
YOUNG HO CHA | 2ee7aab | 2017-05-25 23:16:51 +0900 | [diff] [blame] | 41 | frameworks/av/media/libstagefright \ |
| 42 | frameworks/av/media/libstagefright/include \ |
| 43 | frameworks/native/include/media/openmax |
Pawin Vongmasa | 4658418 | 2017-02-27 20:37:22 -0800 | [diff] [blame] | 44 | LOCAL_MODULE := android.hardware.media.omx@1.0-service |
| 45 | LOCAL_MODULE_RELATIVE_PATH := hw |
| 46 | LOCAL_PROPRIETARY_MODULE := true |
Marco Nelissen | 1900e77 | 2016-02-02 16:12:16 -0800 | [diff] [blame] | 47 | LOCAL_32_BIT_ONLY := true |
Pawin Vongmasa | 4658418 | 2017-02-27 20:37:22 -0800 | [diff] [blame] | 48 | LOCAL_INIT_RC := android.hardware.media.omx@1.0-service.rc |
Marco Nelissen | 1900e77 | 2016-02-02 16:12:16 -0800 | [diff] [blame] | 49 | include $(BUILD_EXECUTABLE) |
| 50 | |
Jeff Vander Stoep | 79234e4 | 2017-02-23 10:03:30 -0800 | [diff] [blame] | 51 | # service seccomp policy |
| 52 | ifeq ($(TARGET_ARCH), $(filter $(TARGET_ARCH), arm arm64)) |
| 53 | include $(CLEAR_VARS) |
| 54 | LOCAL_MODULE := mediacodec.policy |
| 55 | LOCAL_MODULE_CLASS := ETC |
| 56 | LOCAL_MODULE_PATH := $(TARGET_OUT)/etc/seccomp_policy |
| 57 | # mediacodec runs in 32-bit combatibility mode. For 64 bit architectures, |
| 58 | # use the 32 bit policy |
| 59 | ifdef TARGET_2ND_ARCH |
| 60 | LOCAL_SRC_FILES := seccomp_policy/mediacodec-$(TARGET_2ND_ARCH).policy |
| 61 | else |
| 62 | LOCAL_SRC_FILES := seccomp_policy/mediacodec-$(TARGET_ARCH).policy |
| 63 | endif |
| 64 | include $(BUILD_PREBUILT) |
| 65 | endif |
| 66 | |
Jeff Vander Stoep | c9ea211 | 2016-02-17 10:52:20 -0800 | [diff] [blame] | 67 | include $(call all-makefiles-under, $(LOCAL_PATH)) |