1 LOCAL_PATH := $(call my-dir) 2 3 # service library 4 include $(CLEAR_VARS) 5 LOCAL_SRC_FILES := MediaCodecService.cpp 6 LOCAL_SHARED_LIBRARIES := libmedia libbinder libutils liblog libstagefright_omx 7 LOCAL_C_INCLUDES := \ 8 $(TOP)/frameworks/av/media/libstagefright \ 9 $(TOP)/frameworks/native/include/media/openmax 10 LOCAL_MODULE:= libmediacodecservice 11 LOCAL_32_BIT_ONLY := true 12 include $(BUILD_SHARED_LIBRARY) 13 14 15 # service executable 16 include $(CLEAR_VARS) 17 LOCAL_REQUIRED_MODULES_arm := mediacodec-seccomp.policy 18 LOCAL_SRC_FILES := main_codecservice.cpp minijail/minijail.cpp 19 LOCAL_SHARED_LIBRARIES := libmedia libmediacodecservice libbinder libutils \ 20 liblog libminijail 21 LOCAL_C_INCLUDES := \ 22 $(TOP)/frameworks/av/media/libstagefright \ 23 $(TOP)/frameworks/native/include/media/openmax 24 LOCAL_MODULE:= mediacodec 25 LOCAL_32_BIT_ONLY := true 26 LOCAL_INIT_RC := mediacodec.rc 27 include $(BUILD_EXECUTABLE) 28 29 include $(call all-makefiles-under, $(LOCAL_PATH)) 30 31