blob: 6997b5a2f1775f980ebec87a1562748cbbeaa881 [file] [log] [blame]
Marco Nelissen1900e772016-02-02 16:12:16 -08001LOCAL_PATH := $(call my-dir)
2
3# service library
4include $(CLEAR_VARS)
5LOCAL_SRC_FILES := MediaCodecService.cpp
Pawin Vongmasa9c47c972017-02-08 04:09:38 -08006LOCAL_SHARED_LIBRARIES := \
Steven Moreland55506402017-06-07 18:18:09 -07007 libmedia_omx \
Pawin Vongmasa9c47c972017-02-08 04:09:38 -08008 libbinder \
Mathias Agopianbc1713d2017-02-13 18:37:50 -08009 libgui \
Pawin Vongmasa9c47c972017-02-08 04:09:38 -080010 libutils \
11 liblog \
12 libstagefright_omx
Marco Nelissen1900e772016-02-02 16:12:16 -080013LOCAL_C_INCLUDES := \
Steven Moreland55506402017-06-07 18:18:09 -070014 frameworks/av/include \
YOUNG HO CHA2ee7aab2017-05-25 23:16:51 +090015 frameworks/av/media/libstagefright \
Steven Moreland55506402017-06-07 18:18:09 -070016 frameworks/av/media/libstagefright/include \
17 frameworks/native/include \
YOUNG HO CHA2ee7aab2017-05-25 23:16:51 +090018 frameworks/native/include/media/openmax
Marco Nelissen1900e772016-02-02 16:12:16 -080019LOCAL_MODULE:= libmediacodecservice
Steven Moreland55506402017-06-07 18:18:09 -070020LOCAL_VENDOR_MODULE := true
Marco Nelissen1900e772016-02-02 16:12:16 -080021LOCAL_32_BIT_ONLY := true
22include $(BUILD_SHARED_LIBRARY)
23
Marco Nelissen1900e772016-02-02 16:12:16 -080024# service executable
25include $(CLEAR_VARS)
Jeff Vander Stoep79234e42017-02-23 10:03:30 -080026LOCAL_REQUIRED_MODULES_arm := mediacodec.policy
Jorge Lucangeli Obesfbfb8e82017-02-14 10:33:41 -050027LOCAL_SRC_FILES := main_codecservice.cpp
Pawin Vongmasa9c47c972017-02-08 04:09:38 -080028LOCAL_SHARED_LIBRARIES := \
Steven Moreland55506402017-06-07 18:18:09 -070029 libmedia_omx \
Pawin Vongmasa9c47c972017-02-08 04:09:38 -080030 libmediacodecservice \
31 libbinder \
32 libutils \
Mathias Agopianbc1713d2017-02-13 18:37:50 -080033 libgui \
Pawin Vongmasa9c47c972017-02-08 04:09:38 -080034 liblog \
35 libbase \
Steven Moreland009578c2017-06-08 11:23:53 -070036 libavservices_minijail_vendor \
Pawin Vongmasa9c47c972017-02-08 04:09:38 -080037 libcutils \
38 libhwbinder \
Steven Morelandf2832c42017-02-21 13:41:39 -080039 libhidltransport \
Pawin Vongmasa04563aa2017-03-09 07:02:01 -080040 libstagefright_omx \
Pawin Vongmasa0d3a5ed2017-02-22 03:19:35 -080041 android.hardware.media.omx@1.0 \
Pawin Vongmasa0d3a5ed2017-02-22 03:19:35 -080042 android.hidl.memory@1.0
Steven Moreland55506402017-06-07 18:18:09 -070043
Marco Nelissen1900e772016-02-02 16:12:16 -080044LOCAL_C_INCLUDES := \
Steven Moreland55506402017-06-07 18:18:09 -070045 frameworks/av/include \
YOUNG HO CHA2ee7aab2017-05-25 23:16:51 +090046 frameworks/av/media/libstagefright \
47 frameworks/av/media/libstagefright/include \
Steven Moreland55506402017-06-07 18:18:09 -070048 frameworks/native/include \
YOUNG HO CHA2ee7aab2017-05-25 23:16:51 +090049 frameworks/native/include/media/openmax
Pawin Vongmasa46584182017-02-27 20:37:22 -080050LOCAL_MODULE := android.hardware.media.omx@1.0-service
51LOCAL_MODULE_RELATIVE_PATH := hw
Steven Moreland55506402017-06-07 18:18:09 -070052LOCAL_VENDOR_MODULE := true
Marco Nelissen1900e772016-02-02 16:12:16 -080053LOCAL_32_BIT_ONLY := true
Pawin Vongmasa46584182017-02-27 20:37:22 -080054LOCAL_INIT_RC := android.hardware.media.omx@1.0-service.rc
Marco Nelissen1900e772016-02-02 16:12:16 -080055include $(BUILD_EXECUTABLE)
56
Jeff Vander Stoep79234e42017-02-23 10:03:30 -080057# service seccomp policy
58ifeq ($(TARGET_ARCH), $(filter $(TARGET_ARCH), arm arm64))
59include $(CLEAR_VARS)
60LOCAL_MODULE := mediacodec.policy
61LOCAL_MODULE_CLASS := ETC
62LOCAL_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
65ifdef TARGET_2ND_ARCH
66 LOCAL_SRC_FILES := seccomp_policy/mediacodec-$(TARGET_2ND_ARCH).policy
67else
68 LOCAL_SRC_FILES := seccomp_policy/mediacodec-$(TARGET_ARCH).policy
69endif
70include $(BUILD_PREBUILT)
71endif
72
Jeff Vander Stoepc9ea2112016-02-17 10:52:20 -080073include $(call all-makefiles-under, $(LOCAL_PATH))