Romain Guy | e4d0112 | 2010-06-16 18:44:05 -0700 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | include $(CLEAR_VARS) |
Dan Albert | 88ba339 | 2014-09-11 16:20:16 -0700 | [diff] [blame] | 3 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
Romain Guy | e4d0112 | 2010-06-16 18:44:05 -0700 | [diff] [blame] | 4 | |
sergeyv | 5bb5626 | 2016-10-10 12:25:06 -0700 | [diff] [blame] | 5 | BUGREPORT_FONT_CACHE_USAGE := false |
Chris Craik | b565df1 | 2015-10-05 13:00:52 -0700 | [diff] [blame] | 6 | |
John Reck | 975591a | 2016-01-22 16:28:07 -0800 | [diff] [blame] | 7 | # Enables fine-grained GLES error checking |
| 8 | # If set to true, every GLES call is wrapped & error checked |
| 9 | # Has moderate overhead |
John Reck | b5544d0 | 2017-01-25 15:09:37 -0800 | [diff] [blame] | 10 | HWUI_ENABLE_OPENGL_VALIDATION := true |
John Reck | 975591a | 2016-01-22 16:28:07 -0800 | [diff] [blame] | 11 | |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 12 | hwui_src_files := \ |
sergeyv | c1c5406 | 2016-10-19 18:47:26 -0700 | [diff] [blame] | 13 | hwui/Bitmap.cpp \ |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 14 | font/CacheTexture.cpp \ |
| 15 | font/Font.cpp \ |
sergeyv | dccca44 | 2016-03-21 15:38:21 -0700 | [diff] [blame] | 16 | hwui/Canvas.cpp \ |
| 17 | hwui/MinikinSkia.cpp \ |
| 18 | hwui/MinikinUtils.cpp \ |
| 19 | hwui/PaintImpl.cpp \ |
sergeyv | bad9918 | 2016-03-17 11:24:22 -0700 | [diff] [blame] | 20 | hwui/Typeface.cpp \ |
Stan Iliev | 021693b | 2016-10-17 16:26:15 -0400 | [diff] [blame] | 21 | pipeline/skia/GLFunctorDrawable.cpp \ |
| 22 | pipeline/skia/LayerDrawable.cpp \ |
| 23 | pipeline/skia/RenderNodeDrawable.cpp \ |
| 24 | pipeline/skia/ReorderBarrierDrawables.cpp \ |
| 25 | pipeline/skia/SkiaDisplayList.cpp \ |
Stan Iliev | 500a0c3 | 2016-10-26 10:30:09 -0400 | [diff] [blame] | 26 | pipeline/skia/SkiaOpenGLPipeline.cpp \ |
Derek Sollenberger | c4fbada | 2016-11-07 16:05:41 -0500 | [diff] [blame] | 27 | pipeline/skia/SkiaOpenGLReadback.cpp \ |
Stan Iliev | 500a0c3 | 2016-10-26 10:30:09 -0400 | [diff] [blame] | 28 | pipeline/skia/SkiaPipeline.cpp \ |
Matt Sarett | cf2c05c | 2016-10-26 11:03:23 -0400 | [diff] [blame] | 29 | pipeline/skia/SkiaProfileRenderer.cpp \ |
Stan Iliev | 021693b | 2016-10-17 16:26:15 -0400 | [diff] [blame] | 30 | pipeline/skia/SkiaRecordingCanvas.cpp \ |
Stan Iliev | 500a0c3 | 2016-10-26 10:30:09 -0400 | [diff] [blame] | 31 | pipeline/skia/SkiaVulkanPipeline.cpp \ |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 32 | renderstate/Blend.cpp \ |
| 33 | renderstate/MeshState.cpp \ |
Chris Craik | 9fded23 | 2015-11-11 16:42:34 -0800 | [diff] [blame] | 34 | renderstate/OffscreenBufferPool.cpp \ |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 35 | renderstate/PixelBufferState.cpp \ |
| 36 | renderstate/RenderState.cpp \ |
| 37 | renderstate/Scissor.cpp \ |
| 38 | renderstate/Stencil.cpp \ |
| 39 | renderstate/TextureState.cpp \ |
| 40 | renderthread/CanvasContext.cpp \ |
Stan Iliev | 768e393 | 2016-07-08 21:34:52 -0400 | [diff] [blame] | 41 | renderthread/OpenGLPipeline.cpp \ |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 42 | renderthread/DrawFrameTask.cpp \ |
| 43 | renderthread/EglManager.cpp \ |
Derek Sollenberger | 0e3cba3 | 2016-11-09 11:58:36 -0500 | [diff] [blame] | 44 | renderthread/VulkanManager.cpp \ |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 45 | renderthread/RenderProxy.cpp \ |
| 46 | renderthread/RenderTask.cpp \ |
| 47 | renderthread/RenderThread.cpp \ |
| 48 | renderthread/TimeLord.cpp \ |
Greg Daniel | cd55852 | 2016-11-17 13:31:40 -0500 | [diff] [blame] | 49 | renderthread/Frame.cpp \ |
John Reck | df1742e | 2017-01-19 15:56:21 -0800 | [diff] [blame] | 50 | service/GraphicsStatsService.cpp \ |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 51 | thread/TaskManager.cpp \ |
| 52 | utils/Blur.cpp \ |
| 53 | utils/GLUtils.cpp \ |
| 54 | utils/LinearAllocator.cpp \ |
Chris Craik | 6e6646c | 2015-09-14 15:54:12 -0700 | [diff] [blame] | 55 | utils/StringUtils.cpp \ |
Tom Hudson | b2f5bd2 | 2015-10-15 16:41:55 -0400 | [diff] [blame] | 56 | utils/TestWindowContext.cpp \ |
Doris Liu | 804618d | 2015-11-16 22:48:34 -0800 | [diff] [blame] | 57 | utils/VectorDrawableUtils.cpp \ |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 58 | AmbientShadow.cpp \ |
| 59 | AnimationContext.cpp \ |
| 60 | Animator.cpp \ |
| 61 | AnimatorManager.cpp \ |
Chris Craik | 5e00c7c | 2016-07-06 16:10:09 -0700 | [diff] [blame] | 62 | BakedOpDispatcher.cpp \ |
| 63 | BakedOpRenderer.cpp \ |
| 64 | BakedOpState.cpp \ |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 65 | Caches.cpp \ |
| 66 | CanvasState.cpp \ |
| 67 | ClipArea.cpp \ |
| 68 | DamageAccumulator.cpp \ |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 69 | DeferredLayerUpdater.cpp \ |
John Reck | 704bed0 | 2015-11-05 09:22:17 -0800 | [diff] [blame] | 70 | DeviceInfo.cpp \ |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 71 | DisplayList.cpp \ |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 72 | Extensions.cpp \ |
| 73 | FboCache.cpp \ |
| 74 | FontRenderer.cpp \ |
Chris Craik | 5e00c7c | 2016-07-06 16:10:09 -0700 | [diff] [blame] | 75 | FrameBuilder.cpp \ |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 76 | FrameInfo.cpp \ |
| 77 | FrameInfoVisualizer.cpp \ |
| 78 | GammaFontRenderer.cpp \ |
Greg Daniel | 8cd3edf | 2017-01-09 14:15:41 -0500 | [diff] [blame] | 79 | GlLayer.cpp \ |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 80 | GlopBuilder.cpp \ |
John Reck | 38e0c32 | 2015-11-10 12:19:17 -0800 | [diff] [blame] | 81 | GpuMemoryTracker.cpp \ |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 82 | GradientCache.cpp \ |
| 83 | Image.cpp \ |
| 84 | Interpolator.cpp \ |
| 85 | JankTracker.cpp \ |
| 86 | Layer.cpp \ |
Chris Craik | 5e00c7c | 2016-07-06 16:10:09 -0700 | [diff] [blame] | 87 | LayerBuilder.cpp \ |
Chris Craik | 0b7e824 | 2015-10-28 16:50:44 -0700 | [diff] [blame] | 88 | LayerUpdateQueue.cpp \ |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 89 | Matrix.cpp \ |
Chris Craik | 5e00c7c | 2016-07-06 16:10:09 -0700 | [diff] [blame] | 90 | OpDumper.cpp \ |
Derek Sollenberger | c4fbada | 2016-11-07 16:05:41 -0500 | [diff] [blame] | 91 | OpenGLReadback.cpp \ |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 92 | Patch.cpp \ |
| 93 | PatchCache.cpp \ |
| 94 | PathCache.cpp \ |
Doris Liu | 30bcf69 | 2015-11-04 14:56:24 -0800 | [diff] [blame] | 95 | PathParser.cpp \ |
Chris Craik | 5e00c7c | 2016-07-06 16:10:09 -0700 | [diff] [blame] | 96 | PathTessellator.cpp \ |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 97 | PixelBuffer.cpp \ |
Matt Sarett | de97307 | 2016-10-25 11:07:40 -0400 | [diff] [blame] | 98 | ProfileRenderer.cpp \ |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 99 | Program.cpp \ |
| 100 | ProgramCache.cpp \ |
| 101 | Properties.cpp \ |
Doris Liu | 766431a | 2016-02-04 22:17:11 +0000 | [diff] [blame] | 102 | PropertyValuesAnimatorSet.cpp \ |
Chris Craik | 5e00c7c | 2016-07-06 16:10:09 -0700 | [diff] [blame] | 103 | PropertyValuesHolder.cpp \ |
Chris Craik | 5e00c7c | 2016-07-06 16:10:09 -0700 | [diff] [blame] | 104 | RecordingCanvas.cpp \ |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 105 | RenderBufferCache.cpp \ |
| 106 | RenderNode.cpp \ |
| 107 | RenderProperties.cpp \ |
| 108 | ResourceCache.cpp \ |
| 109 | ShadowTessellator.cpp \ |
| 110 | SkiaCanvas.cpp \ |
| 111 | SkiaCanvasProxy.cpp \ |
| 112 | SkiaShader.cpp \ |
| 113 | Snapshot.cpp \ |
| 114 | SpotShadow.cpp \ |
| 115 | TessellationCache.cpp \ |
| 116 | TextDropShadowCache.cpp \ |
| 117 | Texture.cpp \ |
John Reck | e248bd1 | 2015-08-05 13:53:53 -0700 | [diff] [blame] | 118 | TextureCache.cpp \ |
Doris Liu | 4bbc293 | 2015-12-01 17:59:40 -0800 | [diff] [blame] | 119 | VectorDrawable.cpp \ |
Greg Daniel | 45ec62b | 2017-01-04 14:27:00 -0500 | [diff] [blame] | 120 | VkLayer.cpp \ |
John Reck | e248bd1 | 2015-08-05 13:53:53 -0700 | [diff] [blame] | 121 | protos/hwui.proto |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 122 | |
Chris Craik | 8160f20 | 2015-12-02 14:50:25 -0800 | [diff] [blame] | 123 | hwui_test_common_src_files := \ |
Chris Craik | 27e58b4 | 2015-12-07 10:01:38 -0800 | [diff] [blame] | 124 | $(call all-cpp-files-under, tests/common/scenes) \ |
sergeyv | 7dc370b | 2016-06-17 11:21:11 -0700 | [diff] [blame] | 125 | tests/common/LeakChecker.cpp \ |
sergeyv | 06a62f6 | 2016-06-16 14:52:20 -0700 | [diff] [blame] | 126 | tests/common/TestListViewSceneBase.cpp \ |
Chris Craik | 27e58b4 | 2015-12-07 10:01:38 -0800 | [diff] [blame] | 127 | tests/common/TestContext.cpp \ |
| 128 | tests/common/TestScene.cpp \ |
Chris Craik | 8160f20 | 2015-12-02 14:50:25 -0800 | [diff] [blame] | 129 | tests/common/TestUtils.cpp |
| 130 | |
sergeyv | 8bd5edf | 2016-05-13 15:03:35 -0700 | [diff] [blame] | 131 | hwui_debug_common_src_files := \ |
| 132 | debug/wrap_gles.cpp \ |
| 133 | debug/DefaultGlesDriver.cpp \ |
| 134 | debug/GlesErrorCheckWrapper.cpp \ |
| 135 | debug/GlesDriver.cpp \ |
| 136 | debug/FatalBaseDriver.cpp \ |
| 137 | debug/NullGlesDriver.cpp |
| 138 | |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 139 | hwui_cflags := \ |
| 140 | -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES \ |
| 141 | -DATRACE_TAG=ATRACE_TAG_VIEW -DLOG_TAG=\"OpenGLRenderer\" \ |
John Reck | 82f5e0c | 2015-10-22 17:07:45 -0700 | [diff] [blame] | 142 | -Wall -Wno-unused-parameter -Wunreachable-code -Werror |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 143 | |
John Reck | 2d5b8d7 | 2016-07-28 15:36:11 -0700 | [diff] [blame] | 144 | ifeq ($(TARGET_USES_HWC2),true) |
| 145 | hwui_cflags += -DUSE_HWC2 |
| 146 | endif |
| 147 | |
Romain Guy | 253f2c2 | 2016-09-28 17:34:42 -0700 | [diff] [blame] | 148 | # TODO: Linear blending should be enabled by default, but we are |
| 149 | # TODO: making it an opt-in while it's a work in progress |
| 150 | # TODO: The final test should be: |
| 151 | # TODO: ifneq ($(TARGET_ENABLE_LINEAR_BLENDING),false) |
| 152 | ifeq ($(TARGET_ENABLE_LINEAR_BLENDING),true) |
| 153 | hwui_cflags += -DANDROID_ENABLE_LINEAR_BLENDING |
| 154 | endif |
| 155 | |
John Reck | c90ed75 | 2015-11-04 07:39:44 -0800 | [diff] [blame] | 156 | # GCC false-positives on this warning, and since we -Werror that's |
| 157 | # a problem |
| 158 | hwui_cflags += -Wno-free-nonheap-object |
| 159 | |
John Reck | f148076 | 2016-07-03 18:28:25 -0700 | [diff] [blame] | 160 | # clang's warning is broken, see: https://llvm.org/bugs/show_bug.cgi?id=21629 |
| 161 | hwui_cflags += -Wno-missing-braces |
| 162 | |
sergeyv | af102be | 2016-09-09 18:02:07 -0700 | [diff] [blame] | 163 | ifeq (true, $(BUGREPORT_FONT_CACHE_USAGE)) |
| 164 | hwui_src_files += \ |
| 165 | font/FontCacheHistoryTracker.cpp |
| 166 | hwui_cflags += -DBUGREPORT_FONT_CACHE_USAGE |
| 167 | endif |
| 168 | |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 169 | ifndef HWUI_COMPILE_SYMBOLS |
| 170 | hwui_cflags += -fvisibility=hidden |
| 171 | endif |
| 172 | |
| 173 | ifdef HWUI_COMPILE_FOR_PERF |
| 174 | # TODO: Non-arm? |
| 175 | hwui_cflags += -fno-omit-frame-pointer -marm -mapcs |
| 176 | endif |
| 177 | |
John Reck | e248bd1 | 2015-08-05 13:53:53 -0700 | [diff] [blame] | 178 | # This has to be lazy-resolved because it depends on the LOCAL_MODULE_CLASS |
| 179 | # which varies depending on what is being built |
| 180 | define hwui_proto_include |
| 181 | $(call local-generated-sources-dir)/proto/$(LOCAL_PATH) |
| 182 | endef |
| 183 | |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 184 | hwui_c_includes += \ |
Leon Scroggins III | 5507807 | 2015-07-31 10:38:40 -0400 | [diff] [blame] | 185 | external/skia/include/private \ |
sergeyv | dccca44 | 2016-03-21 15:38:21 -0700 | [diff] [blame] | 186 | external/skia/src/core \ |
Stan Iliev | 021693b | 2016-10-17 16:26:15 -0400 | [diff] [blame] | 187 | external/skia/src/effects \ |
Stan Iliev | db45a4b | 2016-11-08 14:18:31 -0500 | [diff] [blame] | 188 | external/skia/src/image \ |
Leon Scroggins III | 82c581d | 2016-12-12 11:00:52 -0500 | [diff] [blame] | 189 | external/skia/src/utils \ |
sergeyv | dccca44 | 2016-03-21 15:38:21 -0700 | [diff] [blame] | 190 | external/harfbuzz_ng/src \ |
| 191 | external/freetype/include |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 192 | |
Po-Chien Hsueh | c5ae595 | 2017-02-09 10:38:34 +0800 | [diff] [blame] | 193 | # enable RENDERSCRIPT |
| 194 | hwui_c_includes += \ |
| 195 | $(call intermediates-dir-for,STATIC_LIBRARIES,TARGET,) \ |
| 196 | frameworks/rs/cpp \ |
| 197 | frameworks/rs |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 198 | |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 199 | # ------------------------ |
| 200 | # static library |
| 201 | # ------------------------ |
| 202 | |
| 203 | include $(CLEAR_VARS) |
| 204 | |
| 205 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
| 206 | LOCAL_MODULE := libhwui_static |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 207 | LOCAL_CFLAGS := $(hwui_cflags) |
| 208 | LOCAL_SRC_FILES := $(hwui_src_files) |
sergeyv | 8bd5edf | 2016-05-13 15:03:35 -0700 | [diff] [blame] | 209 | |
| 210 | ifeq (true, $(HWUI_ENABLE_OPENGL_VALIDATION)) |
| 211 | LOCAL_CFLAGS += -include debug/wrap_gles.h |
| 212 | LOCAL_CFLAGS += -DDEBUG_OPENGL=3 |
| 213 | LOCAL_SRC_FILES += $(hwui_debug_common_src_files) |
| 214 | endif |
| 215 | |
John Reck | e248bd1 | 2015-08-05 13:53:53 -0700 | [diff] [blame] | 216 | LOCAL_C_INCLUDES := $(hwui_c_includes) $(call hwui_proto_include) |
Derek Sollenberger | 991da31 | 2016-02-11 12:13:07 -0500 | [diff] [blame] | 217 | LOCAL_EXPORT_C_INCLUDE_DIRS := \ |
| 218 | $(LOCAL_PATH) \ |
Derek Sollenberger | 991da31 | 2016-02-11 12:13:07 -0500 | [diff] [blame] | 219 | $(call hwui_proto_include) |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 220 | |
Derek Sollenberger | 991da31 | 2016-02-11 12:13:07 -0500 | [diff] [blame] | 221 | include $(LOCAL_PATH)/hwui_static_deps.mk |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 222 | include $(BUILD_STATIC_LIBRARY) |
| 223 | |
| 224 | # ------------------------ |
Chris Craik | 5fbd9db | 2015-10-19 11:22:11 -0700 | [diff] [blame] | 225 | # static library null gpu |
| 226 | # ------------------------ |
| 227 | |
| 228 | include $(CLEAR_VARS) |
| 229 | |
| 230 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
sergeyv | 8bd5edf | 2016-05-13 15:03:35 -0700 | [diff] [blame] | 231 | LOCAL_MODULE := libhwui_static_debug |
Chris Craik | 5fbd9db | 2015-10-19 11:22:11 -0700 | [diff] [blame] | 232 | LOCAL_CFLAGS := \ |
| 233 | $(hwui_cflags) \ |
sergeyv | 8bd5edf | 2016-05-13 15:03:35 -0700 | [diff] [blame] | 234 | -include debug/wrap_gles.h \ |
Chris Craik | 5fbd9db | 2015-10-19 11:22:11 -0700 | [diff] [blame] | 235 | -DHWUI_NULL_GPU |
| 236 | LOCAL_SRC_FILES := \ |
| 237 | $(hwui_src_files) \ |
sergeyv | 8bd5edf | 2016-05-13 15:03:35 -0700 | [diff] [blame] | 238 | $(hwui_debug_common_src_files) \ |
| 239 | debug/nullegl.cpp |
Chris Craik | 5fbd9db | 2015-10-19 11:22:11 -0700 | [diff] [blame] | 240 | LOCAL_C_INCLUDES := $(hwui_c_includes) $(call hwui_proto_include) |
Derek Sollenberger | 991da31 | 2016-02-11 12:13:07 -0500 | [diff] [blame] | 241 | LOCAL_EXPORT_C_INCLUDE_DIRS := \ |
| 242 | $(LOCAL_PATH) \ |
Derek Sollenberger | 991da31 | 2016-02-11 12:13:07 -0500 | [diff] [blame] | 243 | $(call hwui_proto_include) |
Chris Craik | 5fbd9db | 2015-10-19 11:22:11 -0700 | [diff] [blame] | 244 | |
Derek Sollenberger | 991da31 | 2016-02-11 12:13:07 -0500 | [diff] [blame] | 245 | include $(LOCAL_PATH)/hwui_static_deps.mk |
Chris Craik | 5fbd9db | 2015-10-19 11:22:11 -0700 | [diff] [blame] | 246 | include $(BUILD_STATIC_LIBRARY) |
| 247 | |
| 248 | # ------------------------ |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 249 | # shared library |
| 250 | # ------------------------ |
| 251 | |
| 252 | include $(CLEAR_VARS) |
| 253 | |
John Reck | a2732a2 | 2014-12-18 13:52:33 -0800 | [diff] [blame] | 254 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES |
| 255 | LOCAL_MODULE := libhwui |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 256 | LOCAL_WHOLE_STATIC_LIBRARIES := libhwui_static |
Derek Sollenberger | 991da31 | 2016-02-11 12:13:07 -0500 | [diff] [blame] | 257 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) |
Romain Guy | e4d0112 | 2010-06-16 18:44:05 -0700 | [diff] [blame] | 258 | |
Derek Sollenberger | 991da31 | 2016-02-11 12:13:07 -0500 | [diff] [blame] | 259 | include $(LOCAL_PATH)/hwui_static_deps.mk |
John Reck | a2732a2 | 2014-12-18 13:52:33 -0800 | [diff] [blame] | 260 | include $(BUILD_SHARED_LIBRARY) |
Andreas Gampe | edaecc1 | 2014-11-10 20:54:07 -0800 | [diff] [blame] | 261 | |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 262 | # ------------------------ |
| 263 | # unit tests |
| 264 | # ------------------------ |
| 265 | |
| 266 | include $(CLEAR_VARS) |
| 267 | |
| 268 | LOCAL_MODULE := hwui_unit_tests |
| 269 | LOCAL_MODULE_TAGS := tests |
sergeyv | 8bd5edf | 2016-05-13 15:03:35 -0700 | [diff] [blame] | 270 | LOCAL_STATIC_LIBRARIES := libgmock libhwui_static_debug |
John Reck | dc87c52 | 2016-02-29 13:31:18 -0800 | [diff] [blame] | 271 | LOCAL_SHARED_LIBRARIES := libmemunreachable |
Chris Craik | 98787e6 | 2015-11-13 10:55:30 -0800 | [diff] [blame] | 272 | LOCAL_CFLAGS := \ |
| 273 | $(hwui_cflags) \ |
sergeyv | 8bd5edf | 2016-05-13 15:03:35 -0700 | [diff] [blame] | 274 | -include debug/wrap_gles.h \ |
Chris Craik | 98787e6 | 2015-11-13 10:55:30 -0800 | [diff] [blame] | 275 | -DHWUI_NULL_GPU |
Dan Willemsen | e9c205b | 2016-03-07 12:58:33 -0800 | [diff] [blame] | 276 | LOCAL_C_INCLUDES := $(hwui_c_includes) |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 277 | |
| 278 | LOCAL_SRC_FILES += \ |
Chris Craik | 8160f20 | 2015-12-02 14:50:25 -0800 | [diff] [blame] | 279 | $(hwui_test_common_src_files) \ |
John Reck | dc87c52 | 2016-02-29 13:31:18 -0800 | [diff] [blame] | 280 | tests/unit/main.cpp \ |
Chris Craik | 5e00c7c | 2016-07-06 16:10:09 -0700 | [diff] [blame] | 281 | tests/unit/BakedOpDispatcherTests.cpp \ |
| 282 | tests/unit/BakedOpRendererTests.cpp \ |
| 283 | tests/unit/BakedOpStateTests.cpp \ |
sergeyv | 71c4477 | 2016-11-29 20:27:25 -0800 | [diff] [blame] | 284 | tests/unit/BitmapTests.cpp \ |
Derek Sollenberger | daf7229 | 2016-10-25 12:09:18 -0400 | [diff] [blame] | 285 | tests/unit/CanvasContextTests.cpp \ |
Chris Craik | 8160f20 | 2015-12-02 14:50:25 -0800 | [diff] [blame] | 286 | tests/unit/CanvasStateTests.cpp \ |
| 287 | tests/unit/ClipAreaTests.cpp \ |
| 288 | tests/unit/DamageAccumulatorTests.cpp \ |
Derek Sollenberger | 56ad6ec | 2016-07-22 12:13:32 -0400 | [diff] [blame] | 289 | tests/unit/DeferredLayerUpdaterTests.cpp \ |
Chris Craik | 8160f20 | 2015-12-02 14:50:25 -0800 | [diff] [blame] | 290 | tests/unit/DeviceInfoTests.cpp \ |
| 291 | tests/unit/FatVectorTests.cpp \ |
Chris Craik | f3754a8 | 2016-04-19 18:13:21 -0700 | [diff] [blame] | 292 | tests/unit/FontRendererTests.cpp \ |
Chris Craik | 5e00c7c | 2016-07-06 16:10:09 -0700 | [diff] [blame] | 293 | tests/unit/FrameBuilderTests.cpp \ |
sergeyv | f42bf3e | 2016-03-11 13:45:15 -0800 | [diff] [blame] | 294 | tests/unit/GlopBuilderTests.cpp \ |
John Reck | 38e0c32 | 2015-11-10 12:19:17 -0800 | [diff] [blame] | 295 | tests/unit/GpuMemoryTrackerTests.cpp \ |
Chris Craik | 04d46eb | 2016-04-07 13:51:07 -0700 | [diff] [blame] | 296 | tests/unit/GradientCacheTests.cpp \ |
John Reck | df1742e | 2017-01-19 15:56:21 -0800 | [diff] [blame] | 297 | tests/unit/GraphicsStatsServiceTests.cpp \ |
Chris Craik | 8160f20 | 2015-12-02 14:50:25 -0800 | [diff] [blame] | 298 | tests/unit/LayerUpdateQueueTests.cpp \ |
Chris Craik | 5e00c7c | 2016-07-06 16:10:09 -0700 | [diff] [blame] | 299 | tests/unit/LeakCheckTests.cpp \ |
Chris Craik | 8160f20 | 2015-12-02 14:50:25 -0800 | [diff] [blame] | 300 | tests/unit/LinearAllocatorTests.cpp \ |
Chris Craik | 261725f | 2016-02-29 12:52:33 -0800 | [diff] [blame] | 301 | tests/unit/MatrixTests.cpp \ |
sergeyv | 8bd5edf | 2016-05-13 15:03:35 -0700 | [diff] [blame] | 302 | tests/unit/MeshStateTests.cpp \ |
Chris Craik | 8160f20 | 2015-12-02 14:50:25 -0800 | [diff] [blame] | 303 | tests/unit/OffscreenBufferPoolTests.cpp \ |
Chris Craik | 5e00c7c | 2016-07-06 16:10:09 -0700 | [diff] [blame] | 304 | tests/unit/OpDumperTests.cpp \ |
Doris Liu | 9e9eeee | 2016-11-29 14:48:25 -0800 | [diff] [blame] | 305 | tests/unit/PathInterpolatorTests.cpp \ |
Stan Iliev | 021693b | 2016-10-17 16:26:15 -0400 | [diff] [blame] | 306 | tests/unit/RenderNodeDrawableTests.cpp \ |
Chris Craik | 5e00c7c | 2016-07-06 16:10:09 -0700 | [diff] [blame] | 307 | tests/unit/RecordingCanvasTests.cpp \ |
John Reck | 44b49f0 | 2016-03-25 14:29:48 -0700 | [diff] [blame] | 308 | tests/unit/RenderNodeTests.cpp \ |
Chris Craik | d4fe4d3 | 2016-06-09 16:57:11 -0700 | [diff] [blame] | 309 | tests/unit/RenderPropertiesTests.cpp \ |
Chris Craik | 07d8d59 | 2016-02-03 18:43:04 -0800 | [diff] [blame] | 310 | tests/unit/SkiaBehaviorTests.cpp \ |
Derek Sollenberger | 0df6209 | 2016-09-27 16:04:42 -0400 | [diff] [blame] | 311 | tests/unit/SkiaDisplayListTests.cpp \ |
Stan Iliev | 500a0c3 | 2016-10-26 10:30:09 -0400 | [diff] [blame] | 312 | tests/unit/SkiaPipelineTests.cpp \ |
Stan Iliev | 5277127 | 2016-11-17 09:54:38 -0500 | [diff] [blame] | 313 | tests/unit/SkiaRenderPropertiesTests.cpp \ |
Chris Craik | 5e00c7c | 2016-07-06 16:10:09 -0700 | [diff] [blame] | 314 | tests/unit/SkiaCanvasTests.cpp \ |
Chris Craik | 04d46eb | 2016-04-07 13:51:07 -0700 | [diff] [blame] | 315 | tests/unit/SnapshotTests.cpp \ |
Andres Morales | 06f5bc7 | 2015-12-15 15:21:31 -0800 | [diff] [blame] | 316 | tests/unit/StringUtilsTests.cpp \ |
Chris Craik | 3741328 | 2016-05-12 17:48:51 -0700 | [diff] [blame] | 317 | tests/unit/TestUtilsTests.cpp \ |
Chris Craik | 07d8d59 | 2016-02-03 18:43:04 -0800 | [diff] [blame] | 318 | tests/unit/TextDropShadowCacheTests.cpp \ |
sergeyv | 83809fe | 2017-02-01 10:27:33 -0800 | [diff] [blame] | 319 | tests/unit/TextureCacheTests.cpp \ |
Chris Craik | 5e00c7c | 2016-07-06 16:10:09 -0700 | [diff] [blame] | 320 | tests/unit/VectorDrawableTests.cpp \ |
Chris Craik | b565df1 | 2015-10-05 13:00:52 -0700 | [diff] [blame] | 321 | |
Derek Sollenberger | 991da31 | 2016-02-11 12:13:07 -0500 | [diff] [blame] | 322 | include $(LOCAL_PATH)/hwui_static_deps.mk |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 323 | include $(BUILD_NATIVE_TEST) |
| 324 | |
| 325 | # ------------------------ |
Chris Craik | 8160f20 | 2015-12-02 14:50:25 -0800 | [diff] [blame] | 326 | # Macro-bench app |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 327 | # ------------------------ |
| 328 | |
| 329 | include $(CLEAR_VARS) |
| 330 | |
| 331 | LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/local/tmp |
sergeyv | 202c10b | 2016-07-11 17:53:45 -0700 | [diff] [blame] | 332 | LOCAL_MODULE:= hwuimacro |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 333 | LOCAL_MODULE_TAGS := tests |
| 334 | LOCAL_MULTILIB := both |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 335 | LOCAL_CFLAGS := $(hwui_cflags) |
Dan Willemsen | e9c205b | 2016-03-07 12:58:33 -0800 | [diff] [blame] | 336 | LOCAL_C_INCLUDES := $(hwui_c_includes) |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 337 | |
sergeyv | 8bd5edf | 2016-05-13 15:03:35 -0700 | [diff] [blame] | 338 | # set to libhwui_static_debug to skip actual GL commands |
Chris Craik | 5fbd9db | 2015-10-19 11:22:11 -0700 | [diff] [blame] | 339 | LOCAL_WHOLE_STATIC_LIBRARIES := libhwui_static |
sergeyv | 7dc370b | 2016-06-17 11:21:11 -0700 | [diff] [blame] | 340 | LOCAL_SHARED_LIBRARIES := libmemunreachable |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 341 | |
| 342 | LOCAL_SRC_FILES += \ |
Chris Craik | 8160f20 | 2015-12-02 14:50:25 -0800 | [diff] [blame] | 343 | $(hwui_test_common_src_files) \ |
Chris Craik | 8160f20 | 2015-12-02 14:50:25 -0800 | [diff] [blame] | 344 | tests/macrobench/TestSceneRunner.cpp \ |
| 345 | tests/macrobench/main.cpp |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 346 | |
Derek Sollenberger | 991da31 | 2016-02-11 12:13:07 -0500 | [diff] [blame] | 347 | include $(LOCAL_PATH)/hwui_static_deps.mk |
sergeyv | 202c10b | 2016-07-11 17:53:45 -0700 | [diff] [blame] | 348 | include $(BUILD_NATIVE_BENCHMARK) |
John Reck | 4a4bc89 | 2015-10-12 07:38:22 -0700 | [diff] [blame] | 349 | |
| 350 | # ------------------------ |
| 351 | # Micro-bench app |
| 352 | # --------------------- |
| 353 | include $(CLEAR_VARS) |
| 354 | |
John Reck | 4a4bc89 | 2015-10-12 07:38:22 -0700 | [diff] [blame] | 355 | LOCAL_MODULE:= hwuimicro |
| 356 | LOCAL_MODULE_TAGS := tests |
Chris Craik | 8d1f212 | 2015-11-24 16:40:09 -0800 | [diff] [blame] | 357 | LOCAL_CFLAGS := \ |
| 358 | $(hwui_cflags) \ |
sergeyv | 8bd5edf | 2016-05-13 15:03:35 -0700 | [diff] [blame] | 359 | -include debug/wrap_gles.h \ |
Chris Craik | 8d1f212 | 2015-11-24 16:40:09 -0800 | [diff] [blame] | 360 | -DHWUI_NULL_GPU |
John Reck | 4a4bc89 | 2015-10-12 07:38:22 -0700 | [diff] [blame] | 361 | |
John Reck | 2bee0dd | 2016-03-09 08:01:37 -0800 | [diff] [blame] | 362 | LOCAL_C_INCLUDES := $(hwui_c_includes) |
John Reck | 4a4bc89 | 2015-10-12 07:38:22 -0700 | [diff] [blame] | 363 | |
sergeyv | 8bd5edf | 2016-05-13 15:03:35 -0700 | [diff] [blame] | 364 | LOCAL_WHOLE_STATIC_LIBRARIES := libhwui_static_debug |
sergeyv | 7dc370b | 2016-06-17 11:21:11 -0700 | [diff] [blame] | 365 | LOCAL_SHARED_LIBRARIES := libmemunreachable |
John Reck | 4a4bc89 | 2015-10-12 07:38:22 -0700 | [diff] [blame] | 366 | |
| 367 | LOCAL_SRC_FILES += \ |
Chris Craik | 8160f20 | 2015-12-02 14:50:25 -0800 | [diff] [blame] | 368 | $(hwui_test_common_src_files) \ |
John Reck | 0418afa3 | 2016-03-07 13:24:25 -0800 | [diff] [blame] | 369 | tests/microbench/main.cpp \ |
Chris Craik | 8160f20 | 2015-12-02 14:50:25 -0800 | [diff] [blame] | 370 | tests/microbench/DisplayListCanvasBench.cpp \ |
John Reck | 2c0f937 | 2016-03-28 09:34:35 -0700 | [diff] [blame] | 371 | tests/microbench/FontBench.cpp \ |
Chris Craik | 5e00c7c | 2016-07-06 16:10:09 -0700 | [diff] [blame] | 372 | tests/microbench/FrameBuilderBench.cpp \ |
Chris Craik | 8160f20 | 2015-12-02 14:50:25 -0800 | [diff] [blame] | 373 | tests/microbench/LinearAllocatorBench.cpp \ |
| 374 | tests/microbench/PathParserBench.cpp \ |
John Reck | 3acf0382 | 2016-11-02 11:14:47 -0700 | [diff] [blame] | 375 | tests/microbench/RenderNodeBench.cpp \ |
Chris Craik | b251a2f | 2016-02-08 19:36:46 +0000 | [diff] [blame] | 376 | tests/microbench/ShadowBench.cpp \ |
| 377 | tests/microbench/TaskManagerBench.cpp |
John Reck | 4a4bc89 | 2015-10-12 07:38:22 -0700 | [diff] [blame] | 378 | |
Chris Craik | 0a24b14 | 2015-10-19 17:10:19 -0700 | [diff] [blame] | 379 | |
Derek Sollenberger | 991da31 | 2016-02-11 12:13:07 -0500 | [diff] [blame] | 380 | include $(LOCAL_PATH)/hwui_static_deps.mk |
sergeyv | 422e2b4 | 2016-06-20 15:27:39 -0700 | [diff] [blame] | 381 | include $(BUILD_NATIVE_BENCHMARK) |