blob: 43e22a0bd6142352ead020544bbeebce399e480a [file] [log] [blame]
Jamie Gennis23c2c5d2011-10-11 19:22:19 -07001# Build the unit tests,
2LOCAL_PATH:= $(call my-dir)
3include $(CLEAR_VARS)
Dan Albertb79dfe62014-09-11 18:45:33 -07004LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
Jamie Gennis23c2c5d2011-10-11 19:22:19 -07005
6LOCAL_MODULE := SurfaceFlinger_test
Dan Shiaf307712017-03-26 23:49:27 -07007LOCAL_COMPATIBILITY_SUITE := device-tests
Jamie Gennis23c2c5d2011-10-11 19:22:19 -07008LOCAL_MODULE_TAGS := tests
9
10LOCAL_SRC_FILES := \
Robert Carreb893992017-03-10 13:09:00 -080011 Transaction_test.cpp \
12 Stress_test.cpp \
13 SurfaceInterceptor_test.cpp
Jamie Gennis23c2c5d2011-10-11 19:22:19 -070014
15LOCAL_SHARED_LIBRARIES := \
Irvelc274c632016-06-13 16:44:08 -070016 libEGL \
17 libGLESv2 \
18 libbinder \
19 libcutils \
20 libgui \
21 libprotobuf-cpp-full \
22 libui \
23 libutils \
Robert Carreb893992017-03-10 13:09:00 -080024 libandroid \
Robert Carr1f0a16a2016-10-24 16:27:39 -070025 liblog
Irvelc274c632016-06-13 16:44:08 -070026
27LOCAL_STATIC_LIBRARIES := libtrace_proto
28
29LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code
Jamie Gennis23c2c5d2011-10-11 19:22:19 -070030
Robert Carr8b71dc32017-03-20 22:27:31 -070031LOCAL_TEST_DATA = SurfaceFlinger_test.filter
32
Jamie Gennis23c2c5d2011-10-11 19:22:19 -070033# Build the binary to $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE)
34# to integrate with auto-test framework.
35include $(BUILD_NATIVE_TEST)
36
37# Include subdirectory makefiles
38# ============================================================
39
40# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
41# team really wants is to build the stuff defined by this makefile.
42ifeq (,$(ONE_SHOT_MAKEFILE))
43include $(call first-makefiles-under,$(LOCAL_PATH))
44endif