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 \ |
Jesse Hall | 99c7dbb | 2013-03-14 14:29:29 -0700 | [diff] [blame] | 9 | Layer.cpp \ |
| 10 | LayerDim.cpp \ |
| 11 | MessageQueue.cpp \ |
| 12 | SurfaceFlinger.cpp \ |
| 13 | SurfaceFlingerConsumer.cpp \ |
| 14 | SurfaceTextureLayer.cpp \ |
| 15 | Transform.cpp \ |
| 16 | DisplayHardware/FramebufferSurface.cpp \ |
| 17 | DisplayHardware/HWComposer.cpp \ |
| 18 | DisplayHardware/PowerHAL.cpp \ |
| 19 | DisplayHardware/VirtualDisplaySurface.cpp \ |
Mathias Agopian | 85cce37 | 2013-06-04 21:50:31 -0700 | [diff] [blame] | 20 | EventLog/EventLogTags.logtags \ |
Mathias Agopian | 875d8e1 | 2013-06-07 15:35:48 -0700 | [diff] [blame] | 21 | EventLog/EventLog.cpp \ |
Mathias Agopian | 3f84483 | 2013-08-07 21:24:32 -0700 | [diff] [blame] | 22 | RenderEngine/Description.cpp \ |
| 23 | RenderEngine/Mesh.cpp \ |
| 24 | RenderEngine/Program.cpp \ |
| 25 | RenderEngine/ProgramCache.cpp \ |
Mathias Agopian | 875d8e1 | 2013-06-07 15:35:48 -0700 | [diff] [blame] | 26 | RenderEngine/GLExtensions.cpp \ |
| 27 | RenderEngine/RenderEngine.cpp \ |
Mathias Agopian | 49457ac | 2013-08-14 18:20:17 -0700 | [diff] [blame] | 28 | RenderEngine/Texture.cpp \ |
Mathias Agopian | 875d8e1 | 2013-06-07 15:35:48 -0700 | [diff] [blame] | 29 | RenderEngine/GLES10RenderEngine.cpp \ |
Mathias Agopian | 3f84483 | 2013-08-07 21:24:32 -0700 | [diff] [blame] | 30 | RenderEngine/GLES11RenderEngine.cpp \ |
| 31 | RenderEngine/GLES20RenderEngine.cpp |
Mathias Agopian | 875d8e1 | 2013-06-07 15:35:48 -0700 | [diff] [blame] | 32 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 33 | |
Mathias Agopian | 076b1cc | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 34 | LOCAL_CFLAGS:= -DLOG_TAG=\"SurfaceFlinger\" |
| 35 | LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 36 | |
Mathias Agopian | 5df9962 | 2012-06-18 17:27:56 -0700 | [diff] [blame] | 37 | ifeq ($(TARGET_BOARD_PLATFORM),omap3) |
Mathias Agopian | a5529c8 | 2010-12-07 19:38:17 -0800 | [diff] [blame] | 38 | LOCAL_CFLAGS += -DNO_RGBX_8888 |
Mathias Agopian | a8f3e4e | 2010-06-30 15:43:47 -0700 | [diff] [blame] | 39 | endif |
Mathias Agopian | 5df9962 | 2012-06-18 17:27:56 -0700 | [diff] [blame] | 40 | ifeq ($(TARGET_BOARD_PLATFORM),omap4) |
Mathias Agopian | 57bf9e7 | 2011-10-07 15:42:53 -0700 | [diff] [blame] | 41 | LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY |
| 42 | endif |
Mathias Agopian | 5df9962 | 2012-06-18 17:27:56 -0700 | [diff] [blame] | 43 | ifeq ($(TARGET_BOARD_PLATFORM),s5pc110) |
Mathias Agopian | 7f42a9c | 2012-04-23 20:00:16 -0700 | [diff] [blame] | 44 | LOCAL_CFLAGS += -DHAS_CONTEXT_PRIORITY |
Mathias Agopian | 7f42a9c | 2012-04-23 20:00:16 -0700 | [diff] [blame] | 45 | endif |
| 46 | |
Mathias Agopian | 5df9962 | 2012-06-18 17:27:56 -0700 | [diff] [blame] | 47 | ifeq ($(TARGET_DISABLE_TRIPLE_BUFFERING),true) |
Mathias Agopian | 7f42a9c | 2012-04-23 20:00:16 -0700 | [diff] [blame] | 48 | LOCAL_CFLAGS += -DTARGET_DISABLE_TRIPLE_BUFFERING |
Mathias Agopian | 6722681 | 2010-10-11 17:54:43 -0700 | [diff] [blame] | 49 | endif |
| 50 | |
Jamie Gennis | cdbaecb | 2012-10-12 14:18:10 -0700 | [diff] [blame] | 51 | ifneq ($(NUM_FRAMEBUFFER_SURFACE_BUFFERS),) |
| 52 | LOCAL_CFLAGS += -DNUM_FRAMEBUFFER_SURFACE_BUFFERS=$(NUM_FRAMEBUFFER_SURFACE_BUFFERS) |
| 53 | endif |
| 54 | |
Mathias Agopian | b6df7d0 | 2013-05-09 14:53:35 -0700 | [diff] [blame] | 55 | LOCAL_CFLAGS += -fvisibility=hidden |
| 56 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 57 | LOCAL_SHARED_LIBRARIES := \ |
Mathias Agopian | af54ab9 | 2009-07-02 19:04:39 -0700 | [diff] [blame] | 58 | libcutils \ |
Ying Wang | 8a0cb4e | 2013-04-09 21:55:39 -0700 | [diff] [blame] | 59 | liblog \ |
Mathias Agopian | c1d359d | 2012-08-04 20:09:03 -0700 | [diff] [blame] | 60 | libdl \ |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 61 | libhardware \ |
| 62 | libutils \ |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 63 | libEGL \ |
Mathias Agopian | af54ab9 | 2009-07-02 19:04:39 -0700 | [diff] [blame] | 64 | libGLESv1_CM \ |
Mathias Agopian | 3f84483 | 2013-08-07 21:24:32 -0700 | [diff] [blame] | 65 | libGLESv2 \ |
Mathias Agopian | af54ab9 | 2009-07-02 19:04:39 -0700 | [diff] [blame] | 66 | libbinder \ |
Mathias Agopian | 9cce325 | 2010-02-09 17:46:37 -0800 | [diff] [blame] | 67 | libui \ |
Mathias Agopian | d87f162 | 2011-03-25 18:42:40 -0700 | [diff] [blame] | 68 | libgui |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 69 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 70 | LOCAL_MODULE:= libsurfaceflinger |
| 71 | |
| 72 | include $(BUILD_SHARED_LIBRARY) |
Keun young Park | 63f165f | 2012-08-31 10:53:36 -0700 | [diff] [blame] | 73 | |
| 74 | ############################################################### |
Mathias Agopian | 7ffaa7c | 2013-07-22 12:20:28 -0700 | [diff] [blame] | 75 | # build surfaceflinger's executable |
| 76 | include $(CLEAR_VARS) |
| 77 | |
Mathias Agopian | 4f4f094 | 2013-08-19 17:26:18 -0700 | [diff] [blame] | 78 | LOCAL_CFLAGS:= -DLOG_TAG=\"SurfaceFlinger\" |
| 79 | |
Mathias Agopian | 7ffaa7c | 2013-07-22 12:20:28 -0700 | [diff] [blame] | 80 | LOCAL_SRC_FILES:= \ |
| 81 | main_surfaceflinger.cpp |
| 82 | |
| 83 | LOCAL_SHARED_LIBRARIES := \ |
| 84 | libsurfaceflinger \ |
Mathias Agopian | 9414d67 | 2013-08-23 15:56:38 -0700 | [diff] [blame^] | 85 | libcutils \ |
Mathias Agopian | 4f4f094 | 2013-08-19 17:26:18 -0700 | [diff] [blame] | 86 | liblog \ |
Mathias Agopian | 7ffaa7c | 2013-07-22 12:20:28 -0700 | [diff] [blame] | 87 | libbinder \ |
| 88 | libutils |
| 89 | |
| 90 | LOCAL_MODULE:= surfaceflinger |
| 91 | |
| 92 | include $(BUILD_EXECUTABLE) |
| 93 | |
| 94 | ############################################################### |
Keun young Park | 63f165f | 2012-08-31 10:53:36 -0700 | [diff] [blame] | 95 | # uses jni which may not be available in PDK |
| 96 | ifneq ($(wildcard libnativehelper/include),) |
| 97 | include $(CLEAR_VARS) |
Mathias Agopian | 1b3aeb4 | 2012-10-07 16:41:12 -0700 | [diff] [blame] | 98 | LOCAL_CFLAGS:= -DLOG_TAG=\"SurfaceFlinger\" |
| 99 | |
Keun young Park | 63f165f | 2012-08-31 10:53:36 -0700 | [diff] [blame] | 100 | LOCAL_SRC_FILES:= \ |
| 101 | DdmConnection.cpp |
| 102 | |
| 103 | LOCAL_SHARED_LIBRARIES := \ |
| 104 | libcutils \ |
Ying Wang | 8a0cb4e | 2013-04-09 21:55:39 -0700 | [diff] [blame] | 105 | liblog \ |
Keun young Park | 63f165f | 2012-08-31 10:53:36 -0700 | [diff] [blame] | 106 | libdl |
| 107 | |
| 108 | LOCAL_MODULE:= libsurfaceflinger_ddmconnection |
| 109 | |
| 110 | include $(BUILD_SHARED_LIBRARY) |
| 111 | endif # libnativehelper |