Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame] | 1 | # Build the unit tests. |
| 2 | LOCAL_PATH:= $(call my-dir) |
| 3 | include $(CLEAR_VARS) |
| 4 | |
| 5 | ifneq ($(TARGET_SIMULATOR),true) |
| 6 | |
Jamie Gennis | d99c088 | 2011-03-10 16:24:46 -0800 | [diff] [blame^] | 7 | LOCAL_MODULE := SurfaceTexture_test |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame] | 8 | |
Jamie Gennis | d99c088 | 2011-03-10 16:24:46 -0800 | [diff] [blame^] | 9 | LOCAL_MODULE_TAGS := tests |
| 10 | |
| 11 | LOCAL_SRC_FILES := \ |
| 12 | SurfaceTextureClient_test.cpp \ |
| 13 | SurfaceTexture_test.cpp \ |
| 14 | |
| 15 | LOCAL_SHARED_LIBRARIES := \ |
| 16 | libEGL \ |
| 17 | libGLESv2 \ |
| 18 | libandroid \ |
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 | d99c088 | 2011-03-10 16:24:46 -0800 | [diff] [blame^] | 23 | libsurfaceflinger_client \ |
| 24 | libui \ |
| 25 | libutils \ |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame] | 26 | |
Jamie Gennis | d99c088 | 2011-03-10 16:24:46 -0800 | [diff] [blame^] | 27 | LOCAL_STATIC_LIBRARIES := \ |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame] | 28 | libgtest \ |
| 29 | libgtest_main \ |
| 30 | |
Jamie Gennis | d99c088 | 2011-03-10 16:24:46 -0800 | [diff] [blame^] | 31 | LOCAL_C_INCLUDES := \ |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame] | 32 | bionic \ |
| 33 | bionic/libstdc++/include \ |
| 34 | external/gtest/include \ |
| 35 | external/stlport/stlport \ |
| 36 | |
Jamie Gennis | d99c088 | 2011-03-10 16:24:46 -0800 | [diff] [blame^] | 37 | include $(BUILD_EXECUTABLE) |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame] | 38 | |
| 39 | # Build the manual test programs. |
| 40 | include $(call all-subdir-makefiles) |
| 41 | |
| 42 | endif |
| 43 | |
| 44 | # Include subdirectory makefiles |
| 45 | # ============================================================ |
| 46 | |
| 47 | # If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework |
| 48 | # team really wants is to build the stuff defined by this makefile. |
| 49 | ifeq (,$(ONE_SHOT_MAKEFILE)) |
| 50 | include $(call first-makefiles-under,$(LOCAL_PATH)) |
| 51 | endif |