| Dan Stoza | 01049c8 | 2014-11-11 10:32:31 -0800 | [diff] [blame] | 1 | LOCAL_PATH := $(call my-dir) |
| The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 2 | include $(CLEAR_VARS) |
| 3 | |||||
| Jesse Hall | 24cd98e | 2014-07-13 14:37:16 -0700 | [diff] [blame] | 4 | LOCAL_CLANG := true |
| 5 | |||||
| Jesse Hall | e9b23b6 | 2014-07-14 15:32:59 -0700 | [diff] [blame] | 6 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
| Dan Stoza | 01049c8 | 2014-11-11 10:32:31 -0800 | [diff] [blame] | 7 | LOCAL_SRC_FILES := \ |
| Jesse Hall | 99c7dbb | 2013-03-14 14:29:29 -0700 | [diff] [blame] | 8 | Client.cpp \ |
| 9 | DisplayDevice.cpp \ | ||||
| Jamie Gennis | faf77cc | 2013-07-30 15:10:32 -0700 | [diff] [blame] | 10 | DispSync.cpp \ |
| Jamie Gennis | d170075 | 2013-10-14 12:22:52 -0700 | [diff] [blame] | 11 | EventControlThread.cpp \ |
| Wei Wang | f9b05ee | 2017-07-19 20:59:39 -0700 | [diff] [blame] | 12 | StartPropertySetThread.cpp \ |
| Jesse Hall | 99c7dbb | 2013-03-14 14:29:29 -0700 | [diff] [blame] | 13 | EventThread.cpp \ |
| 14 | FrameTracker.cpp \ | ||||
| Jesse Hall | fc038bd | 2016-03-26 22:20:22 -0700 | [diff] [blame] | 15 | GpuService.cpp \ |
| Jesse Hall | 99c7dbb | 2013-03-14 14:29:29 -0700 | [diff] [blame] | 16 | Layer.cpp \ |
| David Sodman | 0c69cad | 2017-08-21 12:12:51 -0700 | [diff] [blame] | 17 | BufferLayer.cpp \ |
| Chia-I Wu | f140518 | 2017-11-27 11:29:21 -0800 | [diff] [blame] | 18 | BufferLayerConsumer.cpp \ |
| chaviw | 13fdc49 | 2017-06-27 12:40:18 -0700 | [diff] [blame] | 19 | ColorLayer.cpp \ |
| Fabien Sanglard | 7b1563a | 2016-10-13 12:05:28 -0700 | [diff] [blame] | 20 | LayerRejecter.cpp \ |
| Robert Carr | 2047fae | 2016-11-28 14:09:09 -0800 | [diff] [blame] | 21 | LayerVector.cpp \ |
| Jesse Hall | 99c7dbb | 2013-03-14 14:29:29 -0700 | [diff] [blame] | 22 | MessageQueue.cpp \ |
| Dan Stoza | b9b0883 | 2014-03-13 11:55:57 -0700 | [diff] [blame] | 23 | MonitoredProducer.cpp \ |
| Chia-I Wu | d265c42 | 2017-10-19 15:16:41 -0700 | [diff] [blame] | 24 | SurfaceFlinger.cpp \ |
| Irvel | c274c63 | 2016-06-13 16:44:08 -0700 | [diff] [blame] | 25 | SurfaceInterceptor.cpp \ |
| Adrian Roos | 1e1a128 | 2017-11-01 19:05:31 +0100 | [diff] [blame] | 26 | SurfaceTracing.cpp \ |
| Jesse Hall | 99c7dbb | 2013-03-14 14:29:29 -0700 | [diff] [blame] | 27 | Transform.cpp \ |
| Chia-I Wu | aab99f5 | 2016-10-05 12:59:58 +0800 | [diff] [blame] | 28 | DisplayHardware/ComposerHal.cpp \ |
| Jesse Hall | 99c7dbb | 2013-03-14 14:29:29 -0700 | [diff] [blame] | 29 | DisplayHardware/FramebufferSurface.cpp \ |
| Dan Stoza | 651bf31 | 2015-10-23 17:03:17 -0700 | [diff] [blame] | 30 | DisplayHardware/HWC2.cpp \ |
| Chia-I Wu | d265c42 | 2017-10-19 15:16:41 -0700 | [diff] [blame] | 31 | DisplayHardware/HWComposer.cpp \ |
| Chia-I Wu | aaff73f | 2017-02-13 12:28:24 -0800 | [diff] [blame] | 32 | DisplayHardware/HWComposerBufferCache.cpp \ |
| Jesse Hall | 99c7dbb | 2013-03-14 14:29:29 -0700 | [diff] [blame] | 33 | DisplayHardware/VirtualDisplaySurface.cpp \ |
| Mathias Agopian | ff2ed70 | 2013-09-01 21:36:12 -0700 | [diff] [blame] | 34 | Effects/Daltonizer.cpp \ |
| Mathias Agopian | 85cce37 | 2013-06-04 21:50:31 -0700 | [diff] [blame] | 35 | EventLog/EventLogTags.logtags \ |
| Mathias Agopian | 875d8e1 | 2013-06-07 15:35:48 -0700 | [diff] [blame] | 36 | EventLog/EventLog.cpp \ |
| Mathias Agopian | 3f84483 | 2013-08-07 21:24:32 -0700 | [diff] [blame] | 37 | RenderEngine/Description.cpp \ |
| Chia-I Wu | 401ef83 | 2017-12-01 10:52:22 -0800 | [diff] [blame] | 38 | RenderEngine/Image.cpp \ |
| Mathias Agopian | 3f84483 | 2013-08-07 21:24:32 -0700 | [diff] [blame] | 39 | RenderEngine/Mesh.cpp \ |
| 40 | RenderEngine/Program.cpp \ | ||||
| 41 | RenderEngine/ProgramCache.cpp \ | ||||
| Mathias Agopian | 875d8e1 | 2013-06-07 15:35:48 -0700 | [diff] [blame] | 42 | RenderEngine/GLExtensions.cpp \ |
| 43 | RenderEngine/RenderEngine.cpp \ | ||||
| Chia-I Wu | 7e60ecc | 2017-11-09 11:04:45 -0800 | [diff] [blame] | 44 | RenderEngine/Surface.cpp \ |
| Mathias Agopian | 49457ac | 2013-08-14 18:20:17 -0700 | [diff] [blame] | 45 | RenderEngine/Texture.cpp \ |
| Irvel | c274c63 | 2016-06-13 16:44:08 -0700 | [diff] [blame] | 46 | RenderEngine/GLES20RenderEngine.cpp \ |
| chaviw | 1d04428 | 2017-09-27 12:19:28 -0700 | [diff] [blame] | 47 | LayerProtoHelper.cpp \ |
| chaviw | a76b271 | 2017-09-20 12:02:26 -0700 | [diff] [blame] | 48 | RenderArea.cpp \ |
| Mathias Agopian | 875d8e1 | 2013-06-07 15:35:48 -0700 | [diff] [blame] | 49 | |
| Irvel | c274c63 | 2016-06-13 16:44:08 -0700 | [diff] [blame] | 50 | LOCAL_MODULE := libsurfaceflinger |
| Jesse Hall | 8b0d55e | 2016-03-31 19:29:36 -0700 | [diff] [blame] | 51 | LOCAL_C_INCLUDES := \ |
| Irvel | c274c63 | 2016-06-13 16:44:08 -0700 | [diff] [blame] | 52 | frameworks/native/vulkan/include \ |
| 53 | external/vulkan-validation-layers/libs/vkjson \ | ||||
| Chia-I Wu | cd8d7f0 | 2016-11-16 11:02:31 +0800 | [diff] [blame] | 54 | system/libhwbinder/fast_msgq/include \ |
| The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 55 | |
| Dan Stoza | 01049c8 | 2014-11-11 10:32:31 -0800 | [diff] [blame] | 56 | LOCAL_CFLAGS := -DLOG_TAG=\"SurfaceFlinger\" |
| Mathias Agopian | 076b1cc | 2009-04-10 14:24:30 -0700 | [diff] [blame] | 57 | LOCAL_CFLAGS += -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES |
| Fabien Sanglard | 9d96de4 | 2016-10-11 00:15:18 +0000 | [diff] [blame] | 58 | |
| Michael Lentine | 7306c67 | 2014-07-30 13:00:37 -0700 | [diff] [blame] | 59 | LOCAL_CFLAGS += -fvisibility=hidden -Werror=format |
| Mathias Agopian | b6df7d0 | 2013-05-09 14:53:35 -0700 | [diff] [blame] | 60 | |
| Hendrik Wagenaar | 87670ff | 2017-02-01 12:10:46 -0800 | [diff] [blame] | 61 | LOCAL_STATIC_LIBRARIES := \ |
| 62 | libhwcomposer-command-buffer \ | ||||
| 63 | libtrace_proto \ | ||||
| 64 | libvkjson \ | ||||
| 65 | libvr_manager \ | ||||
| Vishnu Nair | 3579887 | 2017-10-06 16:00:36 -0700 | [diff] [blame] | 66 | libvrflinger \ |
| 67 | libserviceutils | ||||
| 68 | |||||
| 69 | LOCAL_EXPORT_STATIC_LIBRARY_HEADERS := libserviceutils | ||||
| Hendrik Wagenaar | 87670ff | 2017-02-01 12:10:46 -0800 | [diff] [blame] | 70 | |
| The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 71 | LOCAL_SHARED_LIBRARIES := \ |
| Daniel Nicoara | 95a99a1 | 2017-03-21 15:30:45 -0400 | [diff] [blame] | 72 | android.frameworks.vr.composer@1.0 \ |
| Chia-I Wu | aab99f5 | 2016-10-05 12:59:58 +0800 | [diff] [blame] | 73 | android.hardware.graphics.allocator@2.0 \ |
| 74 | android.hardware.graphics.composer@2.1 \ | ||||
| Jiyong Park | 4b20c2e | 2017-01-14 19:45:11 +0900 | [diff] [blame] | 75 | android.hardware.configstore@1.0 \ |
| Jaesoo Lee | 585e32f | 2017-03-30 15:25:19 +0900 | [diff] [blame] | 76 | android.hardware.configstore-utils \ |
| Andreas Gampe | 89fd4f7 | 2014-11-13 14:18:56 -0800 | [diff] [blame] | 77 | libcutils \ |
| 78 | liblog \ | ||||
| 79 | libdl \ | ||||
| Chia-I Wu | cd8d7f0 | 2016-11-16 11:02:31 +0800 | [diff] [blame] | 80 | libfmq \ |
| Andreas Gampe | 89fd4f7 | 2014-11-13 14:18:56 -0800 | [diff] [blame] | 81 | libhardware \ |
| Yifan Hong | 67a4762 | 2016-11-17 13:02:06 -0800 | [diff] [blame] | 82 | libhidlbase \ |
| 83 | libhidltransport \ | ||||
| Chia-I Wu | aab99f5 | 2016-10-05 12:59:58 +0800 | [diff] [blame] | 84 | libhwbinder \ |
| Andreas Gampe | 89fd4f7 | 2014-11-13 14:18:56 -0800 | [diff] [blame] | 85 | libutils \ |
| 86 | libEGL \ | ||||
| 87 | libGLESv1_CM \ | ||||
| 88 | libGLESv2 \ | ||||
| 89 | libbinder \ | ||||
| 90 | libui \ | ||||
| 91 | libgui \ | ||||
| Irvel | c274c63 | 2016-06-13 16:44:08 -0700 | [diff] [blame] | 92 | libvulkan \ |
| Chia-I Wu | cd8d7f0 | 2016-11-16 11:02:31 +0800 | [diff] [blame] | 93 | libsync \ |
| Colin Cross | 6354938 | 2016-10-26 12:52:53 -0700 | [diff] [blame] | 94 | libprotobuf-cpp-lite \ |
| Ruchi Kandoi | b5ee178 | 2016-10-04 17:51:50 -0700 | [diff] [blame] | 95 | libbase \ |
| chaviw | 1d04428 | 2017-09-27 12:19:28 -0700 | [diff] [blame] | 96 | android.hardware.power@1.0 \ |
| 97 | liblayers_proto | ||||
| The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 98 | |
| Chia-I Wu | aab99f5 | 2016-10-05 12:59:58 +0800 | [diff] [blame] | 99 | LOCAL_EXPORT_SHARED_LIBRARY_HEADERS := \ |
| 100 | android.hardware.graphics.allocator@2.0 \ | ||||
| 101 | android.hardware.graphics.composer@2.1 \ | ||||
| Yifan Hong | 67a4762 | 2016-11-17 13:02:06 -0800 | [diff] [blame] | 102 | libhidlbase \ |
| 103 | libhidltransport \ | ||||
| Chia-I Wu | aab99f5 | 2016-10-05 12:59:58 +0800 | [diff] [blame] | 104 | libhwbinder |
| 105 | |||||
| Dan Stoza | 2b6d38e | 2017-06-01 16:40:30 -0700 | [diff] [blame] | 106 | LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code -std=c++1z |
| Andreas Gampe | 89fd4f7 | 2014-11-13 14:18:56 -0800 | [diff] [blame] | 107 | |
| The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 108 | include $(BUILD_SHARED_LIBRARY) |
| Keun young Park | 63f165f | 2012-08-31 10:53:36 -0700 | [diff] [blame] | 109 | |
| 110 | ############################################################### | ||||
| Mathias Agopian | 7ffaa7c | 2013-07-22 12:20:28 -0700 | [diff] [blame] | 111 | # build surfaceflinger's executable |
| 112 | include $(CLEAR_VARS) | ||||
| 113 | |||||
| Dan Stoza | 01049c8 | 2014-11-11 10:32:31 -0800 | [diff] [blame] | 114 | LOCAL_CLANG := true |
| Mathias Agopian | 4f4f094 | 2013-08-19 17:26:18 -0700 | [diff] [blame] | 115 | |
| Dimitry Ivanov | f06248f | 2016-08-01 14:13:37 -0700 | [diff] [blame] | 116 | LOCAL_LDFLAGS_32 := -Wl,--version-script,art/sigchainlib/version-script32.txt -Wl,--export-dynamic |
| 117 | LOCAL_LDFLAGS_64 := -Wl,--version-script,art/sigchainlib/version-script64.txt -Wl,--export-dynamic | ||||
| Dan Stoza | 01049c8 | 2014-11-11 10:32:31 -0800 | [diff] [blame] | 118 | LOCAL_CFLAGS := -DLOG_TAG=\"SurfaceFlinger\" |
| Dan Stoza | 01049c8 | 2014-11-11 10:32:31 -0800 | [diff] [blame] | 119 | |
| Tom Cherry | 7415599 | 2015-08-14 13:01:23 -0700 | [diff] [blame] | 120 | LOCAL_INIT_RC := surfaceflinger.rc |
| 121 | |||||
| Dan Stoza | 01049c8 | 2014-11-11 10:32:31 -0800 | [diff] [blame] | 122 | LOCAL_SRC_FILES := \ |
| Andreas Gampe | 89fd4f7 | 2014-11-13 14:18:56 -0800 | [diff] [blame] | 123 | main_surfaceflinger.cpp |
| Mathias Agopian | 7ffaa7c | 2013-07-22 12:20:28 -0700 | [diff] [blame] | 124 | |
| 125 | LOCAL_SHARED_LIBRARIES := \ | ||||
| Steven Moreland | 6ad20f7 | 2017-05-16 17:42:50 -0700 | [diff] [blame] | 126 | android.frameworks.displayservice@1.0 \ |
| Chia-I Wu | b278404 | 2017-03-30 11:56:21 -0700 | [diff] [blame] | 127 | android.hardware.configstore@1.0 \ |
| 128 | android.hardware.configstore-utils \ | ||||
| 129 | android.hardware.graphics.allocator@2.0 \ | ||||
| Andreas Gampe | 89fd4f7 | 2014-11-13 14:18:56 -0800 | [diff] [blame] | 130 | libsurfaceflinger \ |
| 131 | libcutils \ | ||||
| Steven Moreland | 6ad20f7 | 2017-05-16 17:42:50 -0700 | [diff] [blame] | 132 | libdisplayservicehidl \ |
| Andreas Gampe | 89fd4f7 | 2014-11-13 14:18:56 -0800 | [diff] [blame] | 133 | liblog \ |
| 134 | libbinder \ | ||||
| Chia-I Wu | b278404 | 2017-03-30 11:56:21 -0700 | [diff] [blame] | 135 | libhidlbase \ |
| 136 | libhidltransport \ | ||||
| Andreas Gampe | 89fd4f7 | 2014-11-13 14:18:56 -0800 | [diff] [blame] | 137 | libutils \ |
| Mathias Agopian | a934764 | 2017-02-13 16:42:28 -0800 | [diff] [blame] | 138 | libui \ |
| Pawin Vongmasa | 6e1193a | 2017-03-07 13:08:40 -0800 | [diff] [blame] | 139 | libgui \ |
| chaviw | 1d04428 | 2017-09-27 12:19:28 -0700 | [diff] [blame] | 140 | libdl \ |
| 141 | liblayers_proto | ||||
| Mathias Agopian | 7ffaa7c | 2013-07-22 12:20:28 -0700 | [diff] [blame] | 142 | |
| Dmitriy Ivanov | 4340a14 | 2014-10-20 14:17:26 -0700 | [diff] [blame] | 143 | LOCAL_WHOLE_STATIC_LIBRARIES := libsigchain |
| Vishnu Nair | 3579887 | 2017-10-06 16:00:36 -0700 | [diff] [blame] | 144 | LOCAL_STATIC_LIBRARIES := libtrace_proto \ |
| 145 | libserviceutils | ||||
| Dmitriy Ivanov | 4340a14 | 2014-10-20 14:17:26 -0700 | [diff] [blame] | 146 | |
| Dan Stoza | 01049c8 | 2014-11-11 10:32:31 -0800 | [diff] [blame] | 147 | LOCAL_MODULE := surfaceflinger |
| Mathias Agopian | 7ffaa7c | 2013-07-22 12:20:28 -0700 | [diff] [blame] | 148 | |
| Colin Cross | 89450d4 | 2014-02-20 15:36:21 -0800 | [diff] [blame] | 149 | ifdef TARGET_32_BIT_SURFACEFLINGER |
| 150 | LOCAL_32_BIT_ONLY := true | ||||
| 151 | endif | ||||
| 152 | |||||
| Steven Thomas | 6e8f706 | 2017-11-22 14:15:29 -0800 | [diff] [blame] | 153 | LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code -std=c++1z |
| Andreas Gampe | 89fd4f7 | 2014-11-13 14:18:56 -0800 | [diff] [blame] | 154 | |
| Mathias Agopian | 7ffaa7c | 2013-07-22 12:20:28 -0700 | [diff] [blame] | 155 | include $(BUILD_EXECUTABLE) |
| 156 | |||||
| 157 | ############################################################### | ||||
| Keun young Park | 63f165f | 2012-08-31 10:53:36 -0700 | [diff] [blame] | 158 | # uses jni which may not be available in PDK |
| 159 | ifneq ($(wildcard libnativehelper/include),) | ||||
| 160 | include $(CLEAR_VARS) | ||||
| Mathias Agopian | 1b3aeb4 | 2012-10-07 16:41:12 -0700 | [diff] [blame] | 161 | |
| Dan Stoza | 01049c8 | 2014-11-11 10:32:31 -0800 | [diff] [blame] | 162 | LOCAL_CLANG := true |
| 163 | |||||
| 164 | LOCAL_CFLAGS := -DLOG_TAG=\"SurfaceFlinger\" | ||||
| Dan Stoza | 01049c8 | 2014-11-11 10:32:31 -0800 | [diff] [blame] | 165 | |
| 166 | LOCAL_SRC_FILES := \ | ||||
| Keun young Park | 63f165f | 2012-08-31 10:53:36 -0700 | [diff] [blame] | 167 | DdmConnection.cpp |
| 168 | |||||
| 169 | LOCAL_SHARED_LIBRARIES := \ | ||||
| Andreas Gampe | 89fd4f7 | 2014-11-13 14:18:56 -0800 | [diff] [blame] | 170 | libcutils \ |
| 171 | liblog \ | ||||
| 172 | libdl | ||||
| Keun young Park | 63f165f | 2012-08-31 10:53:36 -0700 | [diff] [blame] | 173 | |
| Dan Stoza | 01049c8 | 2014-11-11 10:32:31 -0800 | [diff] [blame] | 174 | LOCAL_MODULE := libsurfaceflinger_ddmconnection |
| Keun young Park | 63f165f | 2012-08-31 10:53:36 -0700 | [diff] [blame] | 175 | |
| Andreas Gampe | 89fd4f7 | 2014-11-13 14:18:56 -0800 | [diff] [blame] | 176 | LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code |
| 177 | |||||
| Keun young Park | 63f165f | 2012-08-31 10:53:36 -0700 | [diff] [blame] | 178 | include $(BUILD_SHARED_LIBRARY) |
| 179 | endif # libnativehelper | ||||
| Robert Carr | eb89399 | 2017-03-10 13:09:00 -0800 | [diff] [blame] | 180 | |
| 181 | include $(call first-makefiles-under,$(LOCAL_PATH)) | ||||