blob: 8dc502ac13e485979a38aa9802d1d3ef2ac68df4 [file] [log] [blame]
Romain Guye4d01122010-06-16 18:44:05 -07001LOCAL_PATH:= $(call my-dir)
2include $(CLEAR_VARS)
Dan Albert88ba3392014-09-11 16:20:16 -07003LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
Romain Guye4d01122010-06-16 18:44:05 -07004
sergeyv5bb56262016-10-10 12:25:06 -07005BUGREPORT_FONT_CACHE_USAGE := false
Chris Craikb565df12015-10-05 13:00:52 -07006
John Reck975591a2016-01-22 16:28:07 -08007# Enables fine-grained GLES error checking
8# If set to true, every GLES call is wrapped & error checked
9# Has moderate overhead
John Reck756619d2016-04-15 11:31:09 -070010HWUI_ENABLE_OPENGL_VALIDATION := false
John Reck975591a2016-01-22 16:28:07 -080011
John Reckd2e72142015-08-17 13:11:43 -070012hwui_src_files := \
sergeyvc1c54062016-10-19 18:47:26 -070013 hwui/Bitmap.cpp \
John Reckd2e72142015-08-17 13:11:43 -070014 font/CacheTexture.cpp \
15 font/Font.cpp \
sergeyvdccca442016-03-21 15:38:21 -070016 hwui/Canvas.cpp \
17 hwui/MinikinSkia.cpp \
18 hwui/MinikinUtils.cpp \
19 hwui/PaintImpl.cpp \
sergeyvbad99182016-03-17 11:24:22 -070020 hwui/Typeface.cpp \
Stan Iliev021693b2016-10-17 16:26:15 -040021 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 Iliev500a0c32016-10-26 10:30:09 -040026 pipeline/skia/SkiaOpenGLPipeline.cpp \
27 pipeline/skia/SkiaPipeline.cpp \
Matt Sarettcf2c05c2016-10-26 11:03:23 -040028 pipeline/skia/SkiaProfileRenderer.cpp \
Stan Iliev021693b2016-10-17 16:26:15 -040029 pipeline/skia/SkiaRecordingCanvas.cpp \
Stan Iliev500a0c32016-10-26 10:30:09 -040030 pipeline/skia/SkiaVulkanPipeline.cpp \
John Reckd2e72142015-08-17 13:11:43 -070031 renderstate/Blend.cpp \
32 renderstate/MeshState.cpp \
Chris Craik9fded232015-11-11 16:42:34 -080033 renderstate/OffscreenBufferPool.cpp \
John Reckd2e72142015-08-17 13:11:43 -070034 renderstate/PixelBufferState.cpp \
35 renderstate/RenderState.cpp \
36 renderstate/Scissor.cpp \
37 renderstate/Stencil.cpp \
38 renderstate/TextureState.cpp \
39 renderthread/CanvasContext.cpp \
Stan Iliev768e3932016-07-08 21:34:52 -040040 renderthread/OpenGLPipeline.cpp \
John Reckd2e72142015-08-17 13:11:43 -070041 renderthread/DrawFrameTask.cpp \
42 renderthread/EglManager.cpp \
43 renderthread/RenderProxy.cpp \
44 renderthread/RenderTask.cpp \
45 renderthread/RenderThread.cpp \
46 renderthread/TimeLord.cpp \
47 thread/TaskManager.cpp \
48 utils/Blur.cpp \
49 utils/GLUtils.cpp \
50 utils/LinearAllocator.cpp \
Chris Craik6e6646c2015-09-14 15:54:12 -070051 utils/StringUtils.cpp \
Tom Hudsonb2f5bd22015-10-15 16:41:55 -040052 utils/TestWindowContext.cpp \
Doris Liu804618d2015-11-16 22:48:34 -080053 utils/VectorDrawableUtils.cpp \
John Reckd2e72142015-08-17 13:11:43 -070054 AmbientShadow.cpp \
55 AnimationContext.cpp \
56 Animator.cpp \
57 AnimatorManager.cpp \
Chris Craik5e00c7c2016-07-06 16:10:09 -070058 BakedOpDispatcher.cpp \
59 BakedOpRenderer.cpp \
60 BakedOpState.cpp \
John Reckd2e72142015-08-17 13:11:43 -070061 Caches.cpp \
62 CanvasState.cpp \
63 ClipArea.cpp \
64 DamageAccumulator.cpp \
John Reckd2e72142015-08-17 13:11:43 -070065 DeferredLayerUpdater.cpp \
John Reck704bed02015-11-05 09:22:17 -080066 DeviceInfo.cpp \
John Reckd2e72142015-08-17 13:11:43 -070067 DisplayList.cpp \
John Reckd2e72142015-08-17 13:11:43 -070068 Extensions.cpp \
69 FboCache.cpp \
70 FontRenderer.cpp \
Chris Craik5e00c7c2016-07-06 16:10:09 -070071 FrameBuilder.cpp \
John Reckd2e72142015-08-17 13:11:43 -070072 FrameInfo.cpp \
73 FrameInfoVisualizer.cpp \
74 GammaFontRenderer.cpp \
75 GlopBuilder.cpp \
John Reck38e0c322015-11-10 12:19:17 -080076 GpuMemoryTracker.cpp \
John Reckd2e72142015-08-17 13:11:43 -070077 GradientCache.cpp \
78 Image.cpp \
79 Interpolator.cpp \
80 JankTracker.cpp \
81 Layer.cpp \
Chris Craik5e00c7c2016-07-06 16:10:09 -070082 LayerBuilder.cpp \
Chris Craik0b7e8242015-10-28 16:50:44 -070083 LayerUpdateQueue.cpp \
John Reckd2e72142015-08-17 13:11:43 -070084 Matrix.cpp \
Chris Craik5e00c7c2016-07-06 16:10:09 -070085 OpDumper.cpp \
John Reckd2e72142015-08-17 13:11:43 -070086 Patch.cpp \
87 PatchCache.cpp \
88 PathCache.cpp \
Doris Liu30bcf692015-11-04 14:56:24 -080089 PathParser.cpp \
Chris Craik5e00c7c2016-07-06 16:10:09 -070090 PathTessellator.cpp \
John Reckd2e72142015-08-17 13:11:43 -070091 PixelBuffer.cpp \
Matt Sarettde973072016-10-25 11:07:40 -040092 ProfileRenderer.cpp \
John Reckd2e72142015-08-17 13:11:43 -070093 Program.cpp \
94 ProgramCache.cpp \
95 Properties.cpp \
Doris Liu766431a2016-02-04 22:17:11 +000096 PropertyValuesAnimatorSet.cpp \
Chris Craik5e00c7c2016-07-06 16:10:09 -070097 PropertyValuesHolder.cpp \
John Reck10dd0582016-03-31 16:36:16 -070098 Readback.cpp \
Chris Craik5e00c7c2016-07-06 16:10:09 -070099 RecordingCanvas.cpp \
John Reckd2e72142015-08-17 13:11:43 -0700100 RenderBufferCache.cpp \
101 RenderNode.cpp \
102 RenderProperties.cpp \
103 ResourceCache.cpp \
104 ShadowTessellator.cpp \
105 SkiaCanvas.cpp \
106 SkiaCanvasProxy.cpp \
107 SkiaShader.cpp \
108 Snapshot.cpp \
109 SpotShadow.cpp \
110 TessellationCache.cpp \
111 TextDropShadowCache.cpp \
112 Texture.cpp \
John Recke248bd12015-08-05 13:53:53 -0700113 TextureCache.cpp \
Doris Liu4bbc2932015-12-01 17:59:40 -0800114 VectorDrawable.cpp \
John Recke248bd12015-08-05 13:53:53 -0700115 protos/hwui.proto
John Reckd2e72142015-08-17 13:11:43 -0700116
Chris Craik8160f202015-12-02 14:50:25 -0800117hwui_test_common_src_files := \
Chris Craik27e58b42015-12-07 10:01:38 -0800118 $(call all-cpp-files-under, tests/common/scenes) \
sergeyv7dc370b2016-06-17 11:21:11 -0700119 tests/common/LeakChecker.cpp \
sergeyv06a62f62016-06-16 14:52:20 -0700120 tests/common/TestListViewSceneBase.cpp \
Chris Craik27e58b42015-12-07 10:01:38 -0800121 tests/common/TestContext.cpp \
122 tests/common/TestScene.cpp \
Chris Craik8160f202015-12-02 14:50:25 -0800123 tests/common/TestUtils.cpp
124
sergeyv8bd5edf2016-05-13 15:03:35 -0700125hwui_debug_common_src_files := \
126 debug/wrap_gles.cpp \
127 debug/DefaultGlesDriver.cpp \
128 debug/GlesErrorCheckWrapper.cpp \
129 debug/GlesDriver.cpp \
130 debug/FatalBaseDriver.cpp \
131 debug/NullGlesDriver.cpp
132
John Reckd2e72142015-08-17 13:11:43 -0700133hwui_cflags := \
134 -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES \
135 -DATRACE_TAG=ATRACE_TAG_VIEW -DLOG_TAG=\"OpenGLRenderer\" \
John Reck82f5e0c2015-10-22 17:07:45 -0700136 -Wall -Wno-unused-parameter -Wunreachable-code -Werror
John Reckd2e72142015-08-17 13:11:43 -0700137
John Reck2d5b8d72016-07-28 15:36:11 -0700138ifeq ($(TARGET_USES_HWC2),true)
139 hwui_cflags += -DUSE_HWC2
140endif
141
Romain Guy253f2c22016-09-28 17:34:42 -0700142# TODO: Linear blending should be enabled by default, but we are
143# TODO: making it an opt-in while it's a work in progress
144# TODO: The final test should be:
145# TODO: ifneq ($(TARGET_ENABLE_LINEAR_BLENDING),false)
146ifeq ($(TARGET_ENABLE_LINEAR_BLENDING),true)
147 hwui_cflags += -DANDROID_ENABLE_LINEAR_BLENDING
148endif
149
John Reckc90ed752015-11-04 07:39:44 -0800150# GCC false-positives on this warning, and since we -Werror that's
151# a problem
152hwui_cflags += -Wno-free-nonheap-object
153
John Reckf1480762016-07-03 18:28:25 -0700154# clang's warning is broken, see: https://llvm.org/bugs/show_bug.cgi?id=21629
155hwui_cflags += -Wno-missing-braces
156
sergeyvaf102be2016-09-09 18:02:07 -0700157ifeq (true, $(BUGREPORT_FONT_CACHE_USAGE))
158 hwui_src_files += \
159 font/FontCacheHistoryTracker.cpp
160 hwui_cflags += -DBUGREPORT_FONT_CACHE_USAGE
161endif
162
John Reckd2e72142015-08-17 13:11:43 -0700163ifndef HWUI_COMPILE_SYMBOLS
164 hwui_cflags += -fvisibility=hidden
165endif
166
167ifdef HWUI_COMPILE_FOR_PERF
168 # TODO: Non-arm?
169 hwui_cflags += -fno-omit-frame-pointer -marm -mapcs
170endif
171
John Recke248bd12015-08-05 13:53:53 -0700172# This has to be lazy-resolved because it depends on the LOCAL_MODULE_CLASS
173# which varies depending on what is being built
174define hwui_proto_include
175$(call local-generated-sources-dir)/proto/$(LOCAL_PATH)
176endef
177
John Reckd2e72142015-08-17 13:11:43 -0700178hwui_c_includes += \
Leon Scroggins III55078072015-07-31 10:38:40 -0400179 external/skia/include/private \
sergeyvdccca442016-03-21 15:38:21 -0700180 external/skia/src/core \
Stan Iliev021693b2016-10-17 16:26:15 -0400181 external/skia/src/effects \
sergeyvdccca442016-03-21 15:38:21 -0700182 external/harfbuzz_ng/src \
183 external/freetype/include
John Reckd2e72142015-08-17 13:11:43 -0700184
John Reckd2e72142015-08-17 13:11:43 -0700185ifneq (false,$(ANDROID_ENABLE_RENDERSCRIPT))
186 hwui_cflags += -DANDROID_ENABLE_RENDERSCRIPT
John Reckd2e72142015-08-17 13:11:43 -0700187 hwui_c_includes += \
188 $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,TARGET,) \
189 frameworks/rs/cpp \
190 frameworks/rs
191endif
192
John Reckd2e72142015-08-17 13:11:43 -0700193# ------------------------
194# static library
195# ------------------------
196
197include $(CLEAR_VARS)
198
199LOCAL_MODULE_CLASS := STATIC_LIBRARIES
200LOCAL_MODULE := libhwui_static
John Reckd2e72142015-08-17 13:11:43 -0700201LOCAL_CFLAGS := $(hwui_cflags)
202LOCAL_SRC_FILES := $(hwui_src_files)
sergeyv8bd5edf2016-05-13 15:03:35 -0700203
204ifeq (true, $(HWUI_ENABLE_OPENGL_VALIDATION))
205 LOCAL_CFLAGS += -include debug/wrap_gles.h
206 LOCAL_CFLAGS += -DDEBUG_OPENGL=3
207 LOCAL_SRC_FILES += $(hwui_debug_common_src_files)
208endif
209
John Recke248bd12015-08-05 13:53:53 -0700210LOCAL_C_INCLUDES := $(hwui_c_includes) $(call hwui_proto_include)
Derek Sollenberger991da312016-02-11 12:13:07 -0500211LOCAL_EXPORT_C_INCLUDE_DIRS := \
212 $(LOCAL_PATH) \
Derek Sollenberger991da312016-02-11 12:13:07 -0500213 $(call hwui_proto_include)
John Reckd2e72142015-08-17 13:11:43 -0700214
Derek Sollenberger991da312016-02-11 12:13:07 -0500215include $(LOCAL_PATH)/hwui_static_deps.mk
John Reckd2e72142015-08-17 13:11:43 -0700216include $(BUILD_STATIC_LIBRARY)
217
218# ------------------------
Chris Craik5fbd9db2015-10-19 11:22:11 -0700219# static library null gpu
220# ------------------------
221
222include $(CLEAR_VARS)
223
224LOCAL_MODULE_CLASS := STATIC_LIBRARIES
sergeyv8bd5edf2016-05-13 15:03:35 -0700225LOCAL_MODULE := libhwui_static_debug
Chris Craik5fbd9db2015-10-19 11:22:11 -0700226LOCAL_CFLAGS := \
227 $(hwui_cflags) \
sergeyv8bd5edf2016-05-13 15:03:35 -0700228 -include debug/wrap_gles.h \
Chris Craik5fbd9db2015-10-19 11:22:11 -0700229 -DHWUI_NULL_GPU
230LOCAL_SRC_FILES := \
231 $(hwui_src_files) \
sergeyv8bd5edf2016-05-13 15:03:35 -0700232 $(hwui_debug_common_src_files) \
233 debug/nullegl.cpp
Chris Craik5fbd9db2015-10-19 11:22:11 -0700234LOCAL_C_INCLUDES := $(hwui_c_includes) $(call hwui_proto_include)
Derek Sollenberger991da312016-02-11 12:13:07 -0500235LOCAL_EXPORT_C_INCLUDE_DIRS := \
236 $(LOCAL_PATH) \
Derek Sollenberger991da312016-02-11 12:13:07 -0500237 $(call hwui_proto_include)
Chris Craik5fbd9db2015-10-19 11:22:11 -0700238
Derek Sollenberger991da312016-02-11 12:13:07 -0500239include $(LOCAL_PATH)/hwui_static_deps.mk
Chris Craik5fbd9db2015-10-19 11:22:11 -0700240include $(BUILD_STATIC_LIBRARY)
241
242# ------------------------
John Reckd2e72142015-08-17 13:11:43 -0700243# shared library
244# ------------------------
245
246include $(CLEAR_VARS)
247
John Recka2732a22014-12-18 13:52:33 -0800248LOCAL_MODULE_CLASS := SHARED_LIBRARIES
249LOCAL_MODULE := libhwui
John Reckd2e72142015-08-17 13:11:43 -0700250LOCAL_WHOLE_STATIC_LIBRARIES := libhwui_static
Derek Sollenberger991da312016-02-11 12:13:07 -0500251LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
Romain Guye4d01122010-06-16 18:44:05 -0700252
Derek Sollenberger991da312016-02-11 12:13:07 -0500253include $(LOCAL_PATH)/hwui_static_deps.mk
John Recka2732a22014-12-18 13:52:33 -0800254include $(BUILD_SHARED_LIBRARY)
Andreas Gampeedaecc12014-11-10 20:54:07 -0800255
John Reckd2e72142015-08-17 13:11:43 -0700256# ------------------------
257# unit tests
258# ------------------------
259
260include $(CLEAR_VARS)
261
262LOCAL_MODULE := hwui_unit_tests
263LOCAL_MODULE_TAGS := tests
sergeyv8bd5edf2016-05-13 15:03:35 -0700264LOCAL_STATIC_LIBRARIES := libgmock libhwui_static_debug
John Reckdc87c522016-02-29 13:31:18 -0800265LOCAL_SHARED_LIBRARIES := libmemunreachable
Chris Craik98787e62015-11-13 10:55:30 -0800266LOCAL_CFLAGS := \
267 $(hwui_cflags) \
sergeyv8bd5edf2016-05-13 15:03:35 -0700268 -include debug/wrap_gles.h \
Chris Craik98787e62015-11-13 10:55:30 -0800269 -DHWUI_NULL_GPU
Dan Willemsene9c205b2016-03-07 12:58:33 -0800270LOCAL_C_INCLUDES := $(hwui_c_includes)
John Reckd2e72142015-08-17 13:11:43 -0700271
272LOCAL_SRC_FILES += \
Chris Craik8160f202015-12-02 14:50:25 -0800273 $(hwui_test_common_src_files) \
John Reckdc87c522016-02-29 13:31:18 -0800274 tests/unit/main.cpp \
Chris Craik5e00c7c2016-07-06 16:10:09 -0700275 tests/unit/BakedOpDispatcherTests.cpp \
276 tests/unit/BakedOpRendererTests.cpp \
277 tests/unit/BakedOpStateTests.cpp \
Derek Sollenbergerdaf72292016-10-25 12:09:18 -0400278 tests/unit/CanvasContextTests.cpp \
Chris Craik8160f202015-12-02 14:50:25 -0800279 tests/unit/CanvasStateTests.cpp \
280 tests/unit/ClipAreaTests.cpp \
281 tests/unit/DamageAccumulatorTests.cpp \
Derek Sollenberger56ad6ec2016-07-22 12:13:32 -0400282 tests/unit/DeferredLayerUpdaterTests.cpp \
Chris Craik8160f202015-12-02 14:50:25 -0800283 tests/unit/DeviceInfoTests.cpp \
284 tests/unit/FatVectorTests.cpp \
Chris Craikf3754a82016-04-19 18:13:21 -0700285 tests/unit/FontRendererTests.cpp \
Chris Craik5e00c7c2016-07-06 16:10:09 -0700286 tests/unit/FrameBuilderTests.cpp \
sergeyvf42bf3e2016-03-11 13:45:15 -0800287 tests/unit/GlopBuilderTests.cpp \
John Reck38e0c322015-11-10 12:19:17 -0800288 tests/unit/GpuMemoryTrackerTests.cpp \
Chris Craik04d46eb2016-04-07 13:51:07 -0700289 tests/unit/GradientCacheTests.cpp \
Chris Craik8160f202015-12-02 14:50:25 -0800290 tests/unit/LayerUpdateQueueTests.cpp \
Chris Craik5e00c7c2016-07-06 16:10:09 -0700291 tests/unit/LeakCheckTests.cpp \
Chris Craik8160f202015-12-02 14:50:25 -0800292 tests/unit/LinearAllocatorTests.cpp \
Chris Craik261725f2016-02-29 12:52:33 -0800293 tests/unit/MatrixTests.cpp \
sergeyv8bd5edf2016-05-13 15:03:35 -0700294 tests/unit/MeshStateTests.cpp \
Chris Craik8160f202015-12-02 14:50:25 -0800295 tests/unit/OffscreenBufferPoolTests.cpp \
Chris Craik5e00c7c2016-07-06 16:10:09 -0700296 tests/unit/OpDumperTests.cpp \
Stan Iliev021693b2016-10-17 16:26:15 -0400297 tests/unit/RenderNodeDrawableTests.cpp \
Chris Craik5e00c7c2016-07-06 16:10:09 -0700298 tests/unit/RecordingCanvasTests.cpp \
John Reck44b49f02016-03-25 14:29:48 -0700299 tests/unit/RenderNodeTests.cpp \
Chris Craikd4fe4d32016-06-09 16:57:11 -0700300 tests/unit/RenderPropertiesTests.cpp \
Chris Craik07d8d592016-02-03 18:43:04 -0800301 tests/unit/SkiaBehaviorTests.cpp \
Derek Sollenberger0df62092016-09-27 16:04:42 -0400302 tests/unit/SkiaDisplayListTests.cpp \
Stan Iliev500a0c32016-10-26 10:30:09 -0400303 tests/unit/SkiaPipelineTests.cpp \
Chris Craik5e00c7c2016-07-06 16:10:09 -0700304 tests/unit/SkiaCanvasTests.cpp \
Chris Craik04d46eb2016-04-07 13:51:07 -0700305 tests/unit/SnapshotTests.cpp \
Andres Morales06f5bc72015-12-15 15:21:31 -0800306 tests/unit/StringUtilsTests.cpp \
Chris Craik37413282016-05-12 17:48:51 -0700307 tests/unit/TestUtilsTests.cpp \
Chris Craik07d8d592016-02-03 18:43:04 -0800308 tests/unit/TextDropShadowCacheTests.cpp \
Chris Craik5e00c7c2016-07-06 16:10:09 -0700309 tests/unit/VectorDrawableTests.cpp \
Chris Craikb565df12015-10-05 13:00:52 -0700310
Derek Sollenberger991da312016-02-11 12:13:07 -0500311include $(LOCAL_PATH)/hwui_static_deps.mk
John Reckd2e72142015-08-17 13:11:43 -0700312include $(BUILD_NATIVE_TEST)
313
314# ------------------------
Chris Craik8160f202015-12-02 14:50:25 -0800315# Macro-bench app
John Reckd2e72142015-08-17 13:11:43 -0700316# ------------------------
317
318include $(CLEAR_VARS)
319
320LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/local/tmp
sergeyv202c10b2016-07-11 17:53:45 -0700321LOCAL_MODULE:= hwuimacro
John Reckd2e72142015-08-17 13:11:43 -0700322LOCAL_MODULE_TAGS := tests
323LOCAL_MULTILIB := both
John Reckd2e72142015-08-17 13:11:43 -0700324LOCAL_CFLAGS := $(hwui_cflags)
Dan Willemsene9c205b2016-03-07 12:58:33 -0800325LOCAL_C_INCLUDES := $(hwui_c_includes)
John Reckd2e72142015-08-17 13:11:43 -0700326
sergeyv8bd5edf2016-05-13 15:03:35 -0700327# set to libhwui_static_debug to skip actual GL commands
Chris Craik5fbd9db2015-10-19 11:22:11 -0700328LOCAL_WHOLE_STATIC_LIBRARIES := libhwui_static
sergeyv7dc370b2016-06-17 11:21:11 -0700329LOCAL_SHARED_LIBRARIES := libmemunreachable
John Reckd2e72142015-08-17 13:11:43 -0700330
331LOCAL_SRC_FILES += \
Chris Craik8160f202015-12-02 14:50:25 -0800332 $(hwui_test_common_src_files) \
Chris Craik8160f202015-12-02 14:50:25 -0800333 tests/macrobench/TestSceneRunner.cpp \
334 tests/macrobench/main.cpp
John Reckd2e72142015-08-17 13:11:43 -0700335
Derek Sollenberger991da312016-02-11 12:13:07 -0500336include $(LOCAL_PATH)/hwui_static_deps.mk
sergeyv202c10b2016-07-11 17:53:45 -0700337include $(BUILD_NATIVE_BENCHMARK)
John Reck4a4bc892015-10-12 07:38:22 -0700338
339# ------------------------
340# Micro-bench app
341# ---------------------
342include $(CLEAR_VARS)
343
John Reck4a4bc892015-10-12 07:38:22 -0700344LOCAL_MODULE:= hwuimicro
345LOCAL_MODULE_TAGS := tests
Chris Craik8d1f2122015-11-24 16:40:09 -0800346LOCAL_CFLAGS := \
347 $(hwui_cflags) \
sergeyv8bd5edf2016-05-13 15:03:35 -0700348 -include debug/wrap_gles.h \
Chris Craik8d1f2122015-11-24 16:40:09 -0800349 -DHWUI_NULL_GPU
John Reck4a4bc892015-10-12 07:38:22 -0700350
John Reck2bee0dd2016-03-09 08:01:37 -0800351LOCAL_C_INCLUDES := $(hwui_c_includes)
John Reck4a4bc892015-10-12 07:38:22 -0700352
sergeyv8bd5edf2016-05-13 15:03:35 -0700353LOCAL_WHOLE_STATIC_LIBRARIES := libhwui_static_debug
sergeyv7dc370b2016-06-17 11:21:11 -0700354LOCAL_SHARED_LIBRARIES := libmemunreachable
John Reck4a4bc892015-10-12 07:38:22 -0700355
356LOCAL_SRC_FILES += \
Chris Craik8160f202015-12-02 14:50:25 -0800357 $(hwui_test_common_src_files) \
John Reck0418afa32016-03-07 13:24:25 -0800358 tests/microbench/main.cpp \
Chris Craik8160f202015-12-02 14:50:25 -0800359 tests/microbench/DisplayListCanvasBench.cpp \
John Reck2c0f9372016-03-28 09:34:35 -0700360 tests/microbench/FontBench.cpp \
Chris Craik5e00c7c2016-07-06 16:10:09 -0700361 tests/microbench/FrameBuilderBench.cpp \
Chris Craik8160f202015-12-02 14:50:25 -0800362 tests/microbench/LinearAllocatorBench.cpp \
363 tests/microbench/PathParserBench.cpp \
John Reck3acf03822016-11-02 11:14:47 -0700364 tests/microbench/RenderNodeBench.cpp \
Chris Craikb251a2f2016-02-08 19:36:46 +0000365 tests/microbench/ShadowBench.cpp \
366 tests/microbench/TaskManagerBench.cpp
John Reck4a4bc892015-10-12 07:38:22 -0700367
Chris Craik0a24b142015-10-19 17:10:19 -0700368
Derek Sollenberger991da312016-02-11 12:13:07 -0500369include $(LOCAL_PATH)/hwui_static_deps.mk
sergeyv422e2b42016-06-20 15:27:39 -0700370include $(BUILD_NATIVE_BENCHMARK)