blob: 5ff8154e7a57f16262991141a1a688430dde4a2b [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 \
Mathias Agopiand0566bc2011-11-17 17:49:17 -080010 LayerDim.cpp \
Mathias Agopian3e876012012-06-07 17:52:54 -070011 DisplayHardware/FramebufferSurface.cpp \
Mathias Agopiand0566bc2011-11-17 17:49:17 -080012 DisplayHardware/HWComposer.cpp \
Mathias Agopian03e40722012-04-26 16:11:59 -070013 DisplayHardware/PowerHAL.cpp \
Mathias Agopiand0566bc2011-11-17 17:49:17 -080014 GLExtensions.cpp \
15 MessageQueue.cpp \
16 SurfaceFlinger.cpp \
Andy McFaddenbf974ab2012-12-04 16:51:15 -080017 SurfaceFlingerConsumer.cpp \
Mathias Agopiand0566bc2011-11-17 17:49:17 -080018 SurfaceTextureLayer.cpp \
19 Transform.cpp \
Mathias Agopiana67932f2011-04-20 14:20:59 -070020
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080021
Mathias Agopian076b1cc2009-04-10 14:24:30 -070022LOCAL_CFLAGS:= -DLOG_TAG=\"SurfaceFlinger\"
23LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080024
Mathias Agopian5df99622012-06-18 17:27:56 -070025ifeq ($(TARGET_BOARD_PLATFORM),omap3)
Mathias Agopiana5529c82010-12-07 19:38:17 -080026 LOCAL_CFLAGS += -DNO_RGBX_8888
Mathias Agopiana8f3e4e2010-06-30 15:43:47 -070027endif
Mathias Agopian5df99622012-06-18 17:27:56 -070028ifeq ($(TARGET_BOARD_PLATFORM),omap4)
Mathias Agopian57bf9e72011-10-07 15:42:53 -070029 LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY
30endif
Mathias Agopian5df99622012-06-18 17:27:56 -070031ifeq ($(TARGET_BOARD_PLATFORM),s5pc110)
Mathias Agopian7f42a9c2012-04-23 20:00:16 -070032 LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY
33 LOCAL_CFLAGS += -DNEVER_DEFAULT_TO_ASYNC_MODE
34endif
35
Mathias Agopian5df99622012-06-18 17:27:56 -070036ifeq ($(TARGET_DISABLE_TRIPLE_BUFFERING),true)
Mathias Agopian7f42a9c2012-04-23 20:00:16 -070037 LOCAL_CFLAGS += -DTARGET_DISABLE_TRIPLE_BUFFERING
Mathias Agopian67226812010-10-11 17:54:43 -070038endif
39
Jamie Genniscdbaecb2012-10-12 14:18:10 -070040ifneq ($(NUM_FRAMEBUFFER_SURFACE_BUFFERS),)
41 LOCAL_CFLAGS += -DNUM_FRAMEBUFFER_SURFACE_BUFFERS=$(NUM_FRAMEBUFFER_SURFACE_BUFFERS)
42endif
43
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080044LOCAL_SHARED_LIBRARIES := \
Mathias Agopianaf54ab92009-07-02 19:04:39 -070045 libcutils \
Mathias Agopianc1d359d2012-08-04 20:09:03 -070046 libdl \
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080047 libhardware \
48 libutils \
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080049 libEGL \
Mathias Agopianaf54ab92009-07-02 19:04:39 -070050 libGLESv1_CM \
51 libbinder \
Mathias Agopian9cce3252010-02-09 17:46:37 -080052 libui \
Mathias Agopiand87f1622011-03-25 18:42:40 -070053 libgui
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080054
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080055LOCAL_MODULE:= libsurfaceflinger
56
57include $(BUILD_SHARED_LIBRARY)
Keun young Park63f165f2012-08-31 10:53:36 -070058
59###############################################################
60# uses jni which may not be available in PDK
61ifneq ($(wildcard libnativehelper/include),)
62include $(CLEAR_VARS)
Mathias Agopian1b3aeb42012-10-07 16:41:12 -070063LOCAL_CFLAGS:= -DLOG_TAG=\"SurfaceFlinger\"
64
Keun young Park63f165f2012-08-31 10:53:36 -070065LOCAL_SRC_FILES:= \
66 DdmConnection.cpp
67
68LOCAL_SHARED_LIBRARIES := \
69 libcutils \
70 libdl
71
72LOCAL_MODULE:= libsurfaceflinger_ddmconnection
73
74include $(BUILD_SHARED_LIBRARY)
75endif # libnativehelper