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 | db403e8 | 2012-06-18 16:47:56 -0700 | [diff] [blame] | 5 | Client.cpp \ |
Mathias Agopian | 0f2f5ff | 2012-07-31 23:09:07 -0700 | [diff] [blame] | 6 | DisplayDevice.cpp \ |
Mathias Agopian | d0566bc | 2011-11-17 17:49:17 -0800 | [diff] [blame] | 7 | EventThread.cpp \ |
| 8 | Layer.cpp \ |
| 9 | LayerBase.cpp \ |
| 10 | LayerDim.cpp \ |
| 11 | LayerScreenshot.cpp \ |
Mathias Agopian | 3e87601 | 2012-06-07 17:52:54 -0700 | [diff] [blame] | 12 | DisplayHardware/FramebufferSurface.cpp \ |
Mathias Agopian | f33e4b6 | 2012-09-20 16:54:14 -0700 | [diff] [blame] | 13 | DisplayHardware/GraphicBufferAlloc.cpp \ |
Mathias Agopian | d0566bc | 2011-11-17 17:49:17 -0800 | [diff] [blame] | 14 | DisplayHardware/HWComposer.cpp \ |
Mathias Agopian | 03e4072 | 2012-04-26 16:11:59 -0700 | [diff] [blame] | 15 | DisplayHardware/PowerHAL.cpp \ |
Mathias Agopian | d0566bc | 2011-11-17 17:49:17 -0800 | [diff] [blame] | 16 | GLExtensions.cpp \ |
| 17 | MessageQueue.cpp \ |
| 18 | SurfaceFlinger.cpp \ |
| 19 | SurfaceTextureLayer.cpp \ |
| 20 | Transform.cpp \ |
Mathias Agopian | a67932f | 2011-04-20 14:20:59 -0700 | [diff] [blame] | 21 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 22 | |
Mathias Agopian | 076b1cc | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 23 | LOCAL_CFLAGS:= -DLOG_TAG=\"SurfaceFlinger\" |
| 24 | LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 25 | |
Mathias Agopian | 5df9962 | 2012-06-18 17:27:56 -0700 | [diff] [blame] | 26 | ifeq ($(TARGET_BOARD_PLATFORM),omap3) |
Mathias Agopian | a5529c8 | 2010-12-07 19:38:17 -0800 | [diff] [blame] | 27 | LOCAL_CFLAGS += -DNO_RGBX_8888 |
Mathias Agopian | a8f3e4e | 2010-06-30 15:43:47 -0700 | [diff] [blame] | 28 | endif |
Mathias Agopian | 5df9962 | 2012-06-18 17:27:56 -0700 | [diff] [blame] | 29 | ifeq ($(TARGET_BOARD_PLATFORM),omap4) |
Mathias Agopian | 57bf9e7 | 2011-10-07 15:42:53 -0700 | [diff] [blame] | 30 | LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY |
| 31 | endif |
Mathias Agopian | 5df9962 | 2012-06-18 17:27:56 -0700 | [diff] [blame] | 32 | ifeq ($(TARGET_BOARD_PLATFORM),s5pc110) |
Mathias Agopian | 7f42a9c | 2012-04-23 20:00:16 -0700 | [diff] [blame] | 33 | LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY |
| 34 | LOCAL_CFLAGS += -DNEVER_DEFAULT_TO_ASYNC_MODE |
| 35 | endif |
| 36 | |
Mathias Agopian | 5df9962 | 2012-06-18 17:27:56 -0700 | [diff] [blame] | 37 | ifeq ($(TARGET_DISABLE_TRIPLE_BUFFERING),true) |
Mathias Agopian | 7f42a9c | 2012-04-23 20:00:16 -0700 | [diff] [blame] | 38 | LOCAL_CFLAGS += -DTARGET_DISABLE_TRIPLE_BUFFERING |
Mathias Agopian | 6722681 | 2010-10-11 17:54:43 -0700 | [diff] [blame] | 39 | endif |
| 40 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 41 | LOCAL_SHARED_LIBRARIES := \ |
Mathias Agopian | af54ab9 | 2009-07-02 19:04:39 -0700 | [diff] [blame] | 42 | libcutils \ |
Mathias Agopian | c1d359d | 2012-08-04 20:09:03 -0700 | [diff] [blame] | 43 | libdl \ |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 44 | libhardware \ |
| 45 | libutils \ |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 46 | libEGL \ |
Mathias Agopian | af54ab9 | 2009-07-02 19:04:39 -0700 | [diff] [blame] | 47 | libGLESv1_CM \ |
| 48 | libbinder \ |
Mathias Agopian | 9cce325 | 2010-02-09 17:46:37 -0800 | [diff] [blame] | 49 | libui \ |
Mathias Agopian | d87f162 | 2011-03-25 18:42:40 -0700 | [diff] [blame] | 50 | libgui |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 51 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 52 | LOCAL_MODULE:= libsurfaceflinger |
| 53 | |
| 54 | include $(BUILD_SHARED_LIBRARY) |
Keun young Park | 63f165f | 2012-08-31 10:53:36 -0700 | [diff] [blame] | 55 | |
| 56 | ############################################################### |
| 57 | # uses jni which may not be available in PDK |
| 58 | ifneq ($(wildcard libnativehelper/include),) |
| 59 | include $(CLEAR_VARS) |
Mathias Agopian | 1b3aeb4 | 2012-10-07 16:41:12 -0700 | [diff] [blame^] | 60 | LOCAL_CFLAGS:= -DLOG_TAG=\"SurfaceFlinger\" |
| 61 | |
Keun young Park | 63f165f | 2012-08-31 10:53:36 -0700 | [diff] [blame] | 62 | LOCAL_SRC_FILES:= \ |
| 63 | DdmConnection.cpp |
| 64 | |
| 65 | LOCAL_SHARED_LIBRARIES := \ |
| 66 | libcutils \ |
| 67 | libdl |
| 68 | |
| 69 | LOCAL_MODULE:= libsurfaceflinger_ddmconnection |
| 70 | |
| 71 | include $(BUILD_SHARED_LIBRARY) |
| 72 | endif # libnativehelper |