blob: f7870f49f8be40f3756d49e1ebbdbb59bee334e5 [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 Agopianf33e4b62012-09-20 16:54:14 -070014 DisplayHardware/GraphicBufferAlloc.cpp \
Mathias Agopiand0566bc2011-11-17 17:49:17 -080015 DisplayHardware/HWComposer.cpp \
Mathias Agopian03e40722012-04-26 16:11:59 -070016 DisplayHardware/PowerHAL.cpp \
Mathias Agopiand0566bc2011-11-17 17:49:17 -080017 GLExtensions.cpp \
18 MessageQueue.cpp \
19 SurfaceFlinger.cpp \
Andy McFaddenbf974ab2012-12-04 16:51:15 -080020 SurfaceFlingerConsumer.cpp \
Mathias Agopiand0566bc2011-11-17 17:49:17 -080021 SurfaceTextureLayer.cpp \
22 Transform.cpp \
Mathias Agopiana67932f2011-04-20 14:20:59 -070023
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080024
Mathias Agopian076b1cc2009-04-10 14:24:30 -070025LOCAL_CFLAGS:= -DLOG_TAG=\"SurfaceFlinger\"
26LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080027
Mathias Agopian5df99622012-06-18 17:27:56 -070028ifeq ($(TARGET_BOARD_PLATFORM),omap3)
Mathias Agopiana5529c82010-12-07 19:38:17 -080029 LOCAL_CFLAGS += -DNO_RGBX_8888
Mathias Agopiana8f3e4e2010-06-30 15:43:47 -070030endif
Mathias Agopian5df99622012-06-18 17:27:56 -070031ifeq ($(TARGET_BOARD_PLATFORM),omap4)
Mathias Agopian57bf9e72011-10-07 15:42:53 -070032 LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY
33endif
Mathias Agopian5df99622012-06-18 17:27:56 -070034ifeq ($(TARGET_BOARD_PLATFORM),s5pc110)
Mathias Agopian7f42a9c2012-04-23 20:00:16 -070035 LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY
36 LOCAL_CFLAGS += -DNEVER_DEFAULT_TO_ASYNC_MODE
37endif
38
Mathias Agopian5df99622012-06-18 17:27:56 -070039ifeq ($(TARGET_DISABLE_TRIPLE_BUFFERING),true)
Mathias Agopian7f42a9c2012-04-23 20:00:16 -070040 LOCAL_CFLAGS += -DTARGET_DISABLE_TRIPLE_BUFFERING
Mathias Agopian67226812010-10-11 17:54:43 -070041endif
42
Jamie Genniscdbaecb2012-10-12 14:18:10 -070043ifneq ($(NUM_FRAMEBUFFER_SURFACE_BUFFERS),)
44 LOCAL_CFLAGS += -DNUM_FRAMEBUFFER_SURFACE_BUFFERS=$(NUM_FRAMEBUFFER_SURFACE_BUFFERS)
45endif
46
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080047LOCAL_SHARED_LIBRARIES := \
Mathias Agopianaf54ab92009-07-02 19:04:39 -070048 libcutils \
Mathias Agopianc1d359d2012-08-04 20:09:03 -070049 libdl \
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080050 libhardware \
51 libutils \
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080052 libEGL \
Mathias Agopianaf54ab92009-07-02 19:04:39 -070053 libGLESv1_CM \
54 libbinder \
Mathias Agopian9cce3252010-02-09 17:46:37 -080055 libui \
Mathias Agopiand87f1622011-03-25 18:42:40 -070056 libgui
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080057
The Android Open Source Projectedbf3b62009-03-03 19:31:44 -080058LOCAL_MODULE:= libsurfaceflinger
59
60include $(BUILD_SHARED_LIBRARY)
Keun young Park63f165f2012-08-31 10:53:36 -070061
62###############################################################
63# uses jni which may not be available in PDK
64ifneq ($(wildcard libnativehelper/include),)
65include $(CLEAR_VARS)
Mathias Agopian1b3aeb42012-10-07 16:41:12 -070066LOCAL_CFLAGS:= -DLOG_TAG=\"SurfaceFlinger\"
67
Keun young Park63f165f2012-08-31 10:53:36 -070068LOCAL_SRC_FILES:= \
69 DdmConnection.cpp
70
71LOCAL_SHARED_LIBRARIES := \
72 libcutils \
73 libdl
74
75LOCAL_MODULE:= libsurfaceflinger_ddmconnection
76
77include $(BUILD_SHARED_LIBRARY)
78endif # libnativehelper