blob: aa1e4268f7e05a9c80c745aea4433af9ff8d71ea [file] [log] [blame]
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_SRC_FILES:= \
Mathias Agopian79f39eb2011-11-17 17:49:17 -08005 EventThread.cpp \
6 Layer.cpp \
7 LayerBase.cpp \
8 LayerDim.cpp \
9 LayerScreenshot.cpp \
10 DdmConnection.cpp \
11 DisplayHardware/DisplayHardware.cpp \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080012 DisplayHardware/DisplayHardwareBase.cpp \
Mathias Agopian79f39eb2011-11-17 17:49:17 -080013 DisplayHardware/HWComposer.cpp \
14 DisplayHardware/VSyncBarrier.cpp \
15 DisplayEventConnection.cpp \
16 GLExtensions.cpp \
17 MessageQueue.cpp \
18 SurfaceFlinger.cpp \
19 SurfaceTextureLayer.cpp \
20 Transform.cpp \
Mathias Agopian7bb843c2011-04-20 14:20:59 -070021
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080022
Mathias Agopian1473f462009-04-10 14:24:30 -070023LOCAL_CFLAGS:= -DLOG_TAG=\"SurfaceFlinger\"
24LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080025
Mathias Agopiane02f7b32012-01-24 16:39:14 -080026ifeq ($(TARGET_HAS_WAITFORVSYNC), true)
27 LOCAL_CFLAGS += -DHAS_WAITFORVSYNC
28endif
29
Mathias Agopian4cfb3a62010-06-30 15:43:47 -070030ifeq ($(TARGET_BOARD_PLATFORM), omap3)
Mathias Agopiand2112302010-12-07 19:38:17 -080031 LOCAL_CFLAGS += -DNO_RGBX_8888
Mathias Agopian4cfb3a62010-06-30 15:43:47 -070032endif
Mathias Agopian184df102011-10-07 15:42:53 -070033ifeq ($(TARGET_BOARD_PLATFORM), omap4)
34 LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY
Mathias Agopiancf7f0c72012-02-05 01:49:16 -080035 LOCAL_CFLAGS += -DUSE_TRIPLE_BUFFERING
Mathias Agopian184df102011-10-07 15:42:53 -070036endif
Mathias Agopiancd54dc22010-10-11 17:54:43 -070037ifeq ($(TARGET_BOARD_PLATFORM), s5pc110)
Jamie Gennis950de412011-07-30 15:06:10 -070038 LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY -DNEVER_DEFAULT_TO_ASYNC_MODE
Mathias Agopiancd54dc22010-10-11 17:54:43 -070039endif
40
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080041LOCAL_SHARED_LIBRARIES := \
Mathias Agopianf780d322009-07-02 19:04:39 -070042 libcutils \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080043 libhardware \
44 libutils \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080045 libEGL \
Mathias Agopianf780d322009-07-02 19:04:39 -070046 libGLESv1_CM \
47 libbinder \
Mathias Agopian000479f2010-02-09 17:46:37 -080048 libui \
Mathias Agopian696257c2011-03-25 18:42:40 -070049 libgui
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080050
Mathias Agopian93d75ec2011-08-15 20:44:40 -070051# this is only needed for DDMS debugging
52LOCAL_SHARED_LIBRARIES += libdvm libandroid_runtime
53
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080054LOCAL_MODULE:= libsurfaceflinger
55
56include $(BUILD_SHARED_LIBRARY)