blob: ecd09951153e1cb248d1e373c1b1bdb24954d7cf [file] [log] [blame]
Jamie Gennis134f0422011-03-08 12:18:54 -08001# Build the unit tests.
2LOCAL_PATH:= $(call my-dir)
3include $(CLEAR_VARS)
4
5ifneq ($(TARGET_SIMULATOR),true)
6
Jamie Gennisd99c0882011-03-10 16:24:46 -08007LOCAL_MODULE := SurfaceTexture_test
Jamie Gennis134f0422011-03-08 12:18:54 -08008
Jamie Gennisd99c0882011-03-10 16:24:46 -08009LOCAL_MODULE_TAGS := tests
10
11LOCAL_SRC_FILES := \
Mathias Agopiand87f1622011-03-25 18:42:40 -070012 Surface_test.cpp \
Jamie Gennisd99c0882011-03-10 16:24:46 -080013 SurfaceTextureClient_test.cpp \
14 SurfaceTexture_test.cpp \
15
16LOCAL_SHARED_LIBRARIES := \
17 libEGL \
18 libGLESv2 \
19 libandroid \
Jamie Gennis134f0422011-03-08 12:18:54 -080020 libbinder \
Jamie Gennisd99c0882011-03-10 16:24:46 -080021 libcutils \
Jamie Gennis134f0422011-03-08 12:18:54 -080022 libgui \
23 libstlport \
Jamie Gennisd99c0882011-03-10 16:24:46 -080024 libui \
25 libutils \
Jamie Gennis134f0422011-03-08 12:18:54 -080026
Jamie Gennisd99c0882011-03-10 16:24:46 -080027LOCAL_STATIC_LIBRARIES := \
Jamie Gennis134f0422011-03-08 12:18:54 -080028 libgtest \
29 libgtest_main \
30
Jamie Gennisd99c0882011-03-10 16:24:46 -080031LOCAL_C_INCLUDES := \
Jamie Gennis134f0422011-03-08 12:18:54 -080032 bionic \
33 bionic/libstdc++/include \
34 external/gtest/include \
35 external/stlport/stlport \
36
Jamie Gennisd99c0882011-03-10 16:24:46 -080037include $(BUILD_EXECUTABLE)
Jamie Gennis134f0422011-03-08 12:18:54 -080038
39# Build the manual test programs.
40include $(call all-subdir-makefiles)
41
42endif
43
44# Include subdirectory makefiles
45# ============================================================
46
47# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
48# team really wants is to build the stuff defined by this makefile.
49ifeq (,$(ONE_SHOT_MAKEFILE))
50include $(call first-makefiles-under,$(LOCAL_PATH))
51endif