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 | |
| 6 | LOCAL_MODULE := SurfaceFlinger_test |
| 7 | |
| 8 | LOCAL_MODULE_TAGS := tests |
| 9 | |
| 10 | LOCAL_SRC_FILES := \ |
Robert Carr | eb89399 | 2017-03-10 13:09:00 -0800 | [diff] [blame^] | 11 | Transaction_test.cpp \ |
| 12 | Stress_test.cpp \ |
| 13 | SurfaceInterceptor_test.cpp |
Jamie Gennis | 23c2c5d | 2011-10-11 19:22:19 -0700 | [diff] [blame] | 14 | |
| 15 | LOCAL_SHARED_LIBRARIES := \ |
Irvel | c274c63 | 2016-06-13 16:44:08 -0700 | [diff] [blame] | 16 | libEGL \ |
| 17 | libGLESv2 \ |
| 18 | libbinder \ |
| 19 | libcutils \ |
| 20 | libgui \ |
| 21 | libprotobuf-cpp-full \ |
| 22 | libui \ |
| 23 | libutils \ |
Robert Carr | eb89399 | 2017-03-10 13:09:00 -0800 | [diff] [blame^] | 24 | libandroid \ |
Robert Carr | 1f0a16a | 2016-10-24 16:27:39 -0700 | [diff] [blame] | 25 | liblog |
Irvel | c274c63 | 2016-06-13 16:44:08 -0700 | [diff] [blame] | 26 | |
| 27 | LOCAL_STATIC_LIBRARIES := libtrace_proto |
| 28 | |
| 29 | LOCAL_CFLAGS += -Wall -Werror -Wunused -Wunreachable-code |
Jamie Gennis | 23c2c5d | 2011-10-11 19:22:19 -0700 | [diff] [blame] | 30 | |
Jamie Gennis | 23c2c5d | 2011-10-11 19:22:19 -0700 | [diff] [blame] | 31 | # Build the binary to $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE) |
| 32 | # to integrate with auto-test framework. |
| 33 | include $(BUILD_NATIVE_TEST) |
| 34 | |
| 35 | # Include subdirectory makefiles |
| 36 | # ============================================================ |
| 37 | |
| 38 | # If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework |
| 39 | # team really wants is to build the stuff defined by this makefile. |
| 40 | ifeq (,$(ONE_SHOT_MAKEFILE)) |
| 41 | include $(call first-makefiles-under,$(LOCAL_PATH)) |
| 42 | endif |