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 \ |
Dan Stoza | cb1fcde | 2013-12-03 12:37:36 -0800 | [diff] [blame] | 12 | FillBuffer.cpp \ |
Dan Stoza | f3730fb | 2013-11-26 15:10:10 -0800 | [diff] [blame] | 13 | GLTest.cpp \ |
Igor Murashkin | 7ea777f | 2013-11-18 16:58:36 -0800 | [diff] [blame] | 14 | IGraphicBufferProducer_test.cpp \ |
Dan Stoza | cb1fcde | 2013-12-03 12:37:36 -0800 | [diff] [blame] | 15 | MultiTextureConsumer_test.cpp \ |
Dan Stoza | 3ed4e0b | 2013-12-11 15:21:11 -0800 | [diff] [blame] | 16 | SRGB_test.cpp \ |
Dan Stoza | 99b18b4 | 2014-03-28 15:34:33 -0700 | [diff] [blame^] | 17 | StreamSplitter_test.cpp \ |
Jamie Gennis | d99c088 | 2011-03-10 16:24:46 -0800 | [diff] [blame] | 18 | SurfaceTextureClient_test.cpp \ |
Dan Stoza | cb1fcde | 2013-12-03 12:37:36 -0800 | [diff] [blame] | 19 | SurfaceTextureFBO_test.cpp \ |
| 20 | SurfaceTextureGLThreadToGL_test.cpp \ |
| 21 | SurfaceTextureGLToGL_test.cpp \ |
| 22 | SurfaceTextureGL_test.cpp \ |
| 23 | SurfaceTextureMultiContextGL_test.cpp \ |
Jamie Gennis | d8e812c | 2012-06-13 16:32:25 -0700 | [diff] [blame] | 24 | Surface_test.cpp \ |
Dan Stoza | cb1fcde | 2013-12-03 12:37:36 -0800 | [diff] [blame] | 25 | TextureRenderer.cpp \ |
Jamie Gennis | d99c088 | 2011-03-10 16:24:46 -0800 | [diff] [blame] | 26 | |
| 27 | LOCAL_SHARED_LIBRARIES := \ |
| 28 | libEGL \ |
Mathias Agopian | f31510a | 2013-04-16 23:32:38 -0700 | [diff] [blame] | 29 | libGLESv1_CM \ |
Jamie Gennis | d99c088 | 2011-03-10 16:24:46 -0800 | [diff] [blame] | 30 | libGLESv2 \ |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame] | 31 | libbinder \ |
Jamie Gennis | d99c088 | 2011-03-10 16:24:46 -0800 | [diff] [blame] | 32 | libcutils \ |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame] | 33 | libgui \ |
| 34 | libstlport \ |
Jamie Gennis | d8e812c | 2012-06-13 16:32:25 -0700 | [diff] [blame] | 35 | libsync \ |
Eino-Ville Talvala | e41b318 | 2012-04-16 17:54:33 -0700 | [diff] [blame] | 36 | libui \ |
| 37 | libutils \ |
| 38 | |
| 39 | LOCAL_C_INCLUDES := \ |
| 40 | bionic \ |
| 41 | bionic/libstdc++/include \ |
| 42 | external/gtest/include \ |
| 43 | external/stlport/stlport \ |
| 44 | |
| 45 | # Build the binary to $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE) |
| 46 | # to integrate with auto-test framework. |
| 47 | include $(BUILD_NATIVE_TEST) |
| 48 | |
Jamie Gennis | 134f042 | 2011-03-08 12:18:54 -0800 | [diff] [blame] | 49 | # Include subdirectory makefiles |
| 50 | # ============================================================ |
| 51 | |
| 52 | # If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework |
| 53 | # team really wants is to build the stuff defined by this makefile. |
| 54 | ifeq (,$(ONE_SHOT_MAKEFILE)) |
| 55 | include $(call first-makefiles-under,$(LOCAL_PATH)) |
| 56 | endif |