Android.mk revision 3eb38cb33e41ce40dd1094bdec850f0fca9f8a53
1LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
3
4LOCAL_SRC_FILES:= \
5    EventThread.cpp                         \
6    Layer.cpp                               \
7    LayerBase.cpp                           \
8    LayerDim.cpp                            \
9    LayerScreenshot.cpp                     \
10    DisplayHardware/DisplayHardware.cpp     \
11    DisplayHardware/DisplayHardwareBase.cpp \
12    DisplayHardware/HWComposer.cpp          \
13    GLExtensions.cpp                        \
14    MessageQueue.cpp                        \
15    SurfaceFlinger.cpp                      \
16    SurfaceTextureLayer.cpp                 \
17    Transform.cpp                           \
18    
19
20LOCAL_CFLAGS:= -DLOG_TAG=\"SurfaceFlinger\"
21LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
22
23ifeq ($(TARGET_HAS_WAITFORVSYNC), true)
24	LOCAL_CFLAGS += -DHAS_WAITFORVSYNC
25endif
26
27ifeq ($(TARGET_BOARD_PLATFORM), omap3)
28	LOCAL_CFLAGS += -DNO_RGBX_8888
29endif
30ifeq ($(TARGET_BOARD_PLATFORM), omap4)
31	LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY
32	LOCAL_CFLAGS += -DUSE_TRIPLE_BUFFERING
33endif
34ifeq ($(TARGET_BOARD_PLATFORM), s5pc110)
35	LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY -DNEVER_DEFAULT_TO_ASYNC_MODE
36endif
37
38LOCAL_SHARED_LIBRARIES := \
39	libcutils \
40	libhardware \
41	libutils \
42	libEGL \
43	libGLESv1_CM \
44	libbinder \
45	libui \
46	libgui
47
48# this is only needed for DDMS debugging
49ifneq ($(TARGET_BUILD_PDK), true)
50	LOCAL_SHARED_LIBRARIES += libdvm libandroid_runtime
51	LOCAL_CLFAGS += -DDDMS_DEBUGGING
52	LOCAL_SRC_FILES += DdmConnection.cpp
53endif
54
55LOCAL_MODULE:= libsurfaceflinger
56
57include $(BUILD_SHARED_LIBRARY)
58