blob: 1a9ee5c783716e15dd8a55bf579461720ac41bfd [file] [log] [blame]
Mathias Agopian2f739f82011-07-07 14:54:30 -07001# Build the unit tests.
2LOCAL_PATH:= $(call my-dir)
3include $(CLEAR_VARS)
4
Mathias Agopian2f739f82011-07-07 14:54:30 -07005LOCAL_MODULE := EGL_test
6
7LOCAL_MODULE_TAGS := tests
8
9LOCAL_SRC_FILES := \
Jamie Gennis98c63832011-11-07 17:03:54 -080010 egl_cache_test.cpp \
Mathias Agopian2f739f82011-07-07 14:54:30 -070011 EGL_test.cpp \
12
13LOCAL_SHARED_LIBRARIES := \
14 libEGL \
15 libcutils \
16 libstlport \
17 libutils \
Daniel Lam1cbcb982012-04-16 22:21:02 -070018 libgui \
Mathias Agopian2f739f82011-07-07 14:54:30 -070019
20LOCAL_STATIC_LIBRARIES := \
21 libgtest \
22 libgtest_main \
23
24LOCAL_C_INCLUDES := \
25 bionic \
Jamie Gennis98c63832011-11-07 17:03:54 -080026 bionic/libc/private \
Mathias Agopian2f739f82011-07-07 14:54:30 -070027 bionic/libstdc++/include \
28 external/gtest/include \
29 external/stlport/stlport \
Mathias Agopian373c2b22012-03-07 19:46:57 -080030 frameworks/native/opengl/libs \
31 frameworks/native/opengl/libs/EGL \
Mathias Agopian2f739f82011-07-07 14:54:30 -070032
Ben Cheng20b97492012-11-06 23:11:35 -080033# gold in binutils 2.22 will warn about the usage of mktemp
34LOCAL_LDFLAGS += -Wl,--no-fatal-warnings
35
Mathias Agopian2f739f82011-07-07 14:54:30 -070036include $(BUILD_EXECUTABLE)
37
Mathias Agopian2f739f82011-07-07 14:54:30 -070038# Include subdirectory makefiles
39# ============================================================
40
41# If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework
42# team really wants is to build the stuff defined by this makefile.
43ifeq (,$(ONE_SHOT_MAKEFILE))
44include $(call first-makefiles-under,$(LOCAL_PATH))
45endif