Mathias Agopian | 2f739f8 | 2011-07-07 14:54:30 -0700 | [diff] [blame] | 1 | # Build the unit tests. |
| 2 | LOCAL_PATH:= $(call my-dir) |
| 3 | include $(CLEAR_VARS) |
| 4 | |
Mathias Agopian | 2f739f8 | 2011-07-07 14:54:30 -0700 | [diff] [blame] | 5 | LOCAL_MODULE := EGL_test |
| 6 | |
| 7 | LOCAL_MODULE_TAGS := tests |
| 8 | |
| 9 | LOCAL_SRC_FILES := \ |
Jamie Gennis | 98c6383 | 2011-11-07 17:03:54 -0800 | [diff] [blame] | 10 | egl_cache_test.cpp \ |
Mathias Agopian | 2f739f8 | 2011-07-07 14:54:30 -0700 | [diff] [blame] | 11 | EGL_test.cpp \ |
| 12 | |
| 13 | LOCAL_SHARED_LIBRARIES := \ |
| 14 | libEGL \ |
| 15 | libcutils \ |
Mathias Agopian | a4e1952 | 2013-07-31 20:09:53 -0700 | [diff] [blame] | 16 | libbinder \ |
Mathias Agopian | 2f739f8 | 2011-07-07 14:54:30 -0700 | [diff] [blame] | 17 | libstlport \ |
| 18 | libutils \ |
Daniel Lam | 1cbcb98 | 2012-04-16 22:21:02 -0700 | [diff] [blame] | 19 | libgui \ |
Mathias Agopian | 2f739f8 | 2011-07-07 14:54:30 -0700 | [diff] [blame] | 20 | |
| 21 | LOCAL_STATIC_LIBRARIES := \ |
| 22 | libgtest \ |
| 23 | libgtest_main \ |
| 24 | |
| 25 | LOCAL_C_INCLUDES := \ |
| 26 | bionic \ |
Jamie Gennis | 98c6383 | 2011-11-07 17:03:54 -0800 | [diff] [blame] | 27 | bionic/libc/private \ |
Mathias Agopian | 2f739f8 | 2011-07-07 14:54:30 -0700 | [diff] [blame] | 28 | bionic/libstdc++/include \ |
| 29 | external/gtest/include \ |
| 30 | external/stlport/stlport \ |
Mathias Agopian | 373c2b2 | 2012-03-07 19:46:57 -0800 | [diff] [blame] | 31 | frameworks/native/opengl/libs \ |
| 32 | frameworks/native/opengl/libs/EGL \ |
Mathias Agopian | 2f739f8 | 2011-07-07 14:54:30 -0700 | [diff] [blame] | 33 | |
Ben Cheng | 20b9749 | 2012-11-06 23:11:35 -0800 | [diff] [blame] | 34 | # gold in binutils 2.22 will warn about the usage of mktemp |
| 35 | LOCAL_LDFLAGS += -Wl,--no-fatal-warnings |
| 36 | |
Mathias Agopian | 2f739f8 | 2011-07-07 14:54:30 -0700 | [diff] [blame] | 37 | include $(BUILD_EXECUTABLE) |
| 38 | |
Mathias Agopian | 2f739f8 | 2011-07-07 14:54:30 -0700 | [diff] [blame] | 39 | # Include subdirectory makefiles |
| 40 | # ============================================================ |
| 41 | |
| 42 | # If we're building with ONE_SHOT_MAKEFILE (mm, mmm), then what the framework |
| 43 | # team really wants is to build the stuff defined by this makefile. |
| 44 | ifeq (,$(ONE_SHOT_MAKEFILE)) |
| 45 | include $(call first-makefiles-under,$(LOCAL_PATH)) |
| 46 | endif |