blob: 3888d7e54aea722471ef85f3e50e4bc305a082ed [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 \
Mathias Agopian3f844832013-08-07 21:24:32 -070022 RenderEngine/Description.cpp \
23 RenderEngine/Mesh.cpp \
24 RenderEngine/Program.cpp \
25 RenderEngine/ProgramCache.cpp \
Mathias Agopian875d8e12013-06-07 15:35:48 -070026 RenderEngine/GLExtensions.cpp \
27 RenderEngine/RenderEngine.cpp \
Mathias Agopian49457ac2013-08-14 18:20:17 -070028 RenderEngine/Texture.cpp \
Mathias Agopian875d8e12013-06-07 15:35:48 -070029 RenderEngine/GLES10RenderEngine.cpp \
Mathias Agopian3f844832013-08-07 21:24:32 -070030 RenderEngine/GLES11RenderEngine.cpp \
31 RenderEngine/GLES20RenderEngine.cpp
Mathias Agopian875d8e12013-06-07 15:35:48 -070032
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080033
Mathias Agopian076b1cc2009-04-10 14:24:30 -070034LOCAL_CFLAGS:= -DLOG_TAG=\"SurfaceFlinger\"
35LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080036
Mathias Agopian5df99622012-06-18 17:27:56 -070037ifeq ($(TARGET_BOARD_PLATFORM),omap3)
Mathias Agopiana5529c82010-12-07 19:38:17 -080038 LOCAL_CFLAGS += -DNO_RGBX_8888
Mathias Agopiana8f3e4e2010-06-30 15:43:47 -070039endif
Mathias Agopian5df99622012-06-18 17:27:56 -070040ifeq ($(TARGET_BOARD_PLATFORM),omap4)
Mathias Agopian57bf9e72011-10-07 15:42:53 -070041 LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY
42endif
Mathias Agopian5df99622012-06-18 17:27:56 -070043ifeq ($(TARGET_BOARD_PLATFORM),s5pc110)
Mathias Agopian7f42a9c2012-04-23 20:00:16 -070044 LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY
Mathias Agopian7f42a9c2012-04-23 20:00:16 -070045endif
46
Mathias Agopian5df99622012-06-18 17:27:56 -070047ifeq ($(TARGET_DISABLE_TRIPLE_BUFFERING),true)
Mathias Agopian7f42a9c2012-04-23 20:00:16 -070048 LOCAL_CFLAGS += -DTARGET_DISABLE_TRIPLE_BUFFERING
Mathias Agopian67226812010-10-11 17:54:43 -070049endif
50
Jamie Genniscdbaecb2012-10-12 14:18:10 -070051ifneq ($(NUM_FRAMEBUFFER_SURFACE_BUFFERS),)
52 LOCAL_CFLAGS += -DNUM_FRAMEBUFFER_SURFACE_BUFFERS=$(NUM_FRAMEBUFFER_SURFACE_BUFFERS)
53endif
54
Mathias Agopianb6df7d02013-05-09 14:53:35 -070055LOCAL_CFLAGS += -fvisibility=hidden
56
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080057LOCAL_SHARED_LIBRARIES := \
Mathias Agopianaf54ab92009-07-02 19:04:39 -070058 libcutils \
Ying Wang8a0cb4e2013-04-09 21:55:39 -070059 liblog \
Mathias Agopianc1d359d2012-08-04 20:09:03 -070060 libdl \
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080061 libhardware \
62 libutils \
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080063 libEGL \
Mathias Agopianaf54ab92009-07-02 19:04:39 -070064 libGLESv1_CM \
Mathias Agopian3f844832013-08-07 21:24:32 -070065 libGLESv2 \
Mathias Agopianaf54ab92009-07-02 19:04:39 -070066 libbinder \
Mathias Agopian9cce3252010-02-09 17:46:37 -080067 libui \
Mathias Agopiand87f1622011-03-25 18:42:40 -070068 libgui
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080069
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080070LOCAL_MODULE:= libsurfaceflinger
71
72include $(BUILD_SHARED_LIBRARY)
Keun young Park63f165f2012-08-31 10:53:36 -070073
74###############################################################
Mathias Agopian7ffaa7c2013-07-22 12:20:28 -070075# build surfaceflinger's executable
76include $(CLEAR_VARS)
77
Mathias Agopian4f4f0942013-08-19 17:26:18 -070078LOCAL_CFLAGS:= -DLOG_TAG=\"SurfaceFlinger\"
79
Mathias Agopian7ffaa7c2013-07-22 12:20:28 -070080LOCAL_SRC_FILES:= \
81 main_surfaceflinger.cpp
82
83LOCAL_SHARED_LIBRARIES := \
84 libsurfaceflinger \
Mathias Agopian9414d672013-08-23 15:56:38 -070085 libcutils \
Mathias Agopian4f4f0942013-08-19 17:26:18 -070086 liblog \
Mathias Agopian7ffaa7c2013-07-22 12:20:28 -070087 libbinder \
88 libutils
89
90LOCAL_MODULE:= surfaceflinger
91
92include $(BUILD_EXECUTABLE)
93
94###############################################################
Keun young Park63f165f2012-08-31 10:53:36 -070095# uses jni which may not be available in PDK
96ifneq ($(wildcard libnativehelper/include),)
97include $(CLEAR_VARS)
Mathias Agopian1b3aeb42012-10-07 16:41:12 -070098LOCAL_CFLAGS:= -DLOG_TAG=\"SurfaceFlinger\"
99
Keun young Park63f165f2012-08-31 10:53:36 -0700100LOCAL_SRC_FILES:= \
101 DdmConnection.cpp
102
103LOCAL_SHARED_LIBRARIES := \
104 libcutils \
Ying Wang8a0cb4e2013-04-09 21:55:39 -0700105 liblog \
Keun young Park63f165f2012-08-31 10:53:36 -0700106 libdl
107
108LOCAL_MODULE:= libsurfaceflinger_ddmconnection
109
110include $(BUILD_SHARED_LIBRARY)
111endif # libnativehelper