blob: a14bfb569b8b16231e87ab1ac228a8042d33a218 [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:= \
5 clz.cpp.arm \
6 DisplayHardware/DisplayHardware.cpp \
7 DisplayHardware/DisplayHardwareBase.cpp \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08008 BlurFilter.cpp.arm \
Mathias Agopian781953d2010-06-25 18:02:21 -07009 GLExtensions.cpp \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080010 Layer.cpp \
11 LayerBase.cpp \
12 LayerBuffer.cpp \
13 LayerBlur.cpp \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080014 LayerDim.cpp \
Mathias Agopian6ead5d92009-04-20 19:39:12 -070015 MessageQueue.cpp \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080016 SurfaceFlinger.cpp \
Mathias Agopian9f2c4fd2010-05-10 20:06:11 -070017 TextureManager.cpp \
Mathias Agopian1473f462009-04-10 14:24:30 -070018 Transform.cpp
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080019
Mathias Agopian1473f462009-04-10 14:24:30 -070020LOCAL_CFLAGS:= -DLOG_TAG=\"SurfaceFlinger\"
21LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080022
Mathias Agopian4cfb3a62010-06-30 15:43:47 -070023ifeq ($(TARGET_BOARD_PLATFORM), omap3)
24 LOCAL_CFLAGS += -DNO_RGBX_8888
25endif
26
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080027# need "-lrt" on Linux simulator to pick up clock_gettime
28ifeq ($(TARGET_SIMULATOR),true)
29 ifeq ($(HOST_OS),linux)
Mathias Agopianac2dd4d2009-07-13 22:58:25 -070030 LOCAL_LDLIBS += -lrt -lpthread
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080031 endif
32endif
33
34LOCAL_SHARED_LIBRARIES := \
Mathias Agopianf780d322009-07-02 19:04:39 -070035 libcutils \
36 libpixelflinger \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080037 libhardware \
38 libutils \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080039 libEGL \
Mathias Agopianf780d322009-07-02 19:04:39 -070040 libGLESv1_CM \
41 libbinder \
Mathias Agopian000479f2010-02-09 17:46:37 -080042 libui \
43 libsurfaceflinger_client
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080044
45LOCAL_C_INCLUDES := \
46 $(call include-path-for, corecg graphics)
47
Mathias Agopian2eab9d82009-06-24 16:55:59 -070048LOCAL_C_INCLUDES += hardware/libhardware/modules/gralloc
49
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080050LOCAL_MODULE:= libsurfaceflinger
51
52include $(BUILD_SHARED_LIBRARY)