blob: e460290764c55219e6c02ca87608f40929ee7509 [file] [log] [blame]
Xia Wang4c875162011-08-30 18:48:11 -07001# Build the unit tests,
Jamie Gennis134f0422011-03-08 12:18:54 -08002LOCAL_PATH:= $(call my-dir)
3include $(CLEAR_VARS)
4
Jamie Gennisd8e812c2012-06-13 16:32:25 -07005LOCAL_MODULE := libgui_test
Jamie Gennis134f0422011-03-08 12:18:54 -08006
Jamie Gennisd99c0882011-03-10 16:24:46 -08007LOCAL_MODULE_TAGS := tests
8
9LOCAL_SRC_FILES := \
Jamie Gennis9e75ddd2012-08-31 15:32:45 -070010 BufferQueue_test.cpp \
Jamie Gennisd8e812c2012-06-13 16:32:25 -070011 CpuConsumer_test.cpp \
Dan Stozacb1fcde2013-12-03 12:37:36 -080012 FillBuffer.cpp \
Dan Stozaf3730fb2013-11-26 15:10:10 -080013 GLTest.cpp \
Igor Murashkin7ea777f2013-11-18 16:58:36 -080014 IGraphicBufferProducer_test.cpp \
Dan Stozacb1fcde2013-12-03 12:37:36 -080015 MultiTextureConsumer_test.cpp \
Dan Stoza3ed4e0b2013-12-11 15:21:11 -080016 SRGB_test.cpp \
Dan Stoza99b18b42014-03-28 15:34:33 -070017 StreamSplitter_test.cpp \
Jamie Gennisd99c0882011-03-10 16:24:46 -080018 SurfaceTextureClient_test.cpp \
Dan Stozacb1fcde2013-12-03 12:37:36 -080019 SurfaceTextureFBO_test.cpp \
20 SurfaceTextureGLThreadToGL_test.cpp \
21 SurfaceTextureGLToGL_test.cpp \
22 SurfaceTextureGL_test.cpp \
23 SurfaceTextureMultiContextGL_test.cpp \
Jamie Gennisd8e812c2012-06-13 16:32:25 -070024 Surface_test.cpp \
Dan Stozacb1fcde2013-12-03 12:37:36 -080025 TextureRenderer.cpp \
Jamie Gennisd99c0882011-03-10 16:24:46 -080026
27LOCAL_SHARED_LIBRARIES := \
28 libEGL \
Mathias Agopianf31510a2013-04-16 23:32:38 -070029 libGLESv1_CM \
Jamie Gennisd99c0882011-03-10 16:24:46 -080030 libGLESv2 \
Jamie Gennis134f0422011-03-08 12:18:54 -080031 libbinder \
Jamie Gennisd99c0882011-03-10 16:24:46 -080032 libcutils \
Jamie Gennis134f0422011-03-08 12:18:54 -080033 libgui \
34 libstlport \
Jamie Gennisd8e812c2012-06-13 16:32:25 -070035 libsync \
Eino-Ville Talvalae41b3182012-04-16 17:54:33 -070036 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
Jamie Gennis134f0422011-03-08 12:18:54 -080049# 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