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 := \ |
Hendrik Wagenaar | 87670ff | 2017-02-01 12:10:46 -0800 | [diff] [blame] | 62 | libtrace_proto \ |
63 | libvkjson \ | ||||
64 | libvr_manager \ | ||||
Vishnu Nair | 3579887 | 2017-10-06 16:00:36 -0700 | [diff] [blame] | 65 | libvrflinger \ |
66 | libserviceutils | ||||
67 | |||||
Courtney Goeltzenleuchter | 8755122 | 2018-01-16 14:00:09 -0800 | [diff] [blame] | 68 | LOCAL_HEADER_LIBRARIES := \ |
69 | android.hardware.graphics.composer@2.1-command-buffer | ||||
70 | |||||
Vishnu Nair | 3579887 | 2017-10-06 16:00:36 -0700 | [diff] [blame] | 71 | LOCAL_EXPORT_STATIC_LIBRARY_HEADERS := libserviceutils |
Hendrik Wagenaar | 87670ff | 2017-02-01 12:10:46 -0800 | [diff] [blame] | 72 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 73 | LOCAL_SHARED_LIBRARIES := \ |
Daniel Nicoara | 95a99a1 | 2017-03-21 15:30:45 -0400 | [diff] [blame] | 74 | android.frameworks.vr.composer@1.0 \ |
Chia-I Wu | aab99f5 | 2016-10-05 12:59:58 +0800 | [diff] [blame] | 75 | android.hardware.graphics.allocator@2.0 \ |
76 | android.hardware.graphics.composer@2.1 \ | ||||
Jiyong Park | 4b20c2e | 2017-01-14 19:45:11 +0900 | [diff] [blame] | 77 | android.hardware.configstore@1.0 \ |
Jaesoo Lee | 585e32f | 2017-03-30 15:25:19 +0900 | [diff] [blame] | 78 | android.hardware.configstore-utils \ |
Andreas Gampe | 89fd4f7 | 2014-11-13 14:18:56 -0800 | [diff] [blame] | 79 | libcutils \ |
80 | liblog \ | ||||
81 | libdl \ | ||||
Chia-I Wu | cd8d7f0 | 2016-11-16 11:02:31 +0800 | [diff] [blame] | 82 | libfmq \ |
Andreas Gampe | 89fd4f7 | 2014-11-13 14:18:56 -0800 | [diff] [blame] | 83 | libhardware \ |
Yifan Hong | 67a4762 | 2016-11-17 13:02:06 -0800 | [diff] [blame] | 84 | libhidlbase \ |
85 | libhidltransport \ | ||||
Chia-I Wu | aab99f5 | 2016-10-05 12:59:58 +0800 | [diff] [blame] | 86 | libhwbinder \ |
Andreas Gampe | 89fd4f7 | 2014-11-13 14:18:56 -0800 | [diff] [blame] | 87 | libutils \ |
88 | libEGL \ | ||||
89 | libGLESv1_CM \ | ||||
90 | libGLESv2 \ | ||||
91 | libbinder \ | ||||
92 | libui \ | ||||
93 | libgui \ | ||||
Irvel | c274c63 | 2016-06-13 16:44:08 -0700 | [diff] [blame] | 94 | libvulkan \ |
Chia-I Wu | cd8d7f0 | 2016-11-16 11:02:31 +0800 | [diff] [blame] | 95 | libsync \ |
Colin Cross | 6354938 | 2016-10-26 12:52:53 -0700 | [diff] [blame] | 96 | libprotobuf-cpp-lite \ |
Ruchi Kandoi | b5ee178 | 2016-10-04 17:51:50 -0700 | [diff] [blame] | 97 | libbase \ |
chaviw | 1d04428 | 2017-09-27 12:19:28 -0700 | [diff] [blame] | 98 | android.hardware.power@1.0 \ |
99 | liblayers_proto | ||||
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 100 | |
Chia-I Wu | aab99f5 | 2016-10-05 12:59:58 +0800 | [diff] [blame] | 101 | LOCAL_EXPORT_SHARED_LIBRARY_HEADERS := \ |
102 | android.hardware.graphics.allocator@2.0 \ | ||||
103 | android.hardware.graphics.composer@2.1 \ | ||||
Yifan Hong | 67a4762 | 2016-11-17 13:02:06 -0800 | [diff] [blame] | 104 | libhidlbase \ |
105 | libhidltransport \ | ||||
Chia-I Wu | aab99f5 | 2016-10-05 12:59:58 +0800 | [diff] [blame] | 106 | libhwbinder |
107 | |||||
Dan Stoza | 2b6d38e | 2017-06-01 16:40:30 -0700 | [diff] [blame] | 108 | LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code -std=c++1z |
Andreas Gampe | 89fd4f7 | 2014-11-13 14:18:56 -0800 | [diff] [blame] | 109 | |
The Android Open Source Project | edbf3b6 | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 110 | include $(BUILD_SHARED_LIBRARY) |
Keun young Park | 63f165f | 2012-08-31 10:53:36 -0700 | [diff] [blame] | 111 | |
112 | ############################################################### | ||||
Mathias Agopian | 7ffaa7c | 2013-07-22 12:20:28 -0700 | [diff] [blame] | 113 | # build surfaceflinger's executable |
114 | include $(CLEAR_VARS) | ||||
115 | |||||
Dan Stoza | 01049c8 | 2014-11-11 10:32:31 -0800 | [diff] [blame] | 116 | LOCAL_CLANG := true |
Mathias Agopian | 4f4f094 | 2013-08-19 17:26:18 -0700 | [diff] [blame] | 117 | |
Dimitry Ivanov | f06248f | 2016-08-01 14:13:37 -0700 | [diff] [blame] | 118 | LOCAL_LDFLAGS_32 := -Wl,--version-script,art/sigchainlib/version-script32.txt -Wl,--export-dynamic |
119 | 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] | 120 | LOCAL_CFLAGS := -DLOG_TAG=\"SurfaceFlinger\" |
Dan Stoza | 01049c8 | 2014-11-11 10:32:31 -0800 | [diff] [blame] | 121 | |
Tom Cherry | 7415599 | 2015-08-14 13:01:23 -0700 | [diff] [blame] | 122 | LOCAL_INIT_RC := surfaceflinger.rc |
123 | |||||
Dan Stoza | 01049c8 | 2014-11-11 10:32:31 -0800 | [diff] [blame] | 124 | LOCAL_SRC_FILES := \ |
Andreas Gampe | 89fd4f7 | 2014-11-13 14:18:56 -0800 | [diff] [blame] | 125 | main_surfaceflinger.cpp |
Mathias Agopian | 7ffaa7c | 2013-07-22 12:20:28 -0700 | [diff] [blame] | 126 | |
127 | LOCAL_SHARED_LIBRARIES := \ | ||||
Steven Moreland | 6ad20f7 | 2017-05-16 17:42:50 -0700 | [diff] [blame] | 128 | android.frameworks.displayservice@1.0 \ |
Chia-I Wu | b278404 | 2017-03-30 11:56:21 -0700 | [diff] [blame] | 129 | android.hardware.configstore@1.0 \ |
130 | android.hardware.configstore-utils \ | ||||
131 | android.hardware.graphics.allocator@2.0 \ | ||||
Andreas Gampe | 89fd4f7 | 2014-11-13 14:18:56 -0800 | [diff] [blame] | 132 | libsurfaceflinger \ |
133 | libcutils \ | ||||
Steven Moreland | 6ad20f7 | 2017-05-16 17:42:50 -0700 | [diff] [blame] | 134 | libdisplayservicehidl \ |
Andreas Gampe | 89fd4f7 | 2014-11-13 14:18:56 -0800 | [diff] [blame] | 135 | liblog \ |
136 | libbinder \ | ||||
Chia-I Wu | b278404 | 2017-03-30 11:56:21 -0700 | [diff] [blame] | 137 | libhidlbase \ |
138 | libhidltransport \ | ||||
Andreas Gampe | 89fd4f7 | 2014-11-13 14:18:56 -0800 | [diff] [blame] | 139 | libutils \ |
Mathias Agopian | a934764 | 2017-02-13 16:42:28 -0800 | [diff] [blame] | 140 | libui \ |
Pawin Vongmasa | 6e1193a | 2017-03-07 13:08:40 -0800 | [diff] [blame] | 141 | libgui \ |
chaviw | 1d04428 | 2017-09-27 12:19:28 -0700 | [diff] [blame] | 142 | libdl \ |
143 | liblayers_proto | ||||
Mathias Agopian | 7ffaa7c | 2013-07-22 12:20:28 -0700 | [diff] [blame] | 144 | |
Dmitriy Ivanov | 4340a14 | 2014-10-20 14:17:26 -0700 | [diff] [blame] | 145 | LOCAL_WHOLE_STATIC_LIBRARIES := libsigchain |
Vishnu Nair | 3579887 | 2017-10-06 16:00:36 -0700 | [diff] [blame] | 146 | LOCAL_STATIC_LIBRARIES := libtrace_proto \ |
147 | libserviceutils | ||||
Dmitriy Ivanov | 4340a14 | 2014-10-20 14:17:26 -0700 | [diff] [blame] | 148 | |
Dan Stoza | 01049c8 | 2014-11-11 10:32:31 -0800 | [diff] [blame] | 149 | LOCAL_MODULE := surfaceflinger |
Mathias Agopian | 7ffaa7c | 2013-07-22 12:20:28 -0700 | [diff] [blame] | 150 | |
Colin Cross | 89450d4 | 2014-02-20 15:36:21 -0800 | [diff] [blame] | 151 | ifdef TARGET_32_BIT_SURFACEFLINGER |
152 | LOCAL_32_BIT_ONLY := true | ||||
153 | endif | ||||
154 | |||||
Steven Thomas | 6e8f706 | 2017-11-22 14:15:29 -0800 | [diff] [blame] | 155 | LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code -std=c++1z |
Andreas Gampe | 89fd4f7 | 2014-11-13 14:18:56 -0800 | [diff] [blame] | 156 | |
Mathias Agopian | 7ffaa7c | 2013-07-22 12:20:28 -0700 | [diff] [blame] | 157 | include $(BUILD_EXECUTABLE) |
158 | |||||
159 | ############################################################### | ||||
Keun young Park | 63f165f | 2012-08-31 10:53:36 -0700 | [diff] [blame] | 160 | # uses jni which may not be available in PDK |
161 | ifneq ($(wildcard libnativehelper/include),) | ||||
162 | include $(CLEAR_VARS) | ||||
Mathias Agopian | 1b3aeb4 | 2012-10-07 16:41:12 -0700 | [diff] [blame] | 163 | |
Dan Stoza | 01049c8 | 2014-11-11 10:32:31 -0800 | [diff] [blame] | 164 | LOCAL_CLANG := true |
165 | |||||
166 | LOCAL_CFLAGS := -DLOG_TAG=\"SurfaceFlinger\" | ||||
Dan Stoza | 01049c8 | 2014-11-11 10:32:31 -0800 | [diff] [blame] | 167 | |
168 | LOCAL_SRC_FILES := \ | ||||
Keun young Park | 63f165f | 2012-08-31 10:53:36 -0700 | [diff] [blame] | 169 | DdmConnection.cpp |
170 | |||||
171 | LOCAL_SHARED_LIBRARIES := \ | ||||
Andreas Gampe | 89fd4f7 | 2014-11-13 14:18:56 -0800 | [diff] [blame] | 172 | libcutils \ |
173 | liblog \ | ||||
174 | libdl | ||||
Keun young Park | 63f165f | 2012-08-31 10:53:36 -0700 | [diff] [blame] | 175 | |
Dan Stoza | 01049c8 | 2014-11-11 10:32:31 -0800 | [diff] [blame] | 176 | LOCAL_MODULE := libsurfaceflinger_ddmconnection |
Keun young Park | 63f165f | 2012-08-31 10:53:36 -0700 | [diff] [blame] | 177 | |
Andreas Gampe | 89fd4f7 | 2014-11-13 14:18:56 -0800 | [diff] [blame] | 178 | LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code |
179 | |||||
Keun young Park | 63f165f | 2012-08-31 10:53:36 -0700 | [diff] [blame] | 180 | include $(BUILD_SHARED_LIBRARY) |
181 | endif # libnativehelper | ||||
Robert Carr | eb89399 | 2017-03-10 13:09:00 -0800 | [diff] [blame] | 182 | |
183 | include $(call first-makefiles-under,$(LOCAL_PATH)) |