1# Build the unit tests,
2LOCAL_PATH:= $(call my-dir)
3include $(CLEAR_VARS)
4LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
5
6LOCAL_CLANG := true
7
8LOCAL_MODULE := libgui_test
9
10LOCAL_MODULE_TAGS := tests
11
12LOCAL_SRC_FILES := \
13    BufferQueue_test.cpp \
14    CpuConsumer_test.cpp \
15    FillBuffer.cpp \
16    GLTest.cpp \
17    IGraphicBufferProducer_test.cpp \
18    MultiTextureConsumer_test.cpp \
19    SRGB_test.cpp \
20    StreamSplitter_test.cpp \
21    SurfaceTextureClient_test.cpp \
22    SurfaceTextureFBO_test.cpp \
23    SurfaceTextureGLThreadToGL_test.cpp \
24    SurfaceTextureGLToGL_test.cpp \
25    SurfaceTextureGL_test.cpp \
26    SurfaceTextureMultiContextGL_test.cpp \
27    Surface_test.cpp \
28    TextureRenderer.cpp \
29
30LOCAL_SHARED_LIBRARIES := \
31	libEGL \
32	libGLESv1_CM \
33	libGLESv2 \
34	libbinder \
35	libcutils \
36	libgui \
37	libsync \
38	libui \
39	libutils \
40
41# Build the binary to $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE)
42# to integrate with auto-test framework.
43include $(BUILD_NATIVE_TEST)
44
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.
50ifeq (,$(ONE_SHOT_MAKEFILE))
51include $(call first-makefiles-under,$(LOCAL_PATH))
52endif
53