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