From 9375b16344e6744c0cf8f6bd5b8765f2d45d60a2 Mon Sep 17 00:00:00 2001 From: codeworkx Date: Sun, 10 Jun 2012 16:38:12 +0200 Subject: [PATCH] omx: build shared instead of static libs for exynos4x12 Change-Id: Idac85baf743ea26a5953538f8f931908c15ad754 --- .../codecs/video/exynos4/mfc/Android.mk | 81 ++++++++++++++++++- .../component/video/dec/h264/Android.mk | 2 +- .../component/video/dec/mpeg4/Android.mk | 2 +- .../component/video/dec/vc1/Android.mk | 2 +- .../component/video/dec/vp8/Android.mk | 2 +- .../component/video/enc/h264/Android.mk | 2 +- .../component/video/enc/mpeg4/Android.mk | 2 +- 7 files changed, 83 insertions(+), 10 deletions(-) diff --git a/exynos/multimedia/codecs/video/exynos4/mfc/Android.mk b/exynos/multimedia/codecs/video/exynos4/mfc/Android.mk index 629e8d39..2b3bd482 100644 --- a/exynos/multimedia/codecs/video/exynos4/mfc/Android.mk +++ b/exynos/multimedia/codecs/video/exynos4/mfc/Android.mk @@ -8,6 +8,8 @@ LOCAL_COPY_HEADERS := \ include/mfc_interface.h \ include/SsbSipMfcApi.h +LOCAL_MODULE := libsecmfcapi + LOCAL_MODULE_TAGS := optional LOCAL_SRC_FILES := \ @@ -33,10 +35,81 @@ LOCAL_ARM_MODE := arm LOCAL_STATIC_LIBRARIES := LOCAL_SHARED_LIBRARIES := liblog -ifeq ($(TARGET_SOC),exynos4x12) +include $(BUILD_STATIC_LIBRARY) + +# Shared MFC Dec API + +include $(CLEAR_VARS) + +LOCAL_COPY_HEADERS_TO := libsecmm +LOCAL_COPY_HEADERS := \ + include/mfc_errno.h \ + include/mfc_interface.h \ + include/SsbSipMfcApi.h + LOCAL_MODULE := libsecmfcdecapi + +LOCAL_MODULE_TAGS := optional + +LOCAL_SRC_FILES := \ + dec/src/SsbSipMfcDecAPI.c + +LOCAL_C_INCLUDES := \ + $(LOCAL_PATH)/include/ + +LOCAL_PRELINK_MODULE := false + +ifeq ($(BOARD_USES_MFC_FPS),true) +LOCAL_CFLAGS := -DCONFIG_MFC_FPS +#LOCAL_CFLAGS += -DCONFIG_MFC_PERF_LOG +endif + +ifeq ($(BOARD_USE_S3D_SUPPORT), true) +LOCAL_CFLAGS += -DS3D_SUPPORT +endif + +LOCAL_ARM_MODE := arm + +LOCAL_STATIC_LIBRARIES := +LOCAL_SHARED_LIBRARIES := liblog + include $(BUILD_SHARED_LIBRARY) -else -LOCAL_MODULE := libsecmfcapi -include $(BUILD_STATIC_LIBRARY) + +# Shared MFC Enc API + +include $(CLEAR_VARS) + +LOCAL_COPY_HEADERS_TO := libsecmm +LOCAL_COPY_HEADERS := \ + include/mfc_errno.h \ + include/mfc_interface.h \ + include/SsbSipMfcApi.h + +LOCAL_MODULE := libsecmfcencapi + +LOCAL_MODULE_TAGS := optional + +LOCAL_SRC_FILES := \ + enc/src/SsbSipMfcEncAPI.c + +LOCAL_C_INCLUDES := \ + $(LOCAL_PATH)/include/ + +LOCAL_PRELINK_MODULE := false + +ifeq ($(BOARD_USES_MFC_FPS),true) +LOCAL_CFLAGS := -DCONFIG_MFC_FPS +#LOCAL_CFLAGS += -DCONFIG_MFC_PERF_LOG +endif + +ifeq ($(BOARD_USE_S3D_SUPPORT), true) +LOCAL_CFLAGS += -DS3D_SUPPORT endif + +LOCAL_ARM_MODE := arm + +LOCAL_STATIC_LIBRARIES := +LOCAL_SHARED_LIBRARIES := liblog + +include $(BUILD_SHARED_LIBRARY) + diff --git a/exynos/multimedia/openmax/component/video/dec/h264/Android.mk b/exynos/multimedia/openmax/component/video/dec/h264/Android.mk index f491d608..55d65a7f 100644 --- a/exynos/multimedia/openmax/component/video/dec/h264/Android.mk +++ b/exynos/multimedia/openmax/component/video/dec/h264/Android.mk @@ -40,7 +40,7 @@ LOCAL_SHARED_LIBRARIES := libc libdl libcutils libutils libui \ libSEC_OMX_Resourcemanager ifeq ($(TARGET_SOC),exynos4x12) -LOCAL_SHARED_LIBRARIES += libsecmfcdecapi +LOCAL_SHARED_LIBRARIES += libsecmfcdecapi libsecmfcencapi else LOCAL_STATIC_LIBRARIES += libsecmfcapi endif diff --git a/exynos/multimedia/openmax/component/video/dec/mpeg4/Android.mk b/exynos/multimedia/openmax/component/video/dec/mpeg4/Android.mk index 3ea203fe..9c3d412a 100644 --- a/exynos/multimedia/openmax/component/video/dec/mpeg4/Android.mk +++ b/exynos/multimedia/openmax/component/video/dec/mpeg4/Android.mk @@ -34,7 +34,7 @@ LOCAL_SHARED_LIBRARIES := libc libdl libcutils libutils libui \ libSEC_OMX_Resourcemanager ifeq ($(TARGET_SOC),exynos4x12) -LOCAL_SHARED_LIBRARIES += libsecmfcdecapi +LOCAL_SHARED_LIBRARIES += libsecmfcdecapi libsecmfcencapi else LOCAL_STATIC_LIBRARIES += libsecmfcapi endif diff --git a/exynos/multimedia/openmax/component/video/dec/vc1/Android.mk b/exynos/multimedia/openmax/component/video/dec/vc1/Android.mk index 7ca04774..0b30f8c5 100644 --- a/exynos/multimedia/openmax/component/video/dec/vc1/Android.mk +++ b/exynos/multimedia/openmax/component/video/dec/vc1/Android.mk @@ -34,7 +34,7 @@ LOCAL_SHARED_LIBRARIES := libc libdl libcutils libutils libui \ libSEC_OMX_Resourcemanager ifeq ($(TARGET_SOC),exynos4x12) -LOCAL_SHARED_LIBRARIES += libsecmfcdecapi +LOCAL_SHARED_LIBRARIES += libsecmfcdecapi libsecmfcencapi else LOCAL_STATIC_LIBRARIES += libsecmfcapi endif diff --git a/exynos/multimedia/openmax/component/video/dec/vp8/Android.mk b/exynos/multimedia/openmax/component/video/dec/vp8/Android.mk index 734284fc..9cb85a1b 100644 --- a/exynos/multimedia/openmax/component/video/dec/vp8/Android.mk +++ b/exynos/multimedia/openmax/component/video/dec/vp8/Android.mk @@ -29,7 +29,7 @@ LOCAL_SHARED_LIBRARIES := libc libdl libcutils libutils libui \ libSEC_OMX_Resourcemanager ifeq ($(TARGET_SOC),exynos4x12) -LOCAL_SHARED_LIBRARIES += libsecmfcdecapi +LOCAL_SHARED_LIBRARIES += libsecmfcdecapi libsecmfcencapi else LOCAL_STATIC_LIBRARIES += libsecmfcapi endif diff --git a/exynos/multimedia/openmax/component/video/enc/h264/Android.mk b/exynos/multimedia/openmax/component/video/enc/h264/Android.mk index e9ebb605..fa570522 100644 --- a/exynos/multimedia/openmax/component/video/enc/h264/Android.mk +++ b/exynos/multimedia/openmax/component/video/enc/h264/Android.mk @@ -29,7 +29,7 @@ LOCAL_SHARED_LIBRARIES := libc libdl libcutils libutils libui \ libSEC_OMX_Resourcemanager ifeq ($(TARGET_SOC),exynos4x12) -LOCAL_SHARED_LIBRARIES += libsecmfcdecapi +LOCAL_SHARED_LIBRARIES += libsecmfcdecapi libsecmfcencapi else LOCAL_STATIC_LIBRARIES += libsecmfcapi endif diff --git a/exynos/multimedia/openmax/component/video/enc/mpeg4/Android.mk b/exynos/multimedia/openmax/component/video/enc/mpeg4/Android.mk index ed140d12..d14f61a4 100644 --- a/exynos/multimedia/openmax/component/video/enc/mpeg4/Android.mk +++ b/exynos/multimedia/openmax/component/video/enc/mpeg4/Android.mk @@ -29,7 +29,7 @@ LOCAL_SHARED_LIBRARIES := libc libdl libcutils libutils libui \ libSEC_OMX_Resourcemanager ifeq ($(TARGET_SOC),exynos4x12) -LOCAL_SHARED_LIBRARIES += libsecmfcdecapi +LOCAL_SHARED_LIBRARIES += libsecmfcdecapi libsecmfcencapi else LOCAL_STATIC_LIBRARIES += libsecmfcapi endif