blob: 86eb78d8dd9d346cd6af0b2956ecf92166af2ee2 [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 \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08009 Layer.cpp \
10 LayerBase.cpp \
11 LayerBuffer.cpp \
12 LayerBlur.cpp \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080013 LayerDim.cpp \
Mathias Agopian6ead5d92009-04-20 19:39:12 -070014 MessageQueue.cpp \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080015 SurfaceFlinger.cpp \
16 Tokenizer.cpp \
Mathias Agopian1473f462009-04-10 14:24:30 -070017 Transform.cpp
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080018
Mathias Agopian1473f462009-04-10 14:24:30 -070019LOCAL_CFLAGS:= -DLOG_TAG=\"SurfaceFlinger\"
20LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080021
Mathias Agopian9cc88522009-06-18 18:48:39 -070022ifeq ($(TARGET_BOARD_PLATFORM), msm7k)
23 LOCAL_CFLAGS += -DDIM_WITH_TEXTURE
24endif
25
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080026# need "-lrt" on Linux simulator to pick up clock_gettime
27ifeq ($(TARGET_SIMULATOR),true)
28 ifeq ($(HOST_OS),linux)
Mathias Agopianac2dd4d2009-07-13 22:58:25 -070029 LOCAL_LDLIBS += -lrt -lpthread
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080030 endif
31endif
32
33LOCAL_SHARED_LIBRARIES := \
Mathias Agopianf780d322009-07-02 19:04:39 -070034 libcutils \
35 libpixelflinger \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080036 libhardware \
37 libutils \
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080038 libEGL \
Mathias Agopianf780d322009-07-02 19:04:39 -070039 libGLESv1_CM \
40 libbinder \
Mathias Agopian000479f2010-02-09 17:46:37 -080041 libui \
42 libsurfaceflinger_client
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080043
44LOCAL_C_INCLUDES := \
45 $(call include-path-for, corecg graphics)
46
Mathias Agopian2eab9d82009-06-24 16:55:59 -070047LOCAL_C_INCLUDES += hardware/libhardware/modules/gralloc
48
The Android Open Source Project9066cfe2009-03-03 19:31:44 -080049LOCAL_MODULE:= libsurfaceflinger
50
51include $(BUILD_SHARED_LIBRARY)