blob: b4b19b426d901d9897f63aaede654e1d10499f88 [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:= \
Mathias Agopiandb403e82012-06-18 16:47:56 -07005 Client.cpp \
Mathias Agopian0f2f5ff2012-07-31 23:09:07 -07006 DisplayDevice.cpp \
Mathias Agopiand0566bc2011-11-17 17:49:17 -08007 EventThread.cpp \
Jamie Gennis82dbc742012-11-08 19:23:28 -08008 FrameTracker.cpp \
Mathias Agopiand0566bc2011-11-17 17:49:17 -08009 Layer.cpp \
10 LayerBase.cpp \
11 LayerDim.cpp \
12 LayerScreenshot.cpp \
Mathias Agopian3e876012012-06-07 17:52:54 -070013 DisplayHardware/FramebufferSurface.cpp \
Mathias Agopiand0566bc2011-11-17 17:49:17 -080014 DisplayHardware/HWComposer.cpp \
Mathias Agopian03e40722012-04-26 16:11:59 -070015 DisplayHardware/PowerHAL.cpp \
Mathias Agopiand0566bc2011-11-17 17:49:17 -080016 GLExtensions.cpp \
17 MessageQueue.cpp \
18 SurfaceFlinger.cpp \
Andy McFaddenbf974ab2012-12-04 16:51:15 -080019 SurfaceFlingerConsumer.cpp \
Mathias Agopiand0566bc2011-11-17 17:49:17 -080020 SurfaceTextureLayer.cpp \
21 Transform.cpp \
Mathias Agopiana67932f2011-04-20 14:20:59 -070022
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080023
Mathias Agopian076b1cc2009-04-10 14:24:30 -070024LOCAL_CFLAGS:= -DLOG_TAG=\"SurfaceFlinger\"
25LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080026
Mathias Agopian5df99622012-06-18 17:27:56 -070027ifeq ($(TARGET_BOARD_PLATFORM),omap3)
Mathias Agopiana5529c82010-12-07 19:38:17 -080028 LOCAL_CFLAGS += -DNO_RGBX_8888
Mathias Agopiana8f3e4e2010-06-30 15:43:47 -070029endif
Mathias Agopian5df99622012-06-18 17:27:56 -070030ifeq ($(TARGET_BOARD_PLATFORM),omap4)
Mathias Agopian57bf9e72011-10-07 15:42:53 -070031 LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY
32endif
Mathias Agopian5df99622012-06-18 17:27:56 -070033ifeq ($(TARGET_BOARD_PLATFORM),s5pc110)
Mathias Agopian7f42a9c2012-04-23 20:00:16 -070034 LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY
35 LOCAL_CFLAGS += -DNEVER_DEFAULT_TO_ASYNC_MODE
36endif
37
Mathias Agopian5df99622012-06-18 17:27:56 -070038ifeq ($(TARGET_DISABLE_TRIPLE_BUFFERING),true)
Mathias Agopian7f42a9c2012-04-23 20:00:16 -070039 LOCAL_CFLAGS += -DTARGET_DISABLE_TRIPLE_BUFFERING
Mathias Agopian67226812010-10-11 17:54:43 -070040endif
41
Jamie Genniscdbaecb2012-10-12 14:18:10 -070042ifneq ($(NUM_FRAMEBUFFER_SURFACE_BUFFERS),)
43 LOCAL_CFLAGS += -DNUM_FRAMEBUFFER_SURFACE_BUFFERS=$(NUM_FRAMEBUFFER_SURFACE_BUFFERS)
44endif
45
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080046LOCAL_SHARED_LIBRARIES := \
Mathias Agopianaf54ab92009-07-02 19:04:39 -070047 libcutils \
Mathias Agopianc1d359d2012-08-04 20:09:03 -070048 libdl \
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080049 libhardware \
50 libutils \
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080051 libEGL \
Mathias Agopianaf54ab92009-07-02 19:04:39 -070052 libGLESv1_CM \
53 libbinder \
Mathias Agopian9cce3252010-02-09 17:46:37 -080054 libui \
Mathias Agopiand87f1622011-03-25 18:42:40 -070055 libgui
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080056
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080057LOCAL_MODULE:= libsurfaceflinger
58
59include $(BUILD_SHARED_LIBRARY)
Keun young Park63f165f2012-08-31 10:53:36 -070060
61###############################################################
62# uses jni which may not be available in PDK
63ifneq ($(wildcard libnativehelper/include),)
64include $(CLEAR_VARS)
Mathias Agopian1b3aeb42012-10-07 16:41:12 -070065LOCAL_CFLAGS:= -DLOG_TAG=\"SurfaceFlinger\"
66
Keun young Park63f165f2012-08-31 10:53:36 -070067LOCAL_SRC_FILES:= \
68 DdmConnection.cpp
69
70LOCAL_SHARED_LIBRARIES := \
71 libcutils \
72 libdl
73
74LOCAL_MODULE:= libsurfaceflinger_ddmconnection
75
76include $(BUILD_SHARED_LIBRARY)
77endif # libnativehelper