blob: f93d91881ab664ebeb0fb8815d34fae2e211d423 [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
7
8LOCAL_MODULE_TAGS := tests
9
10LOCAL_SRC_FILES := \
11 Transaction_test.cpp \
Irvelc274c632016-06-13 16:44:08 -070012 SurfaceInterceptor_test.cpp
Jamie Gennis23c2c5d2011-10-11 19:22:19 -070013
14LOCAL_SHARED_LIBRARIES := \
Irvelc274c632016-06-13 16:44:08 -070015 libEGL \
16 libGLESv2 \
17 libbinder \
18 libcutils \
19 libgui \
20 libprotobuf-cpp-full \
21 libui \
22 libutils \
Robert Carr1f0a16a2016-10-24 16:27:39 -070023 liblog
Irvelc274c632016-06-13 16:44:08 -070024
25LOCAL_STATIC_LIBRARIES := libtrace_proto
26
27LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code
Jamie Gennis23c2c5d2011-10-11 19:22:19 -070028
Jamie Gennis23c2c5d2011-10-11 19:22:19 -070029# Build the binary to $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE)
30# to integrate with auto-test framework.
31include $(BUILD_NATIVE_TEST)
32
33# Include subdirectory makefiles
34# ============================================================
35
36# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
37# team really wants is to build the stuff defined by this makefile.
38ifeq (,$(ONE_SHOT_MAKEFILE))
39include $(call first-makefiles-under,$(LOCAL_PATH))
40endif