Skip to content

Commit

Permalink
media: Use project pathmap
Browse files Browse the repository at this point in the history
Change-Id: I4f2e1f666deded6d53f23c97718b4246b48cf780
  • Loading branch information
intervigilium authored and bgcngm committed Feb 28, 2019
1 parent 54eff12 commit f92f76b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
4 changes: 4 additions & 0 deletions Android.mk
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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
4 changes: 2 additions & 2 deletions mm-video-v4l2/vidc/common/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions mm-video-v4l2/vidc/vdec/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions mm-video-v4l2/vidc/venc/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f92f76b

Please sign in to comment.