blob: 2eeb5c7bbbd2abd844db187d7e01f44746325459 [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 \
Jamie Gennisd99c0882011-03-10 16:24:46 -080017 SurfaceTextureClient_test.cpp \
Dan Stozacb1fcde2013-12-03 12:37:36 -080018 SurfaceTextureFBO_test.cpp \
19 SurfaceTextureGLThreadToGL_test.cpp \
20 SurfaceTextureGLToGL_test.cpp \
21 SurfaceTextureGL_test.cpp \
22 SurfaceTextureMultiContextGL_test.cpp \
Jamie Gennisd8e812c2012-06-13 16:32:25 -070023 Surface_test.cpp \
Dan Stozacb1fcde2013-12-03 12:37:36 -080024 TextureRenderer.cpp \
Jamie Gennisd99c0882011-03-10 16:24:46 -080025
26LOCAL_SHARED_LIBRARIES := \
27 libEGL \
Mathias Agopianf31510a2013-04-16 23:32:38 -070028 libGLESv1_CM \
Jamie Gennisd99c0882011-03-10 16:24:46 -080029 libGLESv2 \
Jamie Gennis134f0422011-03-08 12:18:54 -080030 libbinder \
Jamie Gennisd99c0882011-03-10 16:24:46 -080031 libcutils \
Jamie Gennis134f0422011-03-08 12:18:54 -080032 libgui \
33 libstlport \
Jamie Gennisd8e812c2012-06-13 16:32:25 -070034 libsync \
Eino-Ville Talvalae41b3182012-04-16 17:54:33 -070035 libui \
36 libutils \
37
38LOCAL_C_INCLUDES := \
39 bionic \
40 bionic/libstdc++/include \
41 external/gtest/include \
42 external/stlport/stlport \
43
44# Build the binary to $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE)
45# to integrate with auto-test framework.
46include $(BUILD_NATIVE_TEST)
47
Jamie Gennis134f0422011-03-08 12:18:54 -080048# Include subdirectory makefiles
49# ============================================================
50
51# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
52# team really wants is to build the stuff defined by this makefile.
53ifeq (,$(ONE_SHOT_MAKEFILE))
54include $(call first-makefiles-under,$(LOCAL_PATH))
55endif