blob: 6ad9986220cdc170c1cd740e08bcf29f69098d2c [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)
Dan Albertb79dfe62014-09-11 18:45:33 -07004LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
Jamie Gennis134f0422011-03-08 12:18:54 -08005
Dan Stozaf8cebe52015-04-20 12:09:38 -07006LOCAL_CLANG := true
7
Jamie Gennisd8e812c2012-06-13 16:32:25 -07008LOCAL_MODULE := libgui_test
Jamie Gennis134f0422011-03-08 12:18:54 -08009
Jamie Gennisd99c0882011-03-10 16:24:46 -080010LOCAL_MODULE_TAGS := tests
11
12LOCAL_SRC_FILES := \
Jamie Gennis9e75ddd2012-08-31 15:32:45 -070013 BufferQueue_test.cpp \
Jamie Gennisd8e812c2012-06-13 16:32:25 -070014 CpuConsumer_test.cpp \
Dan Stozacb1fcde2013-12-03 12:37:36 -080015 FillBuffer.cpp \
Dan Stozaf3730fb2013-11-26 15:10:10 -080016 GLTest.cpp \
Igor Murashkin7ea777f2013-11-18 16:58:36 -080017 IGraphicBufferProducer_test.cpp \
Dan Stozacb1fcde2013-12-03 12:37:36 -080018 MultiTextureConsumer_test.cpp \
Dan Stoza3ed4e0b2013-12-11 15:21:11 -080019 SRGB_test.cpp \
Dan Stoza99b18b42014-03-28 15:34:33 -070020 StreamSplitter_test.cpp \
Jamie Gennisd99c0882011-03-10 16:24:46 -080021 SurfaceTextureClient_test.cpp \
Dan Stozacb1fcde2013-12-03 12:37:36 -080022 SurfaceTextureFBO_test.cpp \
23 SurfaceTextureGLThreadToGL_test.cpp \
24 SurfaceTextureGLToGL_test.cpp \
25 SurfaceTextureGL_test.cpp \
26 SurfaceTextureMultiContextGL_test.cpp \
Jamie Gennisd8e812c2012-06-13 16:32:25 -070027 Surface_test.cpp \
Dan Stozacb1fcde2013-12-03 12:37:36 -080028 TextureRenderer.cpp \
Jamie Gennisd99c0882011-03-10 16:24:46 -080029
30LOCAL_SHARED_LIBRARIES := \
31 libEGL \
Mathias Agopianf31510a2013-04-16 23:32:38 -070032 libGLESv1_CM \
Jamie Gennisd99c0882011-03-10 16:24:46 -080033 libGLESv2 \
Jamie Gennis134f0422011-03-08 12:18:54 -080034 libbinder \
Jamie Gennisd99c0882011-03-10 16:24:46 -080035 libcutils \
Jamie Gennis134f0422011-03-08 12:18:54 -080036 libgui \
Jamie Gennisd8e812c2012-06-13 16:32:25 -070037 libsync \
Eino-Ville Talvalae41b3182012-04-16 17:54:33 -070038 libui \
39 libutils \
40
Eino-Ville Talvalae41b3182012-04-16 17:54:33 -070041# Build the binary to $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE)
42# to integrate with auto-test framework.
43include $(BUILD_NATIVE_TEST)
44
Jamie Gennis134f0422011-03-08 12:18:54 -080045# 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