blob: e8863d3bb6973c29a74319a09b64e71fcdc7363c [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 Gennisd8e812c2012-06-13 16:32:25 -070010 CpuConsumer_test.cpp \
Jamie Gennisd99c0882011-03-10 16:24:46 -080011 SurfaceTextureClient_test.cpp \
12 SurfaceTexture_test.cpp \
Jamie Gennisd8e812c2012-06-13 16:32:25 -070013 Surface_test.cpp \
Jamie Gennisd99c0882011-03-10 16:24:46 -080014
15LOCAL_SHARED_LIBRARIES := \
16 libEGL \
17 libGLESv2 \
Jamie Gennis134f0422011-03-08 12:18:54 -080018 libbinder \
Jamie Gennisd99c0882011-03-10 16:24:46 -080019 libcutils \
Jamie Gennis134f0422011-03-08 12:18:54 -080020 libgui \
21 libstlport \
Jamie Gennisd8e812c2012-06-13 16:32:25 -070022 libsync \
Eino-Ville Talvalae41b3182012-04-16 17:54:33 -070023 libui \
24 libutils \
25
26LOCAL_C_INCLUDES := \
27 bionic \
28 bionic/libstdc++/include \
29 external/gtest/include \
30 external/stlport/stlport \
31
32# Build the binary to $(TARGET_OUT_DATA_NATIVE_TESTS)/$(LOCAL_MODULE)
33# to integrate with auto-test framework.
34include $(BUILD_NATIVE_TEST)
35
Jamie Gennis134f0422011-03-08 12:18:54 -080036# Include subdirectory makefiles
37# ============================================================
38
39# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
40# team really wants is to build the stuff defined by this makefile.
41ifeq (,$(ONE_SHOT_MAKEFILE))
42include $(call first-makefiles-under,$(LOCAL_PATH))
43endif