Define HDMI_AS_PRIMARY flag based on TARGET_USE_HDMI_AS_PRIMARY

S3D code is being conditionally compiled with HDMI_AS_PRIMARY.
So it is necessary to enable this flag, if board file indicates
HDMI as primary display

(cherry picked from commit dfc3782b8f23a6aadec9fd7501807778b0d3c542)

Change-Id: I3f6f84d76a3f7f5a3f83aa5ec31012b13b16431b
This commit is contained in:
Neti Ravi Kumar 2012-02-07 11:15:58 +05:30 committed by Andrew Sutherland
parent 34e2e00e43
commit 022c7668c4

View File

@ -33,7 +33,7 @@ ifeq ($(TARGET_HAVE_BYPASS),true)
LOCAL_CFLAGS += -DCOMPOSITION_BYPASS
endif
ifeq ($(TARGET_USE_HDMI_AS_PRIMARY),true)
#LOCAL_CFLAGS += -DHDMI_AS_PRIMARY
LOCAL_CFLAGS += -DHDMI_AS_PRIMARY
endif
LOCAL_MODULE_TAGS := optional
include $(BUILD_SHARED_LIBRARY)