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 | |
Chris Craik | f0a7608 | 2016-03-03 21:07:54 +0000 | [diff] [blame] | 5 | HWUI_NEW_OPS := true |
sergeyv | 5bb5626 | 2016-10-10 12:25:06 -0700 | [diff] [blame] | 6 | BUGREPORT_FONT_CACHE_USAGE := false |
Chris Craik | b565df1 | 2015-10-05 13:00:52 -0700 | [diff] [blame] | 7 | |
John Reck | 975591a | 2016-01-22 16:28:07 -0800 | [diff] [blame] | 8 | # Enables fine-grained GLES error checking |
| 9 | # If set to true, every GLES call is wrapped & error checked |
| 10 | # Has moderate overhead |
John Reck | 756619d | 2016-04-15 11:31:09 -0700 | [diff] [blame] | 11 | HWUI_ENABLE_OPENGL_VALIDATION := false |
John Reck | 975591a | 2016-01-22 16:28:07 -0800 | [diff] [blame] | 12 | |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 13 | hwui_src_files := \ |
| 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 \ |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 21 | renderstate/Blend.cpp \ |
| 22 | renderstate/MeshState.cpp \ |
Chris Craik | 9fded23 | 2015-11-11 16:42:34 -0800 | [diff] [blame] | 23 | renderstate/OffscreenBufferPool.cpp \ |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 24 | renderstate/PixelBufferState.cpp \ |
| 25 | renderstate/RenderState.cpp \ |
| 26 | renderstate/Scissor.cpp \ |
| 27 | renderstate/Stencil.cpp \ |
| 28 | renderstate/TextureState.cpp \ |
| 29 | renderthread/CanvasContext.cpp \ |
| 30 | renderthread/DrawFrameTask.cpp \ |
| 31 | renderthread/EglManager.cpp \ |
| 32 | renderthread/RenderProxy.cpp \ |
| 33 | renderthread/RenderTask.cpp \ |
| 34 | renderthread/RenderThread.cpp \ |
| 35 | renderthread/TimeLord.cpp \ |
| 36 | thread/TaskManager.cpp \ |
| 37 | utils/Blur.cpp \ |
| 38 | utils/GLUtils.cpp \ |
| 39 | utils/LinearAllocator.cpp \ |
Derek Sollenberger | 4c5efe9 | 2015-07-10 13:56:39 -0400 | [diff] [blame] | 40 | utils/NinePatchImpl.cpp \ |
Chris Craik | 6e6646c | 2015-09-14 15:54:12 -0700 | [diff] [blame] | 41 | utils/StringUtils.cpp \ |
Tom Hudson | b2f5bd2 | 2015-10-15 16:41:55 -0400 | [diff] [blame] | 42 | utils/TestWindowContext.cpp \ |
Doris Liu | 804618d | 2015-11-16 22:48:34 -0800 | [diff] [blame] | 43 | utils/VectorDrawableUtils.cpp \ |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 44 | AmbientShadow.cpp \ |
| 45 | AnimationContext.cpp \ |
| 46 | Animator.cpp \ |
| 47 | AnimatorManager.cpp \ |
| 48 | AssetAtlas.cpp \ |
| 49 | Caches.cpp \ |
| 50 | CanvasState.cpp \ |
| 51 | ClipArea.cpp \ |
| 52 | DamageAccumulator.cpp \ |
| 53 | DeferredDisplayList.cpp \ |
| 54 | DeferredLayerUpdater.cpp \ |
John Reck | 704bed0 | 2015-11-05 09:22:17 -0800 | [diff] [blame] | 55 | DeviceInfo.cpp \ |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 56 | DisplayList.cpp \ |
| 57 | DisplayListCanvas.cpp \ |
| 58 | Dither.cpp \ |
| 59 | Extensions.cpp \ |
| 60 | FboCache.cpp \ |
| 61 | FontRenderer.cpp \ |
| 62 | FrameInfo.cpp \ |
| 63 | FrameInfoVisualizer.cpp \ |
| 64 | GammaFontRenderer.cpp \ |
| 65 | GlopBuilder.cpp \ |
John Reck | 38e0c32 | 2015-11-10 12:19:17 -0800 | [diff] [blame] | 66 | GpuMemoryTracker.cpp \ |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 67 | GradientCache.cpp \ |
| 68 | Image.cpp \ |
| 69 | Interpolator.cpp \ |
| 70 | JankTracker.cpp \ |
| 71 | Layer.cpp \ |
| 72 | LayerCache.cpp \ |
| 73 | LayerRenderer.cpp \ |
Chris Craik | 0b7e824 | 2015-10-28 16:50:44 -0700 | [diff] [blame] | 74 | LayerUpdateQueue.cpp \ |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 75 | Matrix.cpp \ |
| 76 | OpenGLRenderer.cpp \ |
| 77 | Patch.cpp \ |
| 78 | PatchCache.cpp \ |
| 79 | PathCache.cpp \ |
| 80 | PathTessellator.cpp \ |
Doris Liu | 30bcf69 | 2015-11-04 14:56:24 -0800 | [diff] [blame] | 81 | PathParser.cpp \ |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 82 | PixelBuffer.cpp \ |
| 83 | Program.cpp \ |
| 84 | ProgramCache.cpp \ |
| 85 | Properties.cpp \ |
Doris Liu | 766431a | 2016-02-04 22:17:11 +0000 | [diff] [blame] | 86 | PropertyValuesHolder.cpp \ |
| 87 | PropertyValuesAnimatorSet.cpp \ |
John Reck | 10dd058 | 2016-03-31 16:36:16 -0700 | [diff] [blame] | 88 | Readback.cpp \ |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 89 | RenderBufferCache.cpp \ |
| 90 | RenderNode.cpp \ |
| 91 | RenderProperties.cpp \ |
| 92 | ResourceCache.cpp \ |
| 93 | ShadowTessellator.cpp \ |
| 94 | SkiaCanvas.cpp \ |
| 95 | SkiaCanvasProxy.cpp \ |
| 96 | SkiaShader.cpp \ |
| 97 | Snapshot.cpp \ |
| 98 | SpotShadow.cpp \ |
| 99 | TessellationCache.cpp \ |
| 100 | TextDropShadowCache.cpp \ |
| 101 | Texture.cpp \ |
John Reck | e248bd1 | 2015-08-05 13:53:53 -0700 | [diff] [blame] | 102 | TextureCache.cpp \ |
Doris Liu | 4bbc293 | 2015-12-01 17:59:40 -0800 | [diff] [blame] | 103 | VectorDrawable.cpp \ |
John Reck | e248bd1 | 2015-08-05 13:53:53 -0700 | [diff] [blame] | 104 | protos/hwui.proto |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 105 | |
Chris Craik | 8160f20 | 2015-12-02 14:50:25 -0800 | [diff] [blame] | 106 | hwui_test_common_src_files := \ |
Chris Craik | 27e58b4 | 2015-12-07 10:01:38 -0800 | [diff] [blame] | 107 | $(call all-cpp-files-under, tests/common/scenes) \ |
| 108 | tests/common/TestContext.cpp \ |
| 109 | tests/common/TestScene.cpp \ |
Chris Craik | 8160f20 | 2015-12-02 14:50:25 -0800 | [diff] [blame] | 110 | tests/common/TestUtils.cpp |
| 111 | |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 112 | hwui_cflags := \ |
| 113 | -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES \ |
| 114 | -DATRACE_TAG=ATRACE_TAG_VIEW -DLOG_TAG=\"OpenGLRenderer\" \ |
John Reck | 82f5e0c | 2015-10-22 17:07:45 -0700 | [diff] [blame] | 115 | -Wall -Wno-unused-parameter -Wunreachable-code -Werror |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 116 | |
John Reck | 2d5b8d7 | 2016-07-28 15:36:11 -0700 | [diff] [blame] | 117 | ifeq ($(TARGET_USES_HWC2),true) |
| 118 | hwui_cflags += -DUSE_HWC2 |
| 119 | endif |
| 120 | |
John Reck | c90ed75 | 2015-11-04 07:39:44 -0800 | [diff] [blame] | 121 | # GCC false-positives on this warning, and since we -Werror that's |
| 122 | # a problem |
| 123 | hwui_cflags += -Wno-free-nonheap-object |
| 124 | |
Chris Craik | b565df1 | 2015-10-05 13:00:52 -0700 | [diff] [blame] | 125 | ifeq (true, $(HWUI_NEW_OPS)) |
| 126 | hwui_src_files += \ |
Chris Craik | 9e7fcfd | 2015-11-25 13:27:33 -0800 | [diff] [blame] | 127 | BakedOpDispatcher.cpp \ |
Chris Craik | b565df1 | 2015-10-05 13:00:52 -0700 | [diff] [blame] | 128 | BakedOpRenderer.cpp \ |
Chris Craik | e4db79d | 2015-12-22 16:32:23 -0800 | [diff] [blame] | 129 | BakedOpState.cpp \ |
Chris Craik | f158b49 | 2016-01-12 14:45:08 -0800 | [diff] [blame] | 130 | FrameBuilder.cpp \ |
| 131 | LayerBuilder.cpp \ |
Chris Craik | 91eff22 | 2016-02-22 13:39:33 -0800 | [diff] [blame] | 132 | OpDumper.cpp \ |
Chris Craik | b565df1 | 2015-10-05 13:00:52 -0700 | [diff] [blame] | 133 | RecordingCanvas.cpp |
| 134 | |
| 135 | hwui_cflags += -DHWUI_NEW_OPS |
| 136 | |
| 137 | endif |
| 138 | |
sergeyv | af102be | 2016-09-09 18:02:07 -0700 | [diff] [blame] | 139 | ifeq (true, $(BUGREPORT_FONT_CACHE_USAGE)) |
| 140 | hwui_src_files += \ |
| 141 | font/FontCacheHistoryTracker.cpp |
| 142 | hwui_cflags += -DBUGREPORT_FONT_CACHE_USAGE |
| 143 | endif |
| 144 | |
| 145 | |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 146 | ifndef HWUI_COMPILE_SYMBOLS |
| 147 | hwui_cflags += -fvisibility=hidden |
| 148 | endif |
| 149 | |
| 150 | ifdef HWUI_COMPILE_FOR_PERF |
| 151 | # TODO: Non-arm? |
| 152 | hwui_cflags += -fno-omit-frame-pointer -marm -mapcs |
| 153 | endif |
| 154 | |
John Reck | e248bd1 | 2015-08-05 13:53:53 -0700 | [diff] [blame] | 155 | # This has to be lazy-resolved because it depends on the LOCAL_MODULE_CLASS |
| 156 | # which varies depending on what is being built |
| 157 | define hwui_proto_include |
| 158 | $(call local-generated-sources-dir)/proto/$(LOCAL_PATH) |
| 159 | endef |
| 160 | |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 161 | hwui_c_includes += \ |
Leon Scroggins III | 5507807 | 2015-07-31 10:38:40 -0400 | [diff] [blame] | 162 | external/skia/include/private \ |
sergeyv | dccca44 | 2016-03-21 15:38:21 -0700 | [diff] [blame] | 163 | external/skia/src/core \ |
| 164 | external/harfbuzz_ng/src \ |
| 165 | external/freetype/include |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 166 | |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 167 | ifneq (false,$(ANDROID_ENABLE_RENDERSCRIPT)) |
| 168 | hwui_cflags += -DANDROID_ENABLE_RENDERSCRIPT |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 169 | hwui_c_includes += \ |
| 170 | $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,TARGET,) \ |
| 171 | frameworks/rs/cpp \ |
| 172 | frameworks/rs |
| 173 | endif |
| 174 | |
John Reck | 975591a | 2016-01-22 16:28:07 -0800 | [diff] [blame] | 175 | ifeq (true, $(HWUI_ENABLE_OPENGL_VALIDATION)) |
| 176 | hwui_cflags += -include debug/wrap_gles.h |
| 177 | hwui_src_files += debug/wrap_gles.cpp |
| 178 | hwui_c_includes += frameworks/native/opengl/libs/GLES2 |
| 179 | hwui_cflags += -DDEBUG_OPENGL=3 |
| 180 | endif |
| 181 | |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 182 | |
| 183 | # ------------------------ |
| 184 | # static library |
| 185 | # ------------------------ |
| 186 | |
| 187 | include $(CLEAR_VARS) |
| 188 | |
| 189 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
| 190 | LOCAL_MODULE := libhwui_static |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 191 | LOCAL_CFLAGS := $(hwui_cflags) |
| 192 | LOCAL_SRC_FILES := $(hwui_src_files) |
John Reck | e248bd1 | 2015-08-05 13:53:53 -0700 | [diff] [blame] | 193 | LOCAL_C_INCLUDES := $(hwui_c_includes) $(call hwui_proto_include) |
Derek Sollenberger | 991da31 | 2016-02-11 12:13:07 -0500 | [diff] [blame] | 194 | LOCAL_EXPORT_C_INCLUDE_DIRS := \ |
| 195 | $(LOCAL_PATH) \ |
| 196 | $(hwui_c_includes) \ |
| 197 | $(call hwui_proto_include) |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 198 | |
Derek Sollenberger | 991da31 | 2016-02-11 12:13:07 -0500 | [diff] [blame] | 199 | include $(LOCAL_PATH)/hwui_static_deps.mk |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 200 | include $(BUILD_STATIC_LIBRARY) |
| 201 | |
| 202 | # ------------------------ |
Chris Craik | 5fbd9db | 2015-10-19 11:22:11 -0700 | [diff] [blame] | 203 | # static library null gpu |
| 204 | # ------------------------ |
| 205 | |
| 206 | include $(CLEAR_VARS) |
| 207 | |
| 208 | LOCAL_MODULE_CLASS := STATIC_LIBRARIES |
| 209 | LOCAL_MODULE := libhwui_static_null_gpu |
Chris Craik | 5fbd9db | 2015-10-19 11:22:11 -0700 | [diff] [blame] | 210 | LOCAL_CFLAGS := \ |
| 211 | $(hwui_cflags) \ |
| 212 | -DHWUI_NULL_GPU |
| 213 | LOCAL_SRC_FILES := \ |
| 214 | $(hwui_src_files) \ |
John Reck | 975591a | 2016-01-22 16:28:07 -0800 | [diff] [blame] | 215 | debug/nullegl.cpp \ |
| 216 | debug/nullgles.cpp |
Chris Craik | 5fbd9db | 2015-10-19 11:22:11 -0700 | [diff] [blame] | 217 | LOCAL_C_INCLUDES := $(hwui_c_includes) $(call hwui_proto_include) |
Derek Sollenberger | 991da31 | 2016-02-11 12:13:07 -0500 | [diff] [blame] | 218 | LOCAL_EXPORT_C_INCLUDE_DIRS := \ |
| 219 | $(LOCAL_PATH) \ |
| 220 | $(hwui_c_includes) \ |
| 221 | $(call hwui_proto_include) |
Chris Craik | 5fbd9db | 2015-10-19 11:22:11 -0700 | [diff] [blame] | 222 | |
Derek Sollenberger | 991da31 | 2016-02-11 12:13:07 -0500 | [diff] [blame] | 223 | include $(LOCAL_PATH)/hwui_static_deps.mk |
Chris Craik | 5fbd9db | 2015-10-19 11:22:11 -0700 | [diff] [blame] | 224 | include $(BUILD_STATIC_LIBRARY) |
| 225 | |
| 226 | # ------------------------ |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 227 | # shared library |
| 228 | # ------------------------ |
| 229 | |
| 230 | include $(CLEAR_VARS) |
| 231 | |
John Reck | a2732a2 | 2014-12-18 13:52:33 -0800 | [diff] [blame] | 232 | LOCAL_MODULE_CLASS := SHARED_LIBRARIES |
| 233 | LOCAL_MODULE := libhwui |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 234 | LOCAL_WHOLE_STATIC_LIBRARIES := libhwui_static |
Derek Sollenberger | 991da31 | 2016-02-11 12:13:07 -0500 | [diff] [blame] | 235 | LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) |
Romain Guy | e4d0112 | 2010-06-16 18:44:05 -0700 | [diff] [blame] | 236 | |
Derek Sollenberger | 991da31 | 2016-02-11 12:13:07 -0500 | [diff] [blame] | 237 | include $(LOCAL_PATH)/hwui_static_deps.mk |
John Reck | a2732a2 | 2014-12-18 13:52:33 -0800 | [diff] [blame] | 238 | include $(BUILD_SHARED_LIBRARY) |
Andreas Gampe | edaecc1 | 2014-11-10 20:54:07 -0800 | [diff] [blame] | 239 | |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 240 | # ------------------------ |
| 241 | # unit tests |
| 242 | # ------------------------ |
| 243 | |
| 244 | include $(CLEAR_VARS) |
| 245 | |
| 246 | LOCAL_MODULE := hwui_unit_tests |
| 247 | LOCAL_MODULE_TAGS := tests |
Chris Craik | 5fbd9db | 2015-10-19 11:22:11 -0700 | [diff] [blame] | 248 | LOCAL_STATIC_LIBRARIES := libhwui_static_null_gpu |
John Reck | dc87c52 | 2016-02-29 13:31:18 -0800 | [diff] [blame] | 249 | LOCAL_SHARED_LIBRARIES := libmemunreachable |
Chris Craik | 98787e6 | 2015-11-13 10:55:30 -0800 | [diff] [blame] | 250 | LOCAL_CFLAGS := \ |
| 251 | $(hwui_cflags) \ |
| 252 | -DHWUI_NULL_GPU |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 253 | |
| 254 | LOCAL_SRC_FILES += \ |
Chris Craik | 8160f20 | 2015-12-02 14:50:25 -0800 | [diff] [blame] | 255 | $(hwui_test_common_src_files) \ |
John Reck | dc87c52 | 2016-02-29 13:31:18 -0800 | [diff] [blame] | 256 | tests/unit/main.cpp \ |
Chris Craik | 8160f20 | 2015-12-02 14:50:25 -0800 | [diff] [blame] | 257 | tests/unit/CanvasStateTests.cpp \ |
| 258 | tests/unit/ClipAreaTests.cpp \ |
| 259 | tests/unit/DamageAccumulatorTests.cpp \ |
| 260 | tests/unit/DeviceInfoTests.cpp \ |
| 261 | tests/unit/FatVectorTests.cpp \ |
Chris Craik | f3754a8 | 2016-04-19 18:13:21 -0700 | [diff] [blame] | 262 | tests/unit/FontRendererTests.cpp \ |
sergeyv | f42bf3e | 2016-03-11 13:45:15 -0800 | [diff] [blame] | 263 | tests/unit/GlopBuilderTests.cpp \ |
John Reck | 38e0c32 | 2015-11-10 12:19:17 -0800 | [diff] [blame] | 264 | tests/unit/GpuMemoryTrackerTests.cpp \ |
Chris Craik | 04d46eb | 2016-04-07 13:51:07 -0700 | [diff] [blame] | 265 | tests/unit/GradientCacheTests.cpp \ |
Chris Craik | 8160f20 | 2015-12-02 14:50:25 -0800 | [diff] [blame] | 266 | tests/unit/LayerUpdateQueueTests.cpp \ |
| 267 | tests/unit/LinearAllocatorTests.cpp \ |
Chris Craik | 261725f | 2016-02-29 12:52:33 -0800 | [diff] [blame] | 268 | tests/unit/MatrixTests.cpp \ |
Chris Craik | 8160f20 | 2015-12-02 14:50:25 -0800 | [diff] [blame] | 269 | tests/unit/OffscreenBufferPoolTests.cpp \ |
John Reck | 44b49f0 | 2016-03-25 14:29:48 -0700 | [diff] [blame] | 270 | tests/unit/RenderNodeTests.cpp \ |
Chris Craik | d4fe4d3 | 2016-06-09 16:57:11 -0700 | [diff] [blame] | 271 | tests/unit/RenderPropertiesTests.cpp \ |
Chris Craik | 07d8d59 | 2016-02-03 18:43:04 -0800 | [diff] [blame] | 272 | tests/unit/SkiaBehaviorTests.cpp \ |
Chris Craik | 04d46eb | 2016-04-07 13:51:07 -0700 | [diff] [blame] | 273 | tests/unit/SnapshotTests.cpp \ |
Andres Morales | 06f5bc7 | 2015-12-15 15:21:31 -0800 | [diff] [blame] | 274 | tests/unit/StringUtilsTests.cpp \ |
Chris Craik | 3741328 | 2016-05-12 17:48:51 -0700 | [diff] [blame] | 275 | tests/unit/TestUtilsTests.cpp \ |
Chris Craik | 07d8d59 | 2016-02-03 18:43:04 -0800 | [diff] [blame] | 276 | tests/unit/TextDropShadowCacheTests.cpp \ |
Chris Craik | 04d46eb | 2016-04-07 13:51:07 -0700 | [diff] [blame] | 277 | tests/unit/VectorDrawableTests.cpp |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 278 | |
Chris Craik | b565df1 | 2015-10-05 13:00:52 -0700 | [diff] [blame] | 279 | ifeq (true, $(HWUI_NEW_OPS)) |
| 280 | LOCAL_SRC_FILES += \ |
Chris Craik | 419a1e7 | 2016-03-08 16:24:12 -0800 | [diff] [blame] | 281 | tests/unit/BakedOpDispatcherTests.cpp \ |
Chris Craik | 0280628 | 2016-03-11 19:16:21 -0800 | [diff] [blame] | 282 | tests/unit/BakedOpRendererTests.cpp \ |
Chris Craik | 8160f20 | 2015-12-02 14:50:25 -0800 | [diff] [blame] | 283 | tests/unit/BakedOpStateTests.cpp \ |
Chris Craik | f158b49 | 2016-01-12 14:45:08 -0800 | [diff] [blame] | 284 | tests/unit/FrameBuilderTests.cpp \ |
John Reck | 1b94f9b | 2016-01-19 09:42:15 -0800 | [diff] [blame] | 285 | tests/unit/LeakCheckTests.cpp \ |
Chris Craik | 91eff22 | 2016-02-22 13:39:33 -0800 | [diff] [blame] | 286 | tests/unit/OpDumperTests.cpp \ |
Derek Sollenberger | 35934cc | 2016-03-23 14:59:10 -0400 | [diff] [blame] | 287 | tests/unit/RecordingCanvasTests.cpp \ |
| 288 | tests/unit/SkiaCanvasTests.cpp |
Chris Craik | b565df1 | 2015-10-05 13:00:52 -0700 | [diff] [blame] | 289 | endif |
| 290 | |
Derek Sollenberger | 991da31 | 2016-02-11 12:13:07 -0500 | [diff] [blame] | 291 | include $(LOCAL_PATH)/hwui_static_deps.mk |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 292 | include $(BUILD_NATIVE_TEST) |
| 293 | |
| 294 | # ------------------------ |
Chris Craik | 8160f20 | 2015-12-02 14:50:25 -0800 | [diff] [blame] | 295 | # Macro-bench app |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 296 | # ------------------------ |
| 297 | |
| 298 | include $(CLEAR_VARS) |
| 299 | |
| 300 | LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/local/tmp |
| 301 | LOCAL_MODULE:= hwuitest |
| 302 | LOCAL_MODULE_TAGS := tests |
John Reck | e248bd1 | 2015-08-05 13:53:53 -0700 | [diff] [blame] | 303 | LOCAL_MODULE_CLASS := EXECUTABLES |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 304 | LOCAL_MULTILIB := both |
| 305 | LOCAL_MODULE_STEM_32 := hwuitest |
| 306 | LOCAL_MODULE_STEM_64 := hwuitest64 |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 307 | LOCAL_CFLAGS := $(hwui_cflags) |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 308 | |
Chris Craik | 5fbd9db | 2015-10-19 11:22:11 -0700 | [diff] [blame] | 309 | # set to libhwui_static_null_gpu to skip actual GL commands |
| 310 | LOCAL_WHOLE_STATIC_LIBRARIES := libhwui_static |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 311 | |
| 312 | LOCAL_SRC_FILES += \ |
Chris Craik | 8160f20 | 2015-12-02 14:50:25 -0800 | [diff] [blame] | 313 | $(hwui_test_common_src_files) \ |
Chris Craik | 8160f20 | 2015-12-02 14:50:25 -0800 | [diff] [blame] | 314 | tests/macrobench/TestSceneRunner.cpp \ |
| 315 | tests/macrobench/main.cpp |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 316 | |
Derek Sollenberger | 991da31 | 2016-02-11 12:13:07 -0500 | [diff] [blame] | 317 | include $(LOCAL_PATH)/hwui_static_deps.mk |
John Reck | d2e7214 | 2015-08-17 13:11:43 -0700 | [diff] [blame] | 318 | include $(BUILD_EXECUTABLE) |
John Reck | 4a4bc89 | 2015-10-12 07:38:22 -0700 | [diff] [blame] | 319 | |
| 320 | # ------------------------ |
| 321 | # Micro-bench app |
| 322 | # --------------------- |
| 323 | include $(CLEAR_VARS) |
| 324 | |
| 325 | LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/local/tmp |
| 326 | LOCAL_MODULE:= hwuimicro |
| 327 | LOCAL_MODULE_TAGS := tests |
| 328 | LOCAL_MODULE_CLASS := EXECUTABLES |
| 329 | LOCAL_MULTILIB := both |
| 330 | LOCAL_MODULE_STEM_32 := hwuimicro |
| 331 | LOCAL_MODULE_STEM_64 := hwuimicro64 |
Chris Craik | 8d1f212 | 2015-11-24 16:40:09 -0800 | [diff] [blame] | 332 | LOCAL_CFLAGS := \ |
| 333 | $(hwui_cflags) \ |
| 334 | -DHWUI_NULL_GPU |
John Reck | 4a4bc89 | 2015-10-12 07:38:22 -0700 | [diff] [blame] | 335 | |
Chris Craik | 5fbd9db | 2015-10-19 11:22:11 -0700 | [diff] [blame] | 336 | LOCAL_WHOLE_STATIC_LIBRARIES := libhwui_static_null_gpu |
John Reck | 0418afa3 | 2016-03-07 13:24:25 -0800 | [diff] [blame] | 337 | LOCAL_STATIC_LIBRARIES := libgoogle-benchmark |
John Reck | 4a4bc89 | 2015-10-12 07:38:22 -0700 | [diff] [blame] | 338 | |
| 339 | LOCAL_SRC_FILES += \ |
Chris Craik | 8160f20 | 2015-12-02 14:50:25 -0800 | [diff] [blame] | 340 | $(hwui_test_common_src_files) \ |
John Reck | 0418afa3 | 2016-03-07 13:24:25 -0800 | [diff] [blame] | 341 | tests/microbench/main.cpp \ |
Chris Craik | 8160f20 | 2015-12-02 14:50:25 -0800 | [diff] [blame] | 342 | tests/microbench/DisplayListCanvasBench.cpp \ |
John Reck | 2c0f937 | 2016-03-28 09:34:35 -0700 | [diff] [blame] | 343 | tests/microbench/FontBench.cpp \ |
Chris Craik | 8160f20 | 2015-12-02 14:50:25 -0800 | [diff] [blame] | 344 | tests/microbench/LinearAllocatorBench.cpp \ |
| 345 | tests/microbench/PathParserBench.cpp \ |
Chris Craik | b251a2f | 2016-02-08 19:36:46 +0000 | [diff] [blame] | 346 | tests/microbench/ShadowBench.cpp \ |
| 347 | tests/microbench/TaskManagerBench.cpp |
John Reck | 4a4bc89 | 2015-10-12 07:38:22 -0700 | [diff] [blame] | 348 | |
John Reck | 7db5ffb | 2016-01-15 13:17:09 -0800 | [diff] [blame] | 349 | ifeq (true, $(HWUI_NEW_OPS)) |
| 350 | LOCAL_SRC_FILES += \ |
| 351 | tests/microbench/FrameBuilderBench.cpp |
| 352 | endif |
Chris Craik | 0a24b14 | 2015-10-19 17:10:19 -0700 | [diff] [blame] | 353 | |
Derek Sollenberger | 991da31 | 2016-02-11 12:13:07 -0500 | [diff] [blame] | 354 | include $(LOCAL_PATH)/hwui_static_deps.mk |
John Reck | 4a4bc89 | 2015-10-12 07:38:22 -0700 | [diff] [blame] | 355 | include $(BUILD_EXECUTABLE) |