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