Skip to content

Commit

Permalink
Android.mk: makefile fixes
Browse files Browse the repository at this point in the history
* Deprecate LOCAL_COPY_HEADERS on newer builds
* Use a display header export path instead

Change-Id: Iee5cf1d320a655e6c45b38191681f2d697f07ec9
  • Loading branch information
Nirmal Abraham authored and Gerrit - the friendly Code Review server committed Oct 30, 2017
1 parent 8151fc8 commit 010f63b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 7 deletions.
21 changes: 14 additions & 7 deletions common.mk
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
#Common headers
common_includes := $(LOCAL_PATH)/../libgralloc
common_includes += $(LOCAL_PATH)/../liboverlay
common_includes += $(LOCAL_PATH)/../libcopybit
common_includes += $(LOCAL_PATH)/../libqdutils
common_includes += $(LOCAL_PATH)/../libhwcomposer
common_includes += $(LOCAL_PATH)/../libhdmi
common_includes += $(LOCAL_PATH)/../libqservice
display_top := $(call my-dir)

#Common headers
common_includes := $(display_top)/libgralloc
common_includes += $(display_top)/liboverlay
common_includes += $(display_top)/libcopybit
common_includes += $(display_top)/libqdutils
common_includes += $(display_top)/libhwcomposer
common_includes += $(display_top)/libhdmi
common_includes += $(display_top)/libqservice
common_includes += $(display_top)/include

common_header_export_path := qcom/display

Expand Down Expand Up @@ -37,6 +41,9 @@ ifeq ($(TARGET_USES_QCOM_BSP),true)
common_flags += -DQTI_BSP
common_includes += vendor/qcom/opensource/display-frameworks/include
endif

common_flags += -isystem $(TARGET_OUT_HEADERS)/qcom/display

ifneq ($(call is-platform-sdk-version-at-least,18),true)
common_flags += -DANDROID_JELLYBEAN_MR1=1
endif
Expand Down
15 changes: 15 additions & 0 deletions include/Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
LOCAL_PATH:= $(call my-dir)
include $(LOCAL_PATH)/../common.mk
include $(CLEAR_VARS)
#TODO move all exported headers to this directory
LOCAL_MODULE := display_headers
LOCAL_EXPORT_C_INCLUDE_DIRS := $(display_top)/libcopybit \
$(display_top)/libqdutils \
$(display_top)/libqservice \

ifeq ($(TARGET_USES_GRALLOC1), true)
LOCAL_EXPORT_C_INCLUDE_DIRS += $(display_top)/libgralloc1
else
LOCAL_EXPORT_C_INCLUDE_DIRS += $(display_top)/libgralloc
endif
include $(BUILD_HEADER_LIBRARY)

0 comments on commit 010f63b

Please sign in to comment.