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