diff options
Diffstat (limited to 'common.mk')
-rw-r--r-- | common.mk | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -1,5 +1,14 @@ #Common headers display_top := $(call my-dir) +display_config_version := $(shell \ + if [ -d "$(QC_OPEN_PATH)/interfaces/vendor/display/config/1.1" ];\ + then echo DISPLAY_CONFIG_1_1; fi) +display_config_version := $(shell \ + if [ -d "$(QC_OPEN_PATH)/interfaces/vendor/display/config/1.2" ];\ + then echo DISPLAY_CONFIG_1_2; fi) +display_config_version := $(shell \ + if [ -d "$(QC_OPEN_PATH)/interfaces/vendor/display/config/1.3" ];\ + then echo DISPLAY_CONFIG_1_3; fi) #Common C flags common_flags := -Wno-missing-field-initializers @@ -13,6 +22,12 @@ endif ifeq ($(display_config_version), DISPLAY_CONFIG_1_1) common_flags += -DDISPLAY_CONFIG_1_1 endif +ifeq ($(display_config_version), DISPLAY_CONFIG_1_2) + common_flags += -DDISPLAY_CONFIG_1_2 -DDISPLAY_CONFIG_1_1 +endif +ifeq ($(display_config_version), DISPLAY_CONFIG_1_3) + common_flags += -DDISPLAY_CONFIG_1_1 -DDISPLAY_CONFIG_1_2 -DDISPLAY_CONFIG_1_3 +endif ifeq ($(TARGET_USES_COLOR_METADATA), true) common_flags += -DUSE_COLOR_METADATA @@ -36,6 +51,10 @@ ifeq ($(TARGET_USES_HWC2), true) common_flags += -DVIDEO_MODE_DEFER_RETIRE_FENCE endif +ifeq ($(TARGET_USES_NV21_CAMERA_PREVIEW),true) + common_flags += -DUSE_NV21_CAMERA_PREVIEW +endif + ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) common_flags += -DUSER_DEBUG endif |