blob: 8dbb9c5a7fa1636e26547856013f5557d757f0e3 [file] [log] [blame]
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -08001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_SRC_FILES:= \
Jesse Hall99c7dbb2013-03-14 14:29:29 -07005 Client.cpp \
6 DisplayDevice.cpp \
7 EventThread.cpp \
8 FrameTracker.cpp \
Jesse Hall99c7dbb2013-03-14 14:29:29 -07009 Layer.cpp \
10 LayerDim.cpp \
11 MessageQueue.cpp \
12 SurfaceFlinger.cpp \
13 SurfaceFlingerConsumer.cpp \
14 SurfaceTextureLayer.cpp \
15 Transform.cpp \
16 DisplayHardware/FramebufferSurface.cpp \
17 DisplayHardware/HWComposer.cpp \
18 DisplayHardware/PowerHAL.cpp \
19 DisplayHardware/VirtualDisplaySurface.cpp \
Mathias Agopian85cce372013-06-04 21:50:31 -070020 EventLog/EventLogTags.logtags \
Mathias Agopian875d8e12013-06-07 15:35:48 -070021 EventLog/EventLog.cpp \
22 RenderEngine/GLExtensions.cpp \
23 RenderEngine/RenderEngine.cpp \
24 RenderEngine/GLES10RenderEngine.cpp \
25 RenderEngine/GLES11RenderEngine.cpp
26
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080027
Mathias Agopian076b1cc2009-04-10 14:24:30 -070028LOCAL_CFLAGS:= -DLOG_TAG=\"SurfaceFlinger\"
29LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080030
Mathias Agopian5df99622012-06-18 17:27:56 -070031ifeq ($(TARGET_BOARD_PLATFORM),omap3)
Mathias Agopiana5529c82010-12-07 19:38:17 -080032 LOCAL_CFLAGS += -DNO_RGBX_8888
Mathias Agopiana8f3e4e2010-06-30 15:43:47 -070033endif
Mathias Agopian5df99622012-06-18 17:27:56 -070034ifeq ($(TARGET_BOARD_PLATFORM),omap4)
Mathias Agopian57bf9e72011-10-07 15:42:53 -070035 LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY
36endif
Mathias Agopian5df99622012-06-18 17:27:56 -070037ifeq ($(TARGET_BOARD_PLATFORM),s5pc110)
Mathias Agopian7f42a9c2012-04-23 20:00:16 -070038 LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY
Mathias Agopian7f42a9c2012-04-23 20:00:16 -070039endif
40
Mathias Agopian5df99622012-06-18 17:27:56 -070041ifeq ($(TARGET_DISABLE_TRIPLE_BUFFERING),true)
Mathias Agopian7f42a9c2012-04-23 20:00:16 -070042 LOCAL_CFLAGS += -DTARGET_DISABLE_TRIPLE_BUFFERING
Mathias Agopian67226812010-10-11 17:54:43 -070043endif
44
Jamie Genniscdbaecb2012-10-12 14:18:10 -070045ifneq ($(NUM_FRAMEBUFFER_SURFACE_BUFFERS),)
46 LOCAL_CFLAGS += -DNUM_FRAMEBUFFER_SURFACE_BUFFERS=$(NUM_FRAMEBUFFER_SURFACE_BUFFERS)
47endif
48
Mathias Agopianb6df7d02013-05-09 14:53:35 -070049LOCAL_CFLAGS += -fvisibility=hidden
50
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080051LOCAL_SHARED_LIBRARIES := \
Mathias Agopianaf54ab92009-07-02 19:04:39 -070052 libcutils \
Ying Wang8a0cb4e2013-04-09 21:55:39 -070053 liblog \
Mathias Agopianc1d359d2012-08-04 20:09:03 -070054 libdl \
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080055 libhardware \
56 libutils \
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080057 libEGL \
Mathias Agopianaf54ab92009-07-02 19:04:39 -070058 libGLESv1_CM \
59 libbinder \
Mathias Agopian9cce3252010-02-09 17:46:37 -080060 libui \
Mathias Agopiand87f1622011-03-25 18:42:40 -070061 libgui
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080062
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080063LOCAL_MODULE:= libsurfaceflinger
64
65include $(BUILD_SHARED_LIBRARY)
Keun young Park63f165f2012-08-31 10:53:36 -070066
67###############################################################
Mathias Agopian7ffaa7c2013-07-22 12:20:28 -070068# build surfaceflinger's executable
69include $(CLEAR_VARS)
70
71LOCAL_SRC_FILES:= \
72 main_surfaceflinger.cpp
73
74LOCAL_SHARED_LIBRARIES := \
75 libsurfaceflinger \
76 libbinder \
77 libutils
78
79LOCAL_MODULE:= surfaceflinger
80
81include $(BUILD_EXECUTABLE)
82
83###############################################################
Keun young Park63f165f2012-08-31 10:53:36 -070084# uses jni which may not be available in PDK
85ifneq ($(wildcard libnativehelper/include),)
86include $(CLEAR_VARS)
Mathias Agopian1b3aeb42012-10-07 16:41:12 -070087LOCAL_CFLAGS:= -DLOG_TAG=\"SurfaceFlinger\"
88
Keun young Park63f165f2012-08-31 10:53:36 -070089LOCAL_SRC_FILES:= \
90 DdmConnection.cpp
91
92LOCAL_SHARED_LIBRARIES := \
93 libcutils \
Ying Wang8a0cb4e2013-04-09 21:55:39 -070094 liblog \
Keun young Park63f165f2012-08-31 10:53:36 -070095 libdl
96
97LOCAL_MODULE:= libsurfaceflinger_ddmconnection
98
99include $(BUILD_SHARED_LIBRARY)
100endif # libnativehelper