1# Build the unit tests,
2LOCAL_PATH:= $(call my-dir)
3include $(CLEAR_VARS)
4
5LOCAL_MODULE := libgui_test
6
7LOCAL_MODULE_TAGS := tests
8
9LOCAL_SRC_FILES := \
10    BufferQueue_test.cpp \
11    CpuConsumer_test.cpp \
12    FillBuffer.cpp \
13    GLTest.cpp \
14    IGraphicBufferProducer_test.cpp \
15    MultiTextureConsumer_test.cpp \
16    SRGB_test.cpp \
17    StreamSplitter_test.cpp \
18    SurfaceTextureClient_test.cpp \
19    SurfaceTextureFBO_test.cpp \
20    SurfaceTextureGLThreadToGL_test.cpp \
21    SurfaceTextureGLToGL_test.cpp \
22    SurfaceTextureGL_test.cpp \
23    SurfaceTextureMultiContextGL_test.cpp \
24    Surface_test.cpp \
25    TextureRenderer.cpp \
26
27LOCAL_SHARED_LIBRARIES := \
28	libEGL \
29	libGLESv1_CM \
30	libGLESv2 \
31	libbinder \
32	libcutils \
33	libgui \
34	libstlport \
35	libsync \
36	libui \
37	libutils \
38
39LOCAL_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.
47include $(BUILD_NATIVE_TEST)
48
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.
54ifeq (,$(ONE_SHOT_MAKEFILE))
55include $(call first-makefiles-under,$(LOCAL_PATH))
56endif
57