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:= \ |
Jesse Hall | 99c7dbb | 2013-03-14 14:29:29 -0700 | [diff] [blame] | 5 | Client.cpp \ |
| 6 | DisplayDevice.cpp \ |
| 7 | EventThread.cpp \ |
| 8 | FrameTracker.cpp \ |
| 9 | GLExtensions.cpp \ |
| 10 | Layer.cpp \ |
| 11 | LayerDim.cpp \ |
| 12 | MessageQueue.cpp \ |
| 13 | SurfaceFlinger.cpp \ |
| 14 | SurfaceFlingerConsumer.cpp \ |
| 15 | SurfaceTextureLayer.cpp \ |
| 16 | Transform.cpp \ |
Jesse Hall | 80e0a39 | 2013-03-15 12:32:10 -0700 | [diff] [blame] | 17 | DisplayHardware/BufferQueueInterposer.cpp \ |
Jesse Hall | 99c7dbb | 2013-03-14 14:29:29 -0700 | [diff] [blame] | 18 | DisplayHardware/FramebufferSurface.cpp \ |
| 19 | DisplayHardware/HWComposer.cpp \ |
| 20 | DisplayHardware/PowerHAL.cpp \ |
| 21 | DisplayHardware/VirtualDisplaySurface.cpp \ |
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 | |
Jamie Gennis | cdbaecb | 2012-10-12 14:18:10 -0700 | [diff] [blame] | 41 | ifneq ($(NUM_FRAMEBUFFER_SURFACE_BUFFERS),) |
| 42 | LOCAL_CFLAGS += -DNUM_FRAMEBUFFER_SURFACE_BUFFERS=$(NUM_FRAMEBUFFER_SURFACE_BUFFERS) |
| 43 | endif |
| 44 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 45 | LOCAL_SHARED_LIBRARIES := \ |
Mathias Agopian | af54ab9 | 2009-07-02 19:04:39 -0700 | [diff] [blame] | 46 | libcutils \ |
Mathias Agopian | c1d359d | 2012-08-04 20:09:03 -0700 | [diff] [blame] | 47 | libdl \ |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 48 | libhardware \ |
| 49 | libutils \ |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 50 | libEGL \ |
Mathias Agopian | af54ab9 | 2009-07-02 19:04:39 -0700 | [diff] [blame] | 51 | libGLESv1_CM \ |
| 52 | libbinder \ |
Mathias Agopian | 9cce325 | 2010-02-09 17:46:37 -0800 | [diff] [blame] | 53 | libui \ |
Mathias Agopian | d87f162 | 2011-03-25 18:42:40 -0700 | [diff] [blame] | 54 | libgui |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 55 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 56 | LOCAL_MODULE:= libsurfaceflinger |
| 57 | |
| 58 | include $(BUILD_SHARED_LIBRARY) |
Keun young Park | 63f165f | 2012-08-31 10:53:36 -0700 | [diff] [blame] | 59 | |
| 60 | ############################################################### |
| 61 | # uses jni which may not be available in PDK |
| 62 | ifneq ($(wildcard libnativehelper/include),) |
| 63 | include $(CLEAR_VARS) |
Mathias Agopian | 1b3aeb4 | 2012-10-07 16:41:12 -0700 | [diff] [blame] | 64 | LOCAL_CFLAGS:= -DLOG_TAG=\"SurfaceFlinger\" |
| 65 | |
Keun young Park | 63f165f | 2012-08-31 10:53:36 -0700 | [diff] [blame] | 66 | LOCAL_SRC_FILES:= \ |
| 67 | DdmConnection.cpp |
| 68 | |
| 69 | LOCAL_SHARED_LIBRARIES := \ |
| 70 | libcutils \ |
| 71 | libdl |
| 72 | |
| 73 | LOCAL_MODULE:= libsurfaceflinger_ddmconnection |
| 74 | |
| 75 | include $(BUILD_SHARED_LIBRARY) |
| 76 | endif # libnativehelper |