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 | d99c088 | 2011-03-10 16:24:46 -0800 | [diff] [blame] | 5 | LOCAL_MODULE := SurfaceTexture_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 := \ |
Mathias Agopian | d87f162 | 2011-03-25 18:42:40 -0700 | [diff] [blame] | 10 | Surface_test.cpp \ |
Jamie Gennis | d99c088 | 2011-03-10 16:24:46 -0800 | [diff] [blame] | 11 | SurfaceTextureClient_test.cpp \ |
| 12 | SurfaceTexture_test.cpp \ |
| 13 | |
| 14 | LOCAL_SHARED_LIBRARIES := \ |
| 15 | libEGL \ |
| 16 | libGLESv2 \ |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame] | 17 | libbinder \ |
Jamie Gennis | d99c088 | 2011-03-10 16:24:46 -0800 | [diff] [blame] | 18 | libcutils \ |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame] | 19 | libgui \ |
| 20 | libstlport \ |
Jamie Gennis | d99c088 | 2011-03-10 16:24:46 -0800 | [diff] [blame] | 21 | libui \ |
| 22 | libutils \ |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame] | 23 | |
Jamie Gennis | d99c088 | 2011-03-10 16:24:46 -0800 | [diff] [blame] | 24 | LOCAL_C_INCLUDES := \ |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame] | 25 | bionic \ |
| 26 | bionic/libstdc++/include \ |
| 27 | external/gtest/include \ |
| 28 | external/stlport/stlport \ |
| 29 | |
Xia Wang | 4c87516 | 2011-08-30 18:48:11 -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) |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame] | 33 | |
Eino-Ville Talvala | e41b318 | 2012-04-16 17:54:33 -0700 | [diff] [blame^] | 34 | include $(CLEAR_VARS) |
| 35 | |
| 36 | LOCAL_MODULE := CpuConsumer_test |
| 37 | |
| 38 | LOCAL_MODULE_TAGS := tests |
| 39 | |
| 40 | LOCAL_SRC_FILES := \ |
| 41 | CpuConsumer_test.cpp |
| 42 | |
| 43 | LOCAL_SHARED_LIBRARIES := \ |
| 44 | libEGL \ |
| 45 | libGLESv2 \ |
| 46 | libbinder \ |
| 47 | libcutils \ |
| 48 | libgui \ |
| 49 | libstlport \ |
| 50 | libui \ |
| 51 | libutils \ |
| 52 | |
| 53 | LOCAL_C_INCLUDES := \ |
| 54 | bionic \ |
| 55 | bionic/libstdc++/include \ |
| 56 | external/gtest/include \ |
| 57 | external/stlport/stlport \ |
| 58 | |
| 59 | # Build the binary to $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE) |
| 60 | # to integrate with auto-test framework. |
| 61 | include $(BUILD_NATIVE_TEST) |
| 62 | |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame] | 63 | # Include subdirectory makefiles |
| 64 | # ============================================================ |
| 65 | |
| 66 | # If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework |
| 67 | # team really wants is to build the stuff defined by this makefile. |
| 68 | ifeq (,$(ONE_SHOT_MAKEFILE)) |
| 69 | include $(call first-makefiles-under,$(LOCAL_PATH)) |
| 70 | endif |