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 \
|
2013-07-30 22:10:32 +00:00
|
|
|
DispSync.cpp \
|
2013-10-14 19:22:52 +00:00
|
|
|
EventControlThread.cpp \
|
2013-03-14 21:29:29 +00:00
|
|
|
EventThread.cpp \
|
|
|
|
FrameTracker.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-09-02 04:36:12 +00:00
|
|
|
Effects/Daltonizer.cpp \
|
2013-06-05 04:50:31 +00:00
|
|
|
EventLog/EventLogTags.logtags \
|
2013-06-07 22:35:48 +00:00
|
|
|
EventLog/EventLog.cpp \
|
2013-08-08 04:24:32 +00:00
|
|
|
RenderEngine/Description.cpp \
|
|
|
|
RenderEngine/Mesh.cpp \
|
|
|
|
RenderEngine/Program.cpp \
|
|
|
|
RenderEngine/ProgramCache.cpp \
|
2013-06-07 22:35:48 +00:00
|
|
|
RenderEngine/GLExtensions.cpp \
|
|
|
|
RenderEngine/RenderEngine.cpp \
|
2013-08-15 01:20:17 +00:00
|
|
|
RenderEngine/Texture.cpp \
|
2013-06-07 22:35:48 +00:00
|
|
|
RenderEngine/GLES10RenderEngine.cpp \
|
2013-08-08 04:24:32 +00:00
|
|
|
RenderEngine/GLES11RenderEngine.cpp \
|
|
|
|
RenderEngine/GLES20RenderEngine.cpp
|
2013-06-07 22:35:48 +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-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
|
|
|
|
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
|
|
|
|
|
2013-10-25 17:44:41 +00:00
|
|
|
ifeq ($(TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS),true)
|
|
|
|
LOCAL_CFLAGS += -DFORCE_HWC_COPY_FOR_VIRTUAL_DISPLAYS
|
2013-10-04 20:15:22 +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-07-30 22:10:32 +00:00
|
|
|
ifeq ($(TARGET_RUNNING_WITHOUT_SYNC_FRAMEWORK),true)
|
|
|
|
LOCAL_CFLAGS += -DRUNNING_WITHOUT_SYNC_FRAMEWORK
|
|
|
|
endif
|
|
|
|
|
|
|
|
# See build/target/board/generic/BoardConfig.mk for a description of this setting.
|
|
|
|
ifneq ($(VSYNC_EVENT_PHASE_OFFSET_NS),)
|
|
|
|
LOCAL_CFLAGS += -DVSYNC_EVENT_PHASE_OFFSET_NS=$(VSYNC_EVENT_PHASE_OFFSET_NS)
|
|
|
|
else
|
|
|
|
LOCAL_CFLAGS += -DVSYNC_EVENT_PHASE_OFFSET_NS=0
|
|
|
|
endif
|
|
|
|
|
2013-10-15 03:52:46 +00:00
|
|
|
# See build/target/board/generic/BoardConfig.mk for a description of this setting.
|
|
|
|
ifneq ($(SF_VSYNC_EVENT_PHASE_OFFSET_NS),)
|
|
|
|
LOCAL_CFLAGS += -DSF_VSYNC_EVENT_PHASE_OFFSET_NS=$(SF_VSYNC_EVENT_PHASE_OFFSET_NS)
|
|
|
|
else
|
|
|
|
LOCAL_CFLAGS += -DSF_VSYNC_EVENT_PHASE_OFFSET_NS=0
|
|
|
|
endif
|
|
|
|
|
2013-07-30 22:10:32 +00:00
|
|
|
ifneq ($(PRESENT_TIME_OFFSET_FROM_VSYNC_NS),)
|
|
|
|
LOCAL_CFLAGS += -DPRESENT_TIME_OFFSET_FROM_VSYNC_NS=$(PRESENT_TIME_OFFSET_FROM_VSYNC_NS)
|
|
|
|
else
|
|
|
|
LOCAL_CFLAGS += -DPRESENT_TIME_OFFSET_FROM_VSYNC_NS=0
|
|
|
|
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 \
|
2013-08-08 04:24:32 +00:00
|
|
|
libGLESv2 \
|
2009-07-03 02:04:39 +00:00
|
|
|
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
|
|
|
|
2013-07-22 19:20:28 +00:00
|
|
|
###############################################################
|
|
|
|
# build surfaceflinger's executable
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2013-08-20 00:26:18 +00:00
|
|
|
LOCAL_CFLAGS:= -DLOG_TAG=\"SurfaceFlinger\"
|
|
|
|
|
2013-07-22 19:20:28 +00:00
|
|
|
LOCAL_SRC_FILES:= \
|
|
|
|
main_surfaceflinger.cpp
|
|
|
|
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
|
|
|
libsurfaceflinger \
|
2013-08-23 22:56:38 +00:00
|
|
|
libcutils \
|
2013-08-20 00:26:18 +00:00
|
|
|
liblog \
|
2013-07-22 19:20:28 +00:00
|
|
|
libbinder \
|
|
|
|
libutils
|
|
|
|
|
|
|
|
LOCAL_MODULE:= surfaceflinger
|
|
|
|
|
2014-02-20 23:36:21 +00:00
|
|
|
ifdef TARGET_32_BIT_SURFACEFLINGER
|
|
|
|
LOCAL_32_BIT_ONLY := true
|
|
|
|
endif
|
|
|
|
|
2013-07-22 19:20:28 +00:00
|
|
|
include $(BUILD_EXECUTABLE)
|
|
|
|
|
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
|