Xia Wang | 4c87516 | 2011-08-30 18:48:11 -0700 | [diff] [blame] | 1 | # Build the unit tests, |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame] | 2 | LOCAL_PATH:= $(call my-dir) |
| 3 | include $(CLEAR_VARS) |
| 4 | |
Jamie Gennis | d8e812c | 2012-06-13 16:32:25 -0700 | [diff] [blame] | 5 | LOCAL_MODULE := libgui_test |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame] | 6 | |
Jamie Gennis | d99c088 | 2011-03-10 16:24:46 -0800 | [diff] [blame] | 7 | LOCAL_MODULE_TAGS := tests |
| 8 | |
| 9 | LOCAL_SRC_FILES := \ |
Jamie Gennis | 9e75ddd | 2012-08-31 15:32:45 -0700 | [diff] [blame] | 10 | BufferQueue_test.cpp \ |
Jamie Gennis | d8e812c | 2012-06-13 16:32:25 -0700 | [diff] [blame] | 11 | CpuConsumer_test.cpp \ |
Jamie Gennis | d99c088 | 2011-03-10 16:24:46 -0800 | [diff] [blame] | 12 | SurfaceTextureClient_test.cpp \ |
| 13 | SurfaceTexture_test.cpp \ |
Jamie Gennis | d8e812c | 2012-06-13 16:32:25 -0700 | [diff] [blame] | 14 | Surface_test.cpp \ |
Jamie Gennis | d99c088 | 2011-03-10 16:24:46 -0800 | [diff] [blame] | 15 | |
| 16 | LOCAL_SHARED_LIBRARIES := \ |
| 17 | libEGL \ |
| 18 | libGLESv2 \ |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame] | 19 | libbinder \ |
Jamie Gennis | d99c088 | 2011-03-10 16:24:46 -0800 | [diff] [blame] | 20 | libcutils \ |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame] | 21 | libgui \ |
| 22 | libstlport \ |
Jamie Gennis | d8e812c | 2012-06-13 16:32:25 -0700 | [diff] [blame] | 23 | libsync \ |
Eino-Ville Talvala | e41b318 | 2012-04-16 17:54:33 -0700 | [diff] [blame] | 24 | libui \ |
| 25 | libutils \ |
| 26 | |
| 27 | LOCAL_C_INCLUDES := \ |
| 28 | bionic \ |
| 29 | bionic/libstdc++/include \ |
| 30 | external/gtest/include \ |
| 31 | external/stlport/stlport \ |
| 32 | |
| 33 | # Build the binary to $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE) |
| 34 | # to integrate with auto-test framework. |
| 35 | include $(BUILD_NATIVE_TEST) |
| 36 | |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame] | 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. |
| 42 | ifeq (,$(ONE_SHOT_MAKEFILE)) |
| 43 | include $(call first-makefiles-under,$(LOCAL_PATH)) |
| 44 | endif |