blob: 17bf375a1d7d57bcdcf6982ec08441dfe162801b [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 Agopianf3918c52011-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 Agopianf3918c52011-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 Agopian4cfb3a62010-06-30 15:43:47 -070026ifeq ($(TARGET_BOARD_PLATFORM), omap3)
Mathias Agopiand2112302010-12-07 19:38:17 -080027 LOCAL_CFLAGS += -DNO_RGBX_8888
Mathias Agopian4cfb3a62010-06-30 15:43:47 -070028endif
Mathias Agopian184df102011-10-07 15:42:53 -070029ifeq ($(TARGET_BOARD_PLATFORM), omap4)
30 LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY
31endif
Mathias Agopiancd54dc22010-10-11 17:54:43 -070032ifeq ($(TARGET_BOARD_PLATFORM), s5pc110)
Jamie Gennis950de412011-07-30 15:06:10 -070033 LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY -DNEVER_DEFAULT_TO_ASYNC_MODE
Mathias Agopiancd54dc22010-10-11 17:54:43 -070034endif
35
Mathias Agopian4cfb3a62010-06-30 15:43:47 -070036
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080037LOCAL_SHARED_LIBRARIES := \
Mathias Agopianf780d322009-07-02 19:04:39 -070038 libcutils \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080039 libhardware \
40 libutils \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080041 libEGL \
Mathias Agopianf780d322009-07-02 19:04:39 -070042 libGLESv1_CM \
43 libbinder \
Mathias Agopian000479f2010-02-09 17:46:37 -080044 libui \
Mathias Agopian696257c2011-03-25 18:42:40 -070045 libgui
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080046
Mathias Agopian93d75ec2011-08-15 20:44:40 -070047# this is only needed for DDMS debugging
48LOCAL_SHARED_LIBRARIES += libdvm libandroid_runtime
49
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080050LOCAL_C_INCLUDES := \
51 $(call include-path-for, corecg graphics)
52
Mathias Agopian2eab9d82009-06-24 16:55:59 -070053LOCAL_C_INCLUDES += hardware/libhardware/modules/gralloc
54
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080055LOCAL_MODULE:= libsurfaceflinger
56
57include $(BUILD_SHARED_LIBRARY)