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