2009-03-04 03:31:44 +00:00
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES:= \
|
2013-03-14 21:29:29 +00:00
|
|
|
Client.cpp \
|
|
|
|
DisplayDevice.cpp \
|
|
|
|
EventThread.cpp \
|
|
|
|
FrameTracker.cpp \
|
|
|
|
GLExtensions.cpp \
|
|
|
|
Layer.cpp \
|
|
|
|
LayerDim.cpp \
|
|
|
|
MessageQueue.cpp \
|
|
|
|
SurfaceFlinger.cpp \
|
|
|
|
SurfaceFlingerConsumer.cpp \
|
|
|
|
SurfaceTextureLayer.cpp \
|
|
|
|
Transform.cpp \
|
|
|
|
DisplayHardware/FramebufferSurface.cpp \
|
|
|
|
DisplayHardware/HWComposer.cpp \
|
|
|
|
DisplayHardware/PowerHAL.cpp \
|
|
|
|
DisplayHardware/VirtualDisplaySurface.cpp \
|
2013-06-05 04:50:31 +00:00
|
|
|
EventLog/EventLogTags.logtags \
|
|
|
|
EventLog/EventLog.cpp
|
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-06-19 00:27:56 +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
|
2012-06-19 00:27:56 +00:00
|
|
|
ifeq ($(TARGET_BOARD_PLATFORM),omap4)
|
2011-10-07 22:42:53 +00:00
|
|
|
LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY
|
|
|
|
endif
|
2012-06-19 00:27:56 +00:00
|
|
|
ifeq ($(TARGET_BOARD_PLATFORM),s5pc110)
|
2012-04-24 03:00:16 +00:00
|
|
|
LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY
|
|
|
|
LOCAL_CFLAGS += -DNEVER_DEFAULT_TO_ASYNC_MODE
|
|
|
|
endif
|
|
|
|
|
2012-06-19 00:27:56 +00:00
|
|
|
ifeq ($(TARGET_DISABLE_TRIPLE_BUFFERING),true)
|
2012-04-24 03:00:16 +00:00
|
|
|
LOCAL_CFLAGS += -DTARGET_DISABLE_TRIPLE_BUFFERING
|
2010-10-12 00:54:43 +00:00
|
|
|
endif
|
|
|
|
|
2012-10-12 21:18:10 +00:00
|
|
|
ifneq ($(NUM_FRAMEBUFFER_SURFACE_BUFFERS),)
|
|
|
|
LOCAL_CFLAGS += -DNUM_FRAMEBUFFER_SURFACE_BUFFERS=$(NUM_FRAMEBUFFER_SURFACE_BUFFERS)
|
|
|
|
endif
|
|
|
|
|
2013-05-09 21:53:35 +00:00
|
|
|
LOCAL_CFLAGS += -fvisibility=hidden
|
|
|
|
|
2009-03-04 03:31:44 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
2009-07-03 02:04:39 +00:00
|
|
|
libcutils \
|
2013-04-10 04:55:39 +00:00
|
|
|
liblog \
|
2012-08-05 03:09:03 +00:00
|
|
|
libdl \
|
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
|
|
|
|
|
|
|
LOCAL_MODULE:= libsurfaceflinger
|
|
|
|
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
2012-08-31 17:53:36 +00:00
|
|
|
|
|
|
|
###############################################################
|
|
|
|
# uses jni which may not be available in PDK
|
|
|
|
ifneq ($(wildcard libnativehelper/include),)
|
|
|
|
include $(CLEAR_VARS)
|
2012-10-07 23:41:12 +00:00
|
|
|
LOCAL_CFLAGS:= -DLOG_TAG=\"SurfaceFlinger\"
|
|
|
|
|
2012-08-31 17:53:36 +00:00
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
DdmConnection.cpp
|
|
|
|
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
|
|
libcutils \
|
2013-04-10 04:55:39 +00:00
|
|
|
liblog \
|
2012-08-31 17:53:36 +00:00
|
|
|
libdl
|
|
|
|
|
|
|
|
LOCAL_MODULE:= libsurfaceflinger_ddmconnection
|
|
|
|
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
endif # libnativehelper
|