blob: 8a8b6fd22898ff6103772c37ca9370819d9e4588 [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
Jamie Gennisd8e812c2012-06-13 16:32:25 -07006LOCAL_MODULE := libgui_test
Jamie Gennis134f0422011-03-08 12:18:54 -08007
Jamie Gennisd99c0882011-03-10 16:24:46 -08008LOCAL_MODULE_TAGS := tests
9
10LOCAL_SRC_FILES := \
Jamie Gennis9e75ddd2012-08-31 15:32:45 -070011 BufferQueue_test.cpp \
Jamie Gennisd8e812c2012-06-13 16:32:25 -070012 CpuConsumer_test.cpp \
Jamie Gennisd99c0882011-03-10 16:24:46 -080013 SurfaceTextureClient_test.cpp \
14 SurfaceTexture_test.cpp \
Jamie Gennisd8e812c2012-06-13 16:32:25 -070015 Surface_test.cpp \
Jamie Gennisd99c0882011-03-10 16:24:46 -080016
17LOCAL_SHARED_LIBRARIES := \
18 libEGL \
Mathias Agopianf31510a2013-04-16 23:32:38 -070019 libGLESv1_CM \
Jamie Gennisd99c0882011-03-10 16:24:46 -080020 libGLESv2 \
Jamie Gennis134f0422011-03-08 12:18:54 -080021 libbinder \
Jamie Gennisd99c0882011-03-10 16:24:46 -080022 libcutils \
Jamie Gennis134f0422011-03-08 12:18:54 -080023 libgui \
Jamie Gennisd8e812c2012-06-13 16:32:25 -070024 libsync \
Eino-Ville Talvalae41b3182012-04-16 17:54:33 -070025 libui \
26 libutils \
27
Eino-Ville Talvalae41b3182012-04-16 17:54:33 -070028# Build the binary to $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE)
29# to integrate with auto-test framework.
30include $(BUILD_NATIVE_TEST)
31
Jamie Gennis134f0422011-03-08 12:18:54 -080032# Include subdirectory makefiles
33# ============================================================
34
35# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
36# team really wants is to build the stuff defined by this makefile.
37ifeq (,$(ONE_SHOT_MAKEFILE))
38include $(call first-makefiles-under,$(LOCAL_PATH))
39endif