The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | include $(CLEAR_VARS) |
| 3 | |
| 4 | LOCAL_SRC_FILES:= \ |
Mathias Agopian | a67932f | 2011-04-20 14:20:59 -0700 | [diff] [blame] | 5 | Layer.cpp \ |
| 6 | LayerBase.cpp \ |
| 7 | LayerDim.cpp \ |
| 8 | DisplayHardware/DisplayHardware.cpp \ |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 9 | DisplayHardware/DisplayHardwareBase.cpp \ |
Mathias Agopian | a67932f | 2011-04-20 14:20:59 -0700 | [diff] [blame] | 10 | DisplayHardware/HWComposer.cpp \ |
| 11 | GLExtensions.cpp \ |
| 12 | MessageQueue.cpp \ |
| 13 | SurfaceFlinger.cpp \ |
| 14 | SurfaceTextureLayer.cpp \ |
| 15 | Transform.cpp \ |
| 16 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 17 | |
Mathias Agopian | 076b1cc | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 18 | LOCAL_CFLAGS:= -DLOG_TAG=\"SurfaceFlinger\" |
| 19 | LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 20 | |
Mathias Agopian | a8f3e4e | 2010-06-30 15:43:47 -0700 | [diff] [blame] | 21 | ifeq ($(TARGET_BOARD_PLATFORM), omap3) |
Mathias Agopian | a5529c8 | 2010-12-07 19:38:17 -0800 | [diff] [blame] | 22 | LOCAL_CFLAGS += -DNO_RGBX_8888 |
Mathias Agopian | a8f3e4e | 2010-06-30 15:43:47 -0700 | [diff] [blame] | 23 | endif |
Mathias Agopian | 6722681 | 2010-10-11 17:54:43 -0700 | [diff] [blame] | 24 | ifeq ($(TARGET_BOARD_PLATFORM), s5pc110) |
| 25 | LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY |
| 26 | endif |
| 27 | |
Mathias Agopian | a8f3e4e | 2010-06-30 15:43:47 -0700 | [diff] [blame] | 28 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 29 | # need "-lrt" on Linux simulator to pick up clock_gettime |
| 30 | ifeq ($(TARGET_SIMULATOR),true) |
| 31 | ifeq ($(HOST_OS),linux) |
Mathias Agopian | d606003a | 2009-07-13 22:58:25 -0700 | [diff] [blame] | 32 | LOCAL_LDLIBS += -lrt -lpthread |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 33 | endif |
| 34 | endif |
| 35 | |
| 36 | LOCAL_SHARED_LIBRARIES := \ |
Mathias Agopian | af54ab9 | 2009-07-02 19:04:39 -0700 | [diff] [blame] | 37 | libcutils \ |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 38 | libhardware \ |
| 39 | libutils \ |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 40 | libEGL \ |
Mathias Agopian | af54ab9 | 2009-07-02 19:04:39 -0700 | [diff] [blame] | 41 | libGLESv1_CM \ |
| 42 | libbinder \ |
Mathias Agopian | 9cce325 | 2010-02-09 17:46:37 -0800 | [diff] [blame] | 43 | libui \ |
Mathias Agopian | d87f162 | 2011-03-25 18:42:40 -0700 | [diff] [blame] | 44 | libgui |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 45 | |
| 46 | LOCAL_C_INCLUDES := \ |
| 47 | $(call include-path-for, corecg graphics) |
| 48 | |
Mathias Agopian | 5911aa9 | 2009-06-24 16:55:59 -0700 | [diff] [blame] | 49 | LOCAL_C_INCLUDES += hardware/libhardware/modules/gralloc |
| 50 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 51 | LOCAL_MODULE:= libsurfaceflinger |
| 52 | |
| 53 | include $(BUILD_SHARED_LIBRARY) |