2009-03-04 03:31:44 +00:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= \
|
2011-11-18 01:49:17 +00:00
|
|
|
EventThread.cpp \
|
|
|
|
Layer.cpp \
|
|
|
|
LayerBase.cpp \
|
|
|
|
LayerDim.cpp \
|
|
|
|
LayerScreenshot.cpp \
|
|
|
|
DdmConnection.cpp \
|
|
|
|
DisplayHardware/DisplayHardware.cpp \
|
2009-03-04 03:31:44 +00:00
|
|
|
DisplayHardware/DisplayHardwareBase.cpp \
|
2011-11-18 01:49:17 +00:00
|
|
|
DisplayHardware/HWComposer.cpp \
|
|
|
|
DisplayHardware/VSyncBarrier.cpp \
|
|
|
|
DisplayEventConnection.cpp \
|
|
|
|
GLExtensions.cpp \
|
|
|
|
MessageQueue.cpp \
|
|
|
|
SurfaceFlinger.cpp \
|
|
|
|
SurfaceTextureLayer.cpp \
|
|
|
|
Transform.cpp \
|
2011-04-20 21:20:59 +00:00
|
|
|
|
2009-03-04 03:31:44 +00:00
|
|
|
|
2009-04-10 21:24:30 +00:00
|
|
|
LOCAL_CFLAGS:= -DLOG_TAG=\"SurfaceFlinger\"
|
|
|
|
LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
|
2009-03-04 03:31:44 +00:00
|
|
|
|
2012-01-25 00:39:14 +00:00
|
|
|
ifeq ($(TARGET_HAS_WAITFORVSYNC), true)
|
|
|
|
LOCAL_CFLAGS += -DHAS_WAITFORVSYNC
|
|
|
|
endif
|
|
|
|
|
2010-06-30 22:43:47 +00:00
|
|
|
ifeq ($(TARGET_BOARD_PLATFORM), omap3)
|
2010-12-08 03:38:17 +00:00
|
|
|
LOCAL_CFLAGS += -DNO_RGBX_8888
|
2010-06-30 22:43:47 +00:00
|
|
|
endif
|
2011-10-07 22:42:53 +00:00
|
|
|
ifeq ($(TARGET_BOARD_PLATFORM), omap4)
|
|
|
|
LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY
|
2012-01-25 00:39:14 +00:00
|
|
|
LOCAL_CFLAGS += -DUSE_TRIPLE_BUFFERING=1
|
2011-10-07 22:42:53 +00:00
|
|
|
endif
|
2010-10-12 00:54:43 +00:00
|
|
|
ifeq ($(TARGET_BOARD_PLATFORM), s5pc110)
|
2011-07-30 22:06:10 +00:00
|
|
|
LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY -DNEVER_DEFAULT_TO_ASYNC_MODE
|
2010-10-12 00:54:43 +00:00
|
|
|
endif
|
|
|
|
|
2009-03-04 03:31:44 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
2009-07-03 02:04:39 +00:00
|
|
|
libcutils \
|
2009-03-04 03:31:44 +00:00
|
|
|
libhardware \
|
|
|
|
libutils \
|
|
|
|
libEGL \
|
2009-07-03 02:04:39 +00:00
|
|
|
libGLESv1_CM \
|
|
|
|
libbinder \
|
2010-02-10 01:46:37 +00:00
|
|
|
libui \
|
2011-03-26 01:42:40 +00:00
|
|
|
libgui
|
2009-03-04 03:31:44 +00:00
|
|
|
|
2011-08-16 03:44:40 +00:00
|
|
|
# this is only needed for DDMS debugging
|
|
|
|
LOCAL_SHARED_LIBRARIES += libdvm libandroid_runtime
|
|
|
|
|
2009-03-04 03:31:44 +00:00
|
|
|
LOCAL_C_INCLUDES := \
|
|
|
|
$(call include-path-for, corecg graphics)
|
|
|
|
|
2009-06-24 23:55:59 +00:00
|
|
|
LOCAL_C_INCLUDES += hardware/libhardware/modules/gralloc
|
|
|
|
|
2009-03-04 03:31:44 +00:00
|
|
|
LOCAL_MODULE:= libsurfaceflinger
|
|
|
|
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|