blob: 18e59e551845e1bf0b884594d2bc0c1de23b6707 [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 \
Derek Sollenbergerc4fbada2016-11-07 16:05:41 -050027 pipeline/skia/SkiaOpenGLReadback.cpp \
Stan Iliev500a0c32016-10-26 10:30:09 -040028 pipeline/skia/SkiaPipeline.cpp \
Matt Sarettcf2c05c2016-10-26 11:03:23 -040029 pipeline/skia/SkiaProfileRenderer.cpp \
Stan Iliev021693b2016-10-17 16:26:15 -040030 pipeline/skia/SkiaRecordingCanvas.cpp \
Stan Iliev500a0c32016-10-26 10:30:09 -040031 pipeline/skia/SkiaVulkanPipeline.cpp \
John Reckd2e72142015-08-17 13:11:43 -070032 renderstate/Blend.cpp \
33 renderstate/MeshState.cpp \
Chris Craik9fded232015-11-11 16:42:34 -080034 renderstate/OffscreenBufferPool.cpp \
John Reckd2e72142015-08-17 13:11:43 -070035 renderstate/PixelBufferState.cpp \
36 renderstate/RenderState.cpp \
37 renderstate/Scissor.cpp \
38 renderstate/Stencil.cpp \
39 renderstate/TextureState.cpp \
40 renderthread/CanvasContext.cpp \
Stan Iliev768e3932016-07-08 21:34:52 -040041 renderthread/OpenGLPipeline.cpp \
John Reckd2e72142015-08-17 13:11:43 -070042 renderthread/DrawFrameTask.cpp \
43 renderthread/EglManager.cpp \
Derek Sollenberger0e3cba32016-11-09 11:58:36 -050044 renderthread/VulkanManager.cpp \
John Reckd2e72142015-08-17 13:11:43 -070045 renderthread/RenderProxy.cpp \
46 renderthread/RenderTask.cpp \
47 renderthread/RenderThread.cpp \
48 renderthread/TimeLord.cpp \
Greg Danielcd558522016-11-17 13:31:40 -050049 renderthread/Frame.cpp \
John Reckd2e72142015-08-17 13:11:43 -070050 thread/TaskManager.cpp \
51 utils/Blur.cpp \
52 utils/GLUtils.cpp \
53 utils/LinearAllocator.cpp \
Chris Craik6e6646c2015-09-14 15:54:12 -070054 utils/StringUtils.cpp \
Tom Hudsonb2f5bd22015-10-15 16:41:55 -040055 utils/TestWindowContext.cpp \
Doris Liu804618d2015-11-16 22:48:34 -080056 utils/VectorDrawableUtils.cpp \
John Reckd2e72142015-08-17 13:11:43 -070057 AmbientShadow.cpp \
58 AnimationContext.cpp \
59 Animator.cpp \
60 AnimatorManager.cpp \
Chris Craik5e00c7c2016-07-06 16:10:09 -070061 BakedOpDispatcher.cpp \
62 BakedOpRenderer.cpp \
63 BakedOpState.cpp \
John Reckd2e72142015-08-17 13:11:43 -070064 Caches.cpp \
65 CanvasState.cpp \
66 ClipArea.cpp \
67 DamageAccumulator.cpp \
John Reckd2e72142015-08-17 13:11:43 -070068 DeferredLayerUpdater.cpp \
John Reck704bed02015-11-05 09:22:17 -080069 DeviceInfo.cpp \
John Reckd2e72142015-08-17 13:11:43 -070070 DisplayList.cpp \
John Reckd2e72142015-08-17 13:11:43 -070071 Extensions.cpp \
72 FboCache.cpp \
73 FontRenderer.cpp \
Chris Craik5e00c7c2016-07-06 16:10:09 -070074 FrameBuilder.cpp \
John Reckd2e72142015-08-17 13:11:43 -070075 FrameInfo.cpp \
76 FrameInfoVisualizer.cpp \
77 GammaFontRenderer.cpp \
78 GlopBuilder.cpp \
John Reck38e0c322015-11-10 12:19:17 -080079 GpuMemoryTracker.cpp \
John Reckd2e72142015-08-17 13:11:43 -070080 GradientCache.cpp \
81 Image.cpp \
82 Interpolator.cpp \
83 JankTracker.cpp \
84 Layer.cpp \
Chris Craik5e00c7c2016-07-06 16:10:09 -070085 LayerBuilder.cpp \
Chris Craik0b7e8242015-10-28 16:50:44 -070086 LayerUpdateQueue.cpp \
John Reckd2e72142015-08-17 13:11:43 -070087 Matrix.cpp \
Chris Craik5e00c7c2016-07-06 16:10:09 -070088 OpDumper.cpp \
Derek Sollenbergerc4fbada2016-11-07 16:05:41 -050089 OpenGLReadback.cpp \
John Reckd2e72142015-08-17 13:11:43 -070090 Patch.cpp \
91 PatchCache.cpp \
92 PathCache.cpp \
Doris Liu30bcf692015-11-04 14:56:24 -080093 PathParser.cpp \
Chris Craik5e00c7c2016-07-06 16:10:09 -070094 PathTessellator.cpp \
John Reckd2e72142015-08-17 13:11:43 -070095 PixelBuffer.cpp \
Matt Sarettde973072016-10-25 11:07:40 -040096 ProfileRenderer.cpp \
John Reckd2e72142015-08-17 13:11:43 -070097 Program.cpp \
98 ProgramCache.cpp \
99 Properties.cpp \
Doris Liu766431a2016-02-04 22:17:11 +0000100 PropertyValuesAnimatorSet.cpp \
Chris Craik5e00c7c2016-07-06 16:10:09 -0700101 PropertyValuesHolder.cpp \
Chris Craik5e00c7c2016-07-06 16:10:09 -0700102 RecordingCanvas.cpp \
John Reckd2e72142015-08-17 13:11:43 -0700103 RenderBufferCache.cpp \
104 RenderNode.cpp \
105 RenderProperties.cpp \
106 ResourceCache.cpp \
107 ShadowTessellator.cpp \
108 SkiaCanvas.cpp \
109 SkiaCanvasProxy.cpp \
110 SkiaShader.cpp \
111 Snapshot.cpp \
112 SpotShadow.cpp \
113 TessellationCache.cpp \
114 TextDropShadowCache.cpp \
115 Texture.cpp \
John Recke248bd12015-08-05 13:53:53 -0700116 TextureCache.cpp \
Doris Liu4bbc2932015-12-01 17:59:40 -0800117 VectorDrawable.cpp \
John Recke248bd12015-08-05 13:53:53 -0700118 protos/hwui.proto
John Reckd2e72142015-08-17 13:11:43 -0700119
Chris Craik8160f202015-12-02 14:50:25 -0800120hwui_test_common_src_files := \
Chris Craik27e58b42015-12-07 10:01:38 -0800121 $(call all-cpp-files-under, tests/common/scenes) \
sergeyv7dc370b2016-06-17 11:21:11 -0700122 tests/common/LeakChecker.cpp \
sergeyv06a62f62016-06-16 14:52:20 -0700123 tests/common/TestListViewSceneBase.cpp \
Chris Craik27e58b42015-12-07 10:01:38 -0800124 tests/common/TestContext.cpp \
125 tests/common/TestScene.cpp \
Chris Craik8160f202015-12-02 14:50:25 -0800126 tests/common/TestUtils.cpp
127
sergeyv8bd5edf2016-05-13 15:03:35 -0700128hwui_debug_common_src_files := \
129 debug/wrap_gles.cpp \
130 debug/DefaultGlesDriver.cpp \
131 debug/GlesErrorCheckWrapper.cpp \
132 debug/GlesDriver.cpp \
133 debug/FatalBaseDriver.cpp \
134 debug/NullGlesDriver.cpp
135
John Reckd2e72142015-08-17 13:11:43 -0700136hwui_cflags := \
137 -DEGL_EGLEXT_PROTOTYPES -DGL_GLEXT_PROTOTYPES \
138 -DATRACE_TAG=ATRACE_TAG_VIEW -DLOG_TAG=\"OpenGLRenderer\" \
John Reck82f5e0c2015-10-22 17:07:45 -0700139 -Wall -Wno-unused-parameter -Wunreachable-code -Werror
John Reckd2e72142015-08-17 13:11:43 -0700140
John Reck2d5b8d72016-07-28 15:36:11 -0700141ifeq ($(TARGET_USES_HWC2),true)
142 hwui_cflags += -DUSE_HWC2
143endif
144
Romain Guy253f2c22016-09-28 17:34:42 -0700145# TODO: Linear blending should be enabled by default, but we are
146# TODO: making it an opt-in while it's a work in progress
147# TODO: The final test should be:
148# TODO: ifneq ($(TARGET_ENABLE_LINEAR_BLENDING),false)
149ifeq ($(TARGET_ENABLE_LINEAR_BLENDING),true)
150 hwui_cflags += -DANDROID_ENABLE_LINEAR_BLENDING
151endif
152
John Reckc90ed752015-11-04 07:39:44 -0800153# GCC false-positives on this warning, and since we -Werror that's
154# a problem
155hwui_cflags += -Wno-free-nonheap-object
156
John Reckf1480762016-07-03 18:28:25 -0700157# clang's warning is broken, see: https://llvm.org/bugs/show_bug.cgi?id=21629
158hwui_cflags += -Wno-missing-braces
159
sergeyvaf102be2016-09-09 18:02:07 -0700160ifeq (true, $(BUGREPORT_FONT_CACHE_USAGE))
161 hwui_src_files += \
162 font/FontCacheHistoryTracker.cpp
163 hwui_cflags += -DBUGREPORT_FONT_CACHE_USAGE
164endif
165
John Reckd2e72142015-08-17 13:11:43 -0700166ifndef HWUI_COMPILE_SYMBOLS
167 hwui_cflags += -fvisibility=hidden
168endif
169
170ifdef HWUI_COMPILE_FOR_PERF
171 # TODO: Non-arm?
172 hwui_cflags += -fno-omit-frame-pointer -marm -mapcs
173endif
174
John Recke248bd12015-08-05 13:53:53 -0700175# This has to be lazy-resolved because it depends on the LOCAL_MODULE_CLASS
176# which varies depending on what is being built
177define hwui_proto_include
178$(call local-generated-sources-dir)/proto/$(LOCAL_PATH)
179endef
180
John Reckd2e72142015-08-17 13:11:43 -0700181hwui_c_includes += \
Leon Scroggins III55078072015-07-31 10:38:40 -0400182 external/skia/include/private \
sergeyvdccca442016-03-21 15:38:21 -0700183 external/skia/src/core \
Stan Iliev021693b2016-10-17 16:26:15 -0400184 external/skia/src/effects \
Stan Ilievdb45a4b2016-11-08 14:18:31 -0500185 external/skia/src/image \
Leon Scroggins III82c581d2016-12-12 11:00:52 -0500186 external/skia/src/utils \
sergeyvdccca442016-03-21 15:38:21 -0700187 external/harfbuzz_ng/src \
188 external/freetype/include
John Reckd2e72142015-08-17 13:11:43 -0700189
John Reckd2e72142015-08-17 13:11:43 -0700190ifneq (false,$(ANDROID_ENABLE_RENDERSCRIPT))
191 hwui_cflags += -DANDROID_ENABLE_RENDERSCRIPT
John Reckd2e72142015-08-17 13:11:43 -0700192 hwui_c_includes += \
193 $(call intermediates-dir-for,STATIC_LIBRARIES,libRS,TARGET,) \
194 frameworks/rs/cpp \
195 frameworks/rs
196endif
197
John Reckd2e72142015-08-17 13:11:43 -0700198# ------------------------
199# static library
200# ------------------------
201
202include $(CLEAR_VARS)
203
204LOCAL_MODULE_CLASS := STATIC_LIBRARIES
205LOCAL_MODULE := libhwui_static
John Reckd2e72142015-08-17 13:11:43 -0700206LOCAL_CFLAGS := $(hwui_cflags)
207LOCAL_SRC_FILES := $(hwui_src_files)
sergeyv8bd5edf2016-05-13 15:03:35 -0700208
209ifeq (true, $(HWUI_ENABLE_OPENGL_VALIDATION))
210 LOCAL_CFLAGS += -include debug/wrap_gles.h
211 LOCAL_CFLAGS += -DDEBUG_OPENGL=3
212 LOCAL_SRC_FILES += $(hwui_debug_common_src_files)
213endif
214
John Recke248bd12015-08-05 13:53:53 -0700215LOCAL_C_INCLUDES := $(hwui_c_includes) $(call hwui_proto_include)
Derek Sollenberger991da312016-02-11 12:13:07 -0500216LOCAL_EXPORT_C_INCLUDE_DIRS := \
217 $(LOCAL_PATH) \
Derek Sollenberger991da312016-02-11 12:13:07 -0500218 $(call hwui_proto_include)
John Reckd2e72142015-08-17 13:11:43 -0700219
Derek Sollenberger991da312016-02-11 12:13:07 -0500220include $(LOCAL_PATH)/hwui_static_deps.mk
John Reckd2e72142015-08-17 13:11:43 -0700221include $(BUILD_STATIC_LIBRARY)
222
223# ------------------------
Chris Craik5fbd9db2015-10-19 11:22:11 -0700224# static library null gpu
225# ------------------------
226
227include $(CLEAR_VARS)
228
229LOCAL_MODULE_CLASS := STATIC_LIBRARIES
sergeyv8bd5edf2016-05-13 15:03:35 -0700230LOCAL_MODULE := libhwui_static_debug
Chris Craik5fbd9db2015-10-19 11:22:11 -0700231LOCAL_CFLAGS := \
232 $(hwui_cflags) \
sergeyv8bd5edf2016-05-13 15:03:35 -0700233 -include debug/wrap_gles.h \
Chris Craik5fbd9db2015-10-19 11:22:11 -0700234 -DHWUI_NULL_GPU
235LOCAL_SRC_FILES := \
236 $(hwui_src_files) \
sergeyv8bd5edf2016-05-13 15:03:35 -0700237 $(hwui_debug_common_src_files) \
238 debug/nullegl.cpp
Chris Craik5fbd9db2015-10-19 11:22:11 -0700239LOCAL_C_INCLUDES := $(hwui_c_includes) $(call hwui_proto_include)
Derek Sollenberger991da312016-02-11 12:13:07 -0500240LOCAL_EXPORT_C_INCLUDE_DIRS := \
241 $(LOCAL_PATH) \
Derek Sollenberger991da312016-02-11 12:13:07 -0500242 $(call hwui_proto_include)
Chris Craik5fbd9db2015-10-19 11:22:11 -0700243
Derek Sollenberger991da312016-02-11 12:13:07 -0500244include $(LOCAL_PATH)/hwui_static_deps.mk
Chris Craik5fbd9db2015-10-19 11:22:11 -0700245include $(BUILD_STATIC_LIBRARY)
246
247# ------------------------
John Reckd2e72142015-08-17 13:11:43 -0700248# shared library
249# ------------------------
250
251include $(CLEAR_VARS)
252
John Recka2732a22014-12-18 13:52:33 -0800253LOCAL_MODULE_CLASS := SHARED_LIBRARIES
254LOCAL_MODULE := libhwui
John Reckd2e72142015-08-17 13:11:43 -0700255LOCAL_WHOLE_STATIC_LIBRARIES := libhwui_static
Derek Sollenberger991da312016-02-11 12:13:07 -0500256LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
Romain Guye4d01122010-06-16 18:44:05 -0700257
Derek Sollenberger991da312016-02-11 12:13:07 -0500258include $(LOCAL_PATH)/hwui_static_deps.mk
John Recka2732a22014-12-18 13:52:33 -0800259include $(BUILD_SHARED_LIBRARY)
Andreas Gampeedaecc12014-11-10 20:54:07 -0800260
John Reckd2e72142015-08-17 13:11:43 -0700261# ------------------------
262# unit tests
263# ------------------------
264
265include $(CLEAR_VARS)
266
267LOCAL_MODULE := hwui_unit_tests
268LOCAL_MODULE_TAGS := tests
sergeyv8bd5edf2016-05-13 15:03:35 -0700269LOCAL_STATIC_LIBRARIES := libgmock libhwui_static_debug
John Reckdc87c522016-02-29 13:31:18 -0800270LOCAL_SHARED_LIBRARIES := libmemunreachable
Chris Craik98787e62015-11-13 10:55:30 -0800271LOCAL_CFLAGS := \
272 $(hwui_cflags) \
sergeyv8bd5edf2016-05-13 15:03:35 -0700273 -include debug/wrap_gles.h \
Chris Craik98787e62015-11-13 10:55:30 -0800274 -DHWUI_NULL_GPU
Dan Willemsene9c205b2016-03-07 12:58:33 -0800275LOCAL_C_INCLUDES := $(hwui_c_includes)
John Reckd2e72142015-08-17 13:11:43 -0700276
277LOCAL_SRC_FILES += \
Chris Craik8160f202015-12-02 14:50:25 -0800278 $(hwui_test_common_src_files) \
John Reckdc87c522016-02-29 13:31:18 -0800279 tests/unit/main.cpp \
Chris Craik5e00c7c2016-07-06 16:10:09 -0700280 tests/unit/BakedOpDispatcherTests.cpp \
281 tests/unit/BakedOpRendererTests.cpp \
282 tests/unit/BakedOpStateTests.cpp \
sergeyv71c44772016-11-29 20:27:25 -0800283 tests/unit/BitmapTests.cpp \
Derek Sollenbergerdaf72292016-10-25 12:09:18 -0400284 tests/unit/CanvasContextTests.cpp \
Chris Craik8160f202015-12-02 14:50:25 -0800285 tests/unit/CanvasStateTests.cpp \
286 tests/unit/ClipAreaTests.cpp \
287 tests/unit/DamageAccumulatorTests.cpp \
Derek Sollenberger56ad6ec2016-07-22 12:13:32 -0400288 tests/unit/DeferredLayerUpdaterTests.cpp \
Chris Craik8160f202015-12-02 14:50:25 -0800289 tests/unit/DeviceInfoTests.cpp \
290 tests/unit/FatVectorTests.cpp \
Chris Craikf3754a82016-04-19 18:13:21 -0700291 tests/unit/FontRendererTests.cpp \
Chris Craik5e00c7c2016-07-06 16:10:09 -0700292 tests/unit/FrameBuilderTests.cpp \
sergeyvf42bf3e2016-03-11 13:45:15 -0800293 tests/unit/GlopBuilderTests.cpp \
John Reck38e0c322015-11-10 12:19:17 -0800294 tests/unit/GpuMemoryTrackerTests.cpp \
Chris Craik04d46eb2016-04-07 13:51:07 -0700295 tests/unit/GradientCacheTests.cpp \
Chris Craik8160f202015-12-02 14:50:25 -0800296 tests/unit/LayerUpdateQueueTests.cpp \
Chris Craik5e00c7c2016-07-06 16:10:09 -0700297 tests/unit/LeakCheckTests.cpp \
Chris Craik8160f202015-12-02 14:50:25 -0800298 tests/unit/LinearAllocatorTests.cpp \
Chris Craik261725f2016-02-29 12:52:33 -0800299 tests/unit/MatrixTests.cpp \
sergeyv8bd5edf2016-05-13 15:03:35 -0700300 tests/unit/MeshStateTests.cpp \
Chris Craik8160f202015-12-02 14:50:25 -0800301 tests/unit/OffscreenBufferPoolTests.cpp \
Chris Craik5e00c7c2016-07-06 16:10:09 -0700302 tests/unit/OpDumperTests.cpp \
Doris Liu9e9eeee2016-11-29 14:48:25 -0800303 tests/unit/PathInterpolatorTests.cpp \
Stan Iliev021693b2016-10-17 16:26:15 -0400304 tests/unit/RenderNodeDrawableTests.cpp \
Chris Craik5e00c7c2016-07-06 16:10:09 -0700305 tests/unit/RecordingCanvasTests.cpp \
John Reck44b49f02016-03-25 14:29:48 -0700306 tests/unit/RenderNodeTests.cpp \
Chris Craikd4fe4d32016-06-09 16:57:11 -0700307 tests/unit/RenderPropertiesTests.cpp \
Chris Craik07d8d592016-02-03 18:43:04 -0800308 tests/unit/SkiaBehaviorTests.cpp \
Derek Sollenberger0df62092016-09-27 16:04:42 -0400309 tests/unit/SkiaDisplayListTests.cpp \
Stan Iliev500a0c32016-10-26 10:30:09 -0400310 tests/unit/SkiaPipelineTests.cpp \
Stan Iliev52771272016-11-17 09:54:38 -0500311 tests/unit/SkiaRenderPropertiesTests.cpp \
Chris Craik5e00c7c2016-07-06 16:10:09 -0700312 tests/unit/SkiaCanvasTests.cpp \
Chris Craik04d46eb2016-04-07 13:51:07 -0700313 tests/unit/SnapshotTests.cpp \
Andres Morales06f5bc72015-12-15 15:21:31 -0800314 tests/unit/StringUtilsTests.cpp \
Chris Craik37413282016-05-12 17:48:51 -0700315 tests/unit/TestUtilsTests.cpp \
Chris Craik07d8d592016-02-03 18:43:04 -0800316 tests/unit/TextDropShadowCacheTests.cpp \
Chris Craik5e00c7c2016-07-06 16:10:09 -0700317 tests/unit/VectorDrawableTests.cpp \
Chris Craikb565df12015-10-05 13:00:52 -0700318
Derek Sollenberger991da312016-02-11 12:13:07 -0500319include $(LOCAL_PATH)/hwui_static_deps.mk
John Reckd2e72142015-08-17 13:11:43 -0700320include $(BUILD_NATIVE_TEST)
321
322# ------------------------
Chris Craik8160f202015-12-02 14:50:25 -0800323# Macro-bench app
John Reckd2e72142015-08-17 13:11:43 -0700324# ------------------------
325
326include $(CLEAR_VARS)
327
328LOCAL_MODULE_PATH := $(TARGET_OUT_DATA)/local/tmp
sergeyv202c10b2016-07-11 17:53:45 -0700329LOCAL_MODULE:= hwuimacro
John Reckd2e72142015-08-17 13:11:43 -0700330LOCAL_MODULE_TAGS := tests
331LOCAL_MULTILIB := both
John Reckd2e72142015-08-17 13:11:43 -0700332LOCAL_CFLAGS := $(hwui_cflags)
Dan Willemsene9c205b2016-03-07 12:58:33 -0800333LOCAL_C_INCLUDES := $(hwui_c_includes)
John Reckd2e72142015-08-17 13:11:43 -0700334
sergeyv8bd5edf2016-05-13 15:03:35 -0700335# set to libhwui_static_debug to skip actual GL commands
Chris Craik5fbd9db2015-10-19 11:22:11 -0700336LOCAL_WHOLE_STATIC_LIBRARIES := libhwui_static
sergeyv7dc370b2016-06-17 11:21:11 -0700337LOCAL_SHARED_LIBRARIES := libmemunreachable
John Reckd2e72142015-08-17 13:11:43 -0700338
339LOCAL_SRC_FILES += \
Chris Craik8160f202015-12-02 14:50:25 -0800340 $(hwui_test_common_src_files) \
Chris Craik8160f202015-12-02 14:50:25 -0800341 tests/macrobench/TestSceneRunner.cpp \
342 tests/macrobench/main.cpp
John Reckd2e72142015-08-17 13:11:43 -0700343
Derek Sollenberger991da312016-02-11 12:13:07 -0500344include $(LOCAL_PATH)/hwui_static_deps.mk
sergeyv202c10b2016-07-11 17:53:45 -0700345include $(BUILD_NATIVE_BENCHMARK)
John Reck4a4bc892015-10-12 07:38:22 -0700346
347# ------------------------
348# Micro-bench app
349# ---------------------
350include $(CLEAR_VARS)
351
John Reck4a4bc892015-10-12 07:38:22 -0700352LOCAL_MODULE:= hwuimicro
353LOCAL_MODULE_TAGS := tests
Chris Craik8d1f2122015-11-24 16:40:09 -0800354LOCAL_CFLAGS := \
355 $(hwui_cflags) \
sergeyv8bd5edf2016-05-13 15:03:35 -0700356 -include debug/wrap_gles.h \
Chris Craik8d1f2122015-11-24 16:40:09 -0800357 -DHWUI_NULL_GPU
John Reck4a4bc892015-10-12 07:38:22 -0700358
John Reck2bee0dd2016-03-09 08:01:37 -0800359LOCAL_C_INCLUDES := $(hwui_c_includes)
John Reck4a4bc892015-10-12 07:38:22 -0700360
sergeyv8bd5edf2016-05-13 15:03:35 -0700361LOCAL_WHOLE_STATIC_LIBRARIES := libhwui_static_debug
sergeyv7dc370b2016-06-17 11:21:11 -0700362LOCAL_SHARED_LIBRARIES := libmemunreachable
John Reck4a4bc892015-10-12 07:38:22 -0700363
364LOCAL_SRC_FILES += \
Chris Craik8160f202015-12-02 14:50:25 -0800365 $(hwui_test_common_src_files) \
John Reck0418afa32016-03-07 13:24:25 -0800366 tests/microbench/main.cpp \
Chris Craik8160f202015-12-02 14:50:25 -0800367 tests/microbench/DisplayListCanvasBench.cpp \
John Reck2c0f9372016-03-28 09:34:35 -0700368 tests/microbench/FontBench.cpp \
Chris Craik5e00c7c2016-07-06 16:10:09 -0700369 tests/microbench/FrameBuilderBench.cpp \
Chris Craik8160f202015-12-02 14:50:25 -0800370 tests/microbench/LinearAllocatorBench.cpp \
371 tests/microbench/PathParserBench.cpp \
John Reck3acf03822016-11-02 11:14:47 -0700372 tests/microbench/RenderNodeBench.cpp \
Chris Craikb251a2f2016-02-08 19:36:46 +0000373 tests/microbench/ShadowBench.cpp \
374 tests/microbench/TaskManagerBench.cpp
John Reck4a4bc892015-10-12 07:38:22 -0700375
Chris Craik0a24b142015-10-19 17:10:19 -0700376
Derek Sollenberger991da312016-02-11 12:13:07 -0500377include $(LOCAL_PATH)/hwui_static_deps.mk
sergeyv422e2b42016-06-20 15:27:39 -0700378include $(BUILD_NATIVE_BENCHMARK)