From 0d6b6855013e5407184ab55b8a9cba433f9d2998 Mon Sep 17 00:00:00 2001 From: "Arun Kumar K.R" Date: Mon, 13 Aug 2012 13:22:49 -0700 Subject: [PATCH] hwcomposer: Make file changes create separate lib for hwcexternal and ihwcservice Change-Id: Ie55b9e98eaf62d4aa2cb9f422a75f8195bfd6060 --- libhwcomposer/Android.mk | 36 +++++++++++++++++++++++++++++++----- 1 file changed, 31 insertions(+), 5 deletions(-) diff --git a/libhwcomposer/Android.mk b/libhwcomposer/Android.mk index 63d2ea8..b4853da 100644 --- a/libhwcomposer/Android.mk +++ b/libhwcomposer/Android.mk @@ -6,8 +6,8 @@ LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw LOCAL_MODULE_TAGS := optional LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) LOCAL_SHARED_LIBRARIES := $(common_libs) libEGL liboverlay libgenlock \ - libqdutils libhardware_legacy libdl \ - libmemalloc libbinder + libhwcexternal libqdutils libhardware_legacy \ + libdl libmemalloc libhwcservice LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"hwcomposer\" LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) @@ -15,12 +15,38 @@ LOCAL_SRC_FILES := hwc.cpp \ hwc_video.cpp \ hwc_utils.cpp \ hwc_uimirror.cpp \ - hwc_external.cpp \ hwc_uevents.cpp \ hwc_copybit.cpp \ hwc_mdpcomp.cpp \ - hwc_service.cpp \ - ihwc.cpp \ hwc_extonly.cpp include $(BUILD_SHARED_LIBRARY) + +#libhwcexternal library +include $(CLEAR_VARS) +LOCAL_MODULE := libhwcexternal +LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES) +LOCAL_MODULE_TAGS := optional +LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) +LOCAL_SHARED_LIBRARIES := $(common_libs) liboverlay + +LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"hwcexternal\" +LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) +LOCAL_SRC_FILES := hwc_external.cpp + +include $(BUILD_SHARED_LIBRARY) + +#libhwcservice library +include $(CLEAR_VARS) +LOCAL_MODULE := libhwcservice +LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES) +LOCAL_MODULE_TAGS := optional +LOCAL_C_INCLUDES := $(common_includes) $(kernel_includes) +LOCAL_SHARED_LIBRARIES := $(common_libs) libhwcexternal libbinder \ + +LOCAL_CFLAGS := $(common_flags) -DLOG_TAG=\"hwcservice\" +LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps) +LOCAL_SRC_FILES := hwc_service.cpp \ + ihwc.cpp + +include $(BUILD_SHARED_LIBRARY)