2014-11-11 18:32:31 +00:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
2009-03-04 03:31:44 +00:00
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2014-07-13 21:37:16 +00:00
|
|
|
LOCAL_CLANG := true
|
|
|
|
|
2014-07-14 22:32:59 +00:00
|
|
|
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
|
2014-11-11 18:32:31 +00:00
|
|
|
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 \
|
2014-03-13 18:55:57 +00:00
|
|
|
MonitoredProducer.cpp \
|
2013-03-14 21:29:29 +00:00
|
|
|
SurfaceFlinger.cpp \
|
|
|
|
SurfaceFlingerConsumer.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
|
|
|
|
2014-11-11 18:32:31 +00:00
|
|
|
LOCAL_CFLAGS := -DLOG_TAG=\"SurfaceFlinger\"
|
2009-04-10 21:24:30 +00:00
|
|
|
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),omap4)
|
2014-11-13 22:18:56 +00:00
|
|
|
LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY
|
2011-10-07 22:42:53 +00:00
|
|
|
endif
|
2012-06-19 00:27:56 +00:00
|
|
|
ifeq ($(TARGET_BOARD_PLATFORM),s5pc110)
|
2014-11-13 22:18:56 +00:00
|
|
|
LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY
|
2012-04-24 03:00:16 +00:00
|
|
|
endif
|
|
|
|
|
2012-06-19 00:27:56 +00:00
|
|
|
ifeq ($(TARGET_DISABLE_TRIPLE_BUFFERING),true)
|
2014-11-13 22:18:56 +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),)
|
2014-11-13 22:18:56 +00:00
|
|
|
LOCAL_CFLAGS += -DNUM_FRAMEBUFFER_SURFACE_BUFFERS=$(NUM_FRAMEBUFFER_SURFACE_BUFFERS)
|
2012-10-12 21:18:10 +00:00
|
|
|
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
|
|
|
|
|
2014-07-30 20:00:37 +00:00
|
|
|
LOCAL_CFLAGS += -fvisibility=hidden -Werror=format
|
2014-11-11 18:32:31 +00:00
|
|
|
LOCAL_CPPFLAGS := -std=c++11
|
2013-05-09 21:53:35 +00:00
|
|
|
|
2009-03-04 03:31:44 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
2014-11-13 22:18:56 +00:00
|
|
|
libcutils \
|
|
|
|
liblog \
|
|
|
|
libdl \
|
|
|
|
libhardware \
|
|
|
|
libutils \
|
|
|
|
libEGL \
|
|
|
|
libGLESv1_CM \
|
|
|
|
libGLESv2 \
|
|
|
|
libbinder \
|
|
|
|
libui \
|
|
|
|
libgui \
|
|
|
|
libpowermanager
|
2009-03-04 03:31:44 +00:00
|
|
|
|
2014-11-11 18:32:31 +00:00
|
|
|
LOCAL_MODULE := libsurfaceflinger
|
2009-03-04 03:31:44 +00:00
|
|
|
|
2014-11-13 22:18:56 +00:00
|
|
|
LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code
|
|
|
|
|
2009-03-04 03:31:44 +00:00
|
|
|
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)
|
|
|
|
|
2014-11-11 18:32:31 +00:00
|
|
|
LOCAL_CLANG := true
|
|
|
|
|
2014-10-07 20:40:41 +00:00
|
|
|
LOCAL_LDFLAGS := -Wl,--version-script,art/sigchainlib/version-script.txt -Wl,--export-dynamic
|
2014-11-11 18:32:31 +00:00
|
|
|
LOCAL_CFLAGS := -DLOG_TAG=\"SurfaceFlinger\"
|
|
|
|
LOCAL_CPPFLAGS := -std=c++11
|
2013-08-20 00:26:18 +00:00
|
|
|
|
2014-11-11 18:32:31 +00:00
|
|
|
LOCAL_SRC_FILES := \
|
2014-11-13 22:18:56 +00:00
|
|
|
main_surfaceflinger.cpp
|
2013-07-22 19:20:28 +00:00
|
|
|
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
2014-11-13 22:18:56 +00:00
|
|
|
libsurfaceflinger \
|
|
|
|
libcutils \
|
|
|
|
liblog \
|
|
|
|
libbinder \
|
|
|
|
libutils \
|
|
|
|
libdl
|
2013-07-22 19:20:28 +00:00
|
|
|
|
2014-10-20 21:17:26 +00:00
|
|
|
LOCAL_WHOLE_STATIC_LIBRARIES := libsigchain
|
|
|
|
|
2014-11-11 18:32:31 +00:00
|
|
|
LOCAL_MODULE := surfaceflinger
|
2013-07-22 19:20:28 +00:00
|
|
|
|
2014-02-20 23:36:21 +00:00
|
|
|
ifdef TARGET_32_BIT_SURFACEFLINGER
|
|
|
|
LOCAL_32_BIT_ONLY := true
|
|
|
|
endif
|
|
|
|
|
2014-11-13 22:18:56 +00:00
|
|
|
LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code
|
|
|
|
|
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
|
|
|
|
2014-11-11 18:32:31 +00:00
|
|
|
LOCAL_CLANG := true
|
|
|
|
|
|
|
|
LOCAL_CFLAGS := -DLOG_TAG=\"SurfaceFlinger\"
|
|
|
|
LOCAL_CPPFLAGS := -std=c++11
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := \
|
2012-08-31 17:53:36 +00:00
|
|
|
DdmConnection.cpp
|
|
|
|
|
|
|
|
LOCAL_SHARED_LIBRARIES := \
|
2014-11-13 22:18:56 +00:00
|
|
|
libcutils \
|
|
|
|
liblog \
|
|
|
|
libdl
|
2012-08-31 17:53:36 +00:00
|
|
|
|
2014-11-11 18:32:31 +00:00
|
|
|
LOCAL_MODULE := libsurfaceflinger_ddmconnection
|
2012-08-31 17:53:36 +00:00
|
|
|
|
2014-11-13 22:18:56 +00:00
|
|
|
LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code
|
|
|
|
|
2012-08-31 17:53:36 +00:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
endif # libnativehelper
|