blob: 7cc4ce19510c897e5b0154607ec8bc877076f862 [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 Agopianff2ed702013-09-01 21:36:12 -070020 Effects/Daltonizer.cpp \
Mathias Agopian85cce372013-06-04 21:50:31 -070021 EventLog/EventLogTags.logtags \
Mathias Agopian875d8e12013-06-07 15:35:48 -070022 EventLog/EventLog.cpp \
Mathias Agopian3f844832013-08-07 21:24:32 -070023 RenderEngine/Description.cpp \
24 RenderEngine/Mesh.cpp \
25 RenderEngine/Program.cpp \
26 RenderEngine/ProgramCache.cpp \
Mathias Agopian875d8e12013-06-07 15:35:48 -070027 RenderEngine/GLExtensions.cpp \
28 RenderEngine/RenderEngine.cpp \
Mathias Agopian49457ac2013-08-14 18:20:17 -070029 RenderEngine/Texture.cpp \
Mathias Agopian875d8e12013-06-07 15:35:48 -070030 RenderEngine/GLES10RenderEngine.cpp \
Mathias Agopian3f844832013-08-07 21:24:32 -070031 RenderEngine/GLES11RenderEngine.cpp \
32 RenderEngine/GLES20RenderEngine.cpp
Mathias Agopian875d8e12013-06-07 15:35:48 -070033
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080034
Mathias Agopian076b1cc2009-04-10 14:24:30 -070035LOCAL_CFLAGS:= -DLOG_TAG=\"SurfaceFlinger\"
36LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080037
Mathias Agopian5df99622012-06-18 17:27:56 -070038ifeq ($(TARGET_BOARD_PLATFORM),omap3)
Mathias Agopiana5529c82010-12-07 19:38:17 -080039 LOCAL_CFLAGS += -DNO_RGBX_8888
Mathias Agopiana8f3e4e2010-06-30 15:43:47 -070040endif
Mathias Agopian5df99622012-06-18 17:27:56 -070041ifeq ($(TARGET_BOARD_PLATFORM),omap4)
Mathias Agopian57bf9e72011-10-07 15:42:53 -070042 LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY
43endif
Mathias Agopian5df99622012-06-18 17:27:56 -070044ifeq ($(TARGET_BOARD_PLATFORM),s5pc110)
Mathias Agopian7f42a9c2012-04-23 20:00:16 -070045 LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY
Mathias Agopian7f42a9c2012-04-23 20:00:16 -070046endif
47
Mathias Agopian5df99622012-06-18 17:27:56 -070048ifeq ($(TARGET_DISABLE_TRIPLE_BUFFERING),true)
Mathias Agopian7f42a9c2012-04-23 20:00:16 -070049 LOCAL_CFLAGS += -DTARGET_DISABLE_TRIPLE_BUFFERING
Mathias Agopian67226812010-10-11 17:54:43 -070050endif
51
Jamie Genniscdbaecb2012-10-12 14:18:10 -070052ifneq ($(NUM_FRAMEBUFFER_SURFACE_BUFFERS),)
53 LOCAL_CFLAGS += -DNUM_FRAMEBUFFER_SURFACE_BUFFERS=$(NUM_FRAMEBUFFER_SURFACE_BUFFERS)
54endif
55
Mathias Agopianb6df7d02013-05-09 14:53:35 -070056LOCAL_CFLAGS += -fvisibility=hidden
57
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080058LOCAL_SHARED_LIBRARIES := \
Mathias Agopianaf54ab92009-07-02 19:04:39 -070059 libcutils \
Ying Wang8a0cb4e2013-04-09 21:55:39 -070060 liblog \
Mathias Agopianc1d359d2012-08-04 20:09:03 -070061 libdl \
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080062 libhardware \
63 libutils \
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080064 libEGL \
Mathias Agopianaf54ab92009-07-02 19:04:39 -070065 libGLESv1_CM \
Mathias Agopian3f844832013-08-07 21:24:32 -070066 libGLESv2 \
Mathias Agopianaf54ab92009-07-02 19:04:39 -070067 libbinder \
Mathias Agopian9cce3252010-02-09 17:46:37 -080068 libui \
Mathias Agopiand87f1622011-03-25 18:42:40 -070069 libgui
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080070
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080071LOCAL_MODULE:= libsurfaceflinger
72
73include $(BUILD_SHARED_LIBRARY)
Keun young Park63f165f2012-08-31 10:53:36 -070074
75###############################################################
Mathias Agopian7ffaa7c2013-07-22 12:20:28 -070076# build surfaceflinger's executable
77include $(CLEAR_VARS)
78
Mathias Agopian4f4f0942013-08-19 17:26:18 -070079LOCAL_CFLAGS:= -DLOG_TAG=\"SurfaceFlinger\"
80
Mathias Agopian7ffaa7c2013-07-22 12:20:28 -070081LOCAL_SRC_FILES:= \
82 main_surfaceflinger.cpp
83
84LOCAL_SHARED_LIBRARIES := \
85 libsurfaceflinger \
Mathias Agopian9414d672013-08-23 15:56:38 -070086 libcutils \
Mathias Agopian4f4f0942013-08-19 17:26:18 -070087 liblog \
Mathias Agopian7ffaa7c2013-07-22 12:20:28 -070088 libbinder \
89 libutils
90
91LOCAL_MODULE:= surfaceflinger
92
93include $(BUILD_EXECUTABLE)
94
95###############################################################
Keun young Park63f165f2012-08-31 10:53:36 -070096# uses jni which may not be available in PDK
97ifneq ($(wildcard libnativehelper/include),)
98include $(CLEAR_VARS)
Mathias Agopian1b3aeb42012-10-07 16:41:12 -070099LOCAL_CFLAGS:= -DLOG_TAG=\"SurfaceFlinger\"
100
Keun young Park63f165f2012-08-31 10:53:36 -0700101LOCAL_SRC_FILES:= \
102 DdmConnection.cpp
103
104LOCAL_SHARED_LIBRARIES := \
105 libcutils \
Ying Wang8a0cb4e2013-04-09 21:55:39 -0700106 liblog \
Keun young Park63f165f2012-08-31 10:53:36 -0700107 libdl
108
109LOCAL_MODULE:= libsurfaceflinger_ddmconnection
110
111include $(BUILD_SHARED_LIBRARY)
112endif # libnativehelper