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