LOCAL_SRC_FILES := \
autolock.cpp \
drmresources.cpp \
+ drmcomposition.cpp \
+ drmcompositor.cpp \
+ drmcompositorworker.cpp \
drmconnector.cpp \
drmcrtc.cpp \
drmdisplaycomposition.cpp \
drmdisplaycompositor.cpp \
drmencoder.cpp \
drmeventlistener.cpp \
- drmhwctwo.cpp \
drmmode.cpp \
drmplane.cpp \
drmproperty.cpp \
virtualcompositorworker.cpp \
vsyncworker.cpp
+ifeq ($(strip $(TARGET_USES_HWC2)),true)
+LOCAL_SRC_FILES += drmhwctwo.cpp
LOCAL_CPPFLAGS += \
-DHWC2_USE_CPP11 \
-DHWC2_INCLUDE_STRINGIFICATION
+else
+LOCAL_SRC_FILES += hwcomposer.cpp
+endif
ifeq ($(TARGET_PRODUCT),hikey960)