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