diff --git a/Android.mk b/Android.mk index 1d1920f7..22cf6c07 100644 --- a/Android.mk +++ b/Android.mk @@ -1,3 +1,5 @@ +ifeq ($(call my-dir),$(call project-path-for,qcom-media)) + QCOM_MEDIA_ROOT := $(call my-dir) #Compile these for all targets under QCOM_BOARD_PLATFORMS list. @@ -11,3 +13,5 @@ include $(QCOM_MEDIA_ROOT)/libplatformconfig/Android.mk include $(QCOM_MEDIA_ROOT)/mm-video-v4l2/Android.mk include $(QCOM_MEDIA_ROOT)/libc2dcolorconvert/Android.mk endif + +endif diff --git a/mm-video-v4l2/vidc/common/Android.mk b/mm-video-v4l2/vidc/common/Android.mk index 5e85a120..dcffe659 100644 --- a/mm-video-v4l2/vidc/common/Android.mk +++ b/mm-video-v4l2/vidc/common/Android.mk @@ -21,9 +21,9 @@ libmm-vidc-def += -D_ANDROID_ICS_ # --------------------------------------------------------------------------------- libmm-vidc-inc := $(LOCAL_PATH)/inc -libmm-vidc-inc += $(TOP)/hardware/qcom/media/mm-core/inc +libmm-vidc-inc += $(TOP)/$(call project-path-for,qcom-media)/mm-core/inc libmm-vidc-inc += $(TARGET_OUT_HEADERS)/qcom/display -libmm-vidc-inc += $(TOP)/hardware/qcom/media/libc2dcolorconvert +libmm-vidc-inc += $(TOP)/$(call project-path-for,qcom-media)/libc2dcolorconvert libmm-vidc-inc += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include LOCAL_MODULE := libOmxVidcCommon diff --git a/mm-video-v4l2/vidc/vdec/Android.mk b/mm-video-v4l2/vidc/vdec/Android.mk index b180a4b8..6d41813e 100644 --- a/mm-video-v4l2/vidc/vdec/Android.mk +++ b/mm-video-v4l2/vidc/vdec/Android.mk @@ -55,19 +55,19 @@ include $(CLEAR_VARS) # Common Includes libmm-vdec-inc := $(LOCAL_PATH)/inc -libmm-vdec-inc += $(TOP)/hardware/qcom/media/mm-video-v4l2/vidc/common/inc -libmm-vdec-inc += $(TOP)/hardware/qcom/media/mm-core/inc -libmm-vdec-inc += hardware/qcom/media/libplatformconfig +libmm-vdec-inc += $(call project-path-for,qcom-media)/mm-video-v4l2/vidc/common/inc +libmm-vdec-inc += $(call project-path-for,qcom-media)/mm-core/inc +libmm-vdec-inc += $(call project-path-for,qcom-media)/libplatformconfig libmm-vdec-inc += $(TARGET_OUT_HEADERS)/qcom/display libmm-vdec-inc += $(TARGET_OUT_HEADERS)/adreno -libmm-vdec-inc += $(TOP)/hardware/qcom/media/libc2dcolorconvert +libmm-vdec-inc += $(call project-path-for,qcom-media)/libc2dcolorconvert libmm-vdec-inc += $(TARGET_OUT_HEADERS)/mm-video/SwVdec libmm-vdec-inc += $(TARGET_OUT_HEADERS)/mm-video/swvdec libmm-vdec-inc += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include ifeq ($(PLATFORM_SDK_VERSION), 18) #JB_MR2 libmm-vdec-def += -DANDROID_JELLYBEAN_MR2=1 -libmm-vdec-inc += $(TOP)/hardware/qcom/media/libstagefrighthw +libmm-vdec-inc += $(call project-path-for,qcom-media)/libstagefrighthw endif # Common Dependencies diff --git a/mm-video-v4l2/vidc/venc/Android.mk b/mm-video-v4l2/vidc/venc/Android.mk index 8059f84c..7d512c20 100644 --- a/mm-video-v4l2/vidc/venc/Android.mk +++ b/mm-video-v4l2/vidc/venc/Android.mk @@ -57,13 +57,13 @@ libmm-venc-def += -DUSE_CAMERA_METABUFFER_UTILS # Common Includes libmm-venc-inc := $(LOCAL_PATH)/inc -libmm-venc-inc += $(TOP)/hardware/qcom/media/mm-video-v4l2/vidc/common/inc -libmm-venc-inc += hardware/qcom/media/mm-core/inc -libmm-venc-inc += hardware/qcom/media/libstagefrighthw -libmm-venc-inc += hardware/qcom/media/libplatformconfig +libmm-venc-inc += $(call project-path-for,qcom-media)/mm-video-v4l2/vidc/common/inc +libmm-venc-inc += $(call project-path-for,qcom-media)/mm-core/inc +libmm-venc-inc += $(call project-path-for,qcom-media)/libstagefrighthw +libmm-venc-inc += $(call project-path-for,qcom-media)/libplatformconfig libmm-venc-inc += $(TARGET_OUT_HEADERS)/qcom/display libmm-venc-inc += $(TARGET_OUT_HEADERS)/adreno -libmm-venc-inc += hardware/qcom/media/libc2dcolorconvert +libmm-venc-inc += $(call project-path-for,qcom-media)/libc2dcolorconvert libmm-venc-inc += $(TARGET_OUT_HEADERS)/libvqzip libmm-venc-inc += $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ/usr/include