Jamie Gennis | 23c2c5d | 2011-10-11 19:22:19 -0700 | [diff] [blame] | 1 | # Build the unit tests, |
| 2 | LOCAL_PATH:= $(call my-dir) |
| 3 | include $(CLEAR_VARS) |
Dan Albert | b79dfe6 | 2014-09-11 18:45:33 -0700 | [diff] [blame] | 4 | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk |
Jamie Gennis | 23c2c5d | 2011-10-11 19:22:19 -0700 | [diff] [blame] | 5 | |
Irvel | c274c63 | 2016-06-13 16:44:08 -0700 | [diff] [blame^] | 6 | LOCAL_CFLAGS := -std=c++14 |
| 7 | |
Jamie Gennis | 23c2c5d | 2011-10-11 19:22:19 -0700 | [diff] [blame] | 8 | LOCAL_MODULE := SurfaceFlinger_test |
| 9 | |
| 10 | LOCAL_MODULE_TAGS := tests |
| 11 | |
| 12 | LOCAL_SRC_FILES := \ |
| 13 | Transaction_test.cpp \ |
Irvel | c274c63 | 2016-06-13 16:44:08 -0700 | [diff] [blame^] | 14 | SurfaceInterceptor_test.cpp |
Jamie Gennis | 23c2c5d | 2011-10-11 19:22:19 -0700 | [diff] [blame] | 15 | |
| 16 | LOCAL_SHARED_LIBRARIES := \ |
Irvel | c274c63 | 2016-06-13 16:44:08 -0700 | [diff] [blame^] | 17 | libEGL \ |
| 18 | libGLESv2 \ |
| 19 | libbinder \ |
| 20 | libcutils \ |
| 21 | libgui \ |
| 22 | libprotobuf-cpp-full \ |
| 23 | libui \ |
| 24 | libutils \ |
| 25 | |
| 26 | LOCAL_STATIC_LIBRARIES := libtrace_proto |
| 27 | |
| 28 | LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code |
Jamie Gennis | 23c2c5d | 2011-10-11 19:22:19 -0700 | [diff] [blame] | 29 | |
Jamie Gennis | 23c2c5d | 2011-10-11 19:22:19 -0700 | [diff] [blame] | 30 | # Build the binary to $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE) |
| 31 | # to integrate with auto-test framework. |
| 32 | include $(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. |
| 39 | ifeq (,$(ONE_SHOT_MAKEFILE)) |
| 40 | include $(call first-makefiles-under,$(LOCAL_PATH)) |
| 41 | endif |