1LOCAL_PATH:= $(call my-dir) 2include $(CLEAR_VARS) 3 4LOCAL_SRC_FILES:= \ 5 Layer.cpp \ 6 LayerBase.cpp \ 7 LayerDim.cpp \ 8 LayerScreenshot.cpp \ 9 DdmConnection.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_BOARD_PLATFORM), omap3) 24 LOCAL_CFLAGS += -DNO_RGBX_8888 25endif 26ifeq ($(TARGET_BOARD_PLATFORM), omap4) 27 LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY 28endif 29ifeq ($(TARGET_BOARD_PLATFORM), s5pc110) 30 LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY -DNEVER_DEFAULT_TO_ASYNC_MODE 31endif 32 33 34LOCAL_SHARED_LIBRARIES := \ 35 libcutils \ 36 libhardware \ 37 libutils \ 38 libEGL \ 39 libGLESv1_CM \ 40 libbinder \ 41 libui \ 42 libgui 43 44# this is only needed for DDMS debugging 45LOCAL_SHARED_LIBRARIES += libdvm libandroid_runtime 46 47LOCAL_C_INCLUDES := \ 48 $(call include-path-for, corecg graphics) 49 50LOCAL_C_INCLUDES += hardware/libhardware/modules/gralloc 51 52LOCAL_MODULE:= libsurfaceflinger 53 54include $(BUILD_SHARED_LIBRARY) 55