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