[Piglit] [PATCH 7/7] Android: Add Android.mk to build invalid-es3-queries & minmax
Tom Gall
tom.gall at linaro.org
Fri Feb 1 15:06:39 PST 2013
Adds Android.mk to build invalid-es3-queries & minmax. Test
binaries are installed into /system/xbin/piglit/
Signed-off-by: Tom Gall <tom.gall at linaro.org>
---
tests/spec/gles-2.0/Android.mk | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
create mode 100644 tests/spec/gles-2.0/Android.mk
diff --git a/tests/spec/gles-2.0/Android.mk b/tests/spec/gles-2.0/Android.mk
new file mode 100644
index 0000000..62137b4
--- /dev/null
+++ b/tests/spec/gles-2.0/Android.mk
@@ -0,0 +1,31 @@
+include $(call all-subdir-makefiles)
+
+LOCAL_PATH:= $(call my-dir)
+
+piglit_shared_libs := libGLESv2 libwaffle-1 libpiglitutil_gles2
+piglit_c_includes := $(piglit_top)/tests/util \
+ bionic \
+ $(piglit_top)/src \
+ external/waffle/include/waffle \
+ external/mesa3d/include \
+
+piglit_c_flags := -DPIGLIT_USE_WAFFLE -DPIGLIT_USE_OPENGL_ES2 -DPIGLIT_HAS_ANDROID
+
+module_name = piglit-spec-gles2
+
+define $(module_name)_etc_add_executable
+ include $(CLEAR_VARS)
+ LOCAL_SHARED_LIBRARIES := $(piglit_shared_libs)
+ LOCAL_C_INCLUDES := $(piglit_c_includes)
+ LOCAL_CFLAGS := $(piglit_c_flags)
+ LOCAL_MODULE_TAGS := optional
+ LOCAL_MODULE_CLASS := tests
+ LOCAL_MODULE := $1_gles2
+ systemtarball: $1_gles2
+ LOCAL_SRC_FILES := $1.c
+ LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES)/piglit/$(module_name)
+ include $(BUILD_EXECUTABLE)
+endef
+
+test_names := invalid-es3-queries minmax
+$(foreach item,$(test_names),$(eval $(call $(module_name)_etc_add_executable, $(item))))
--
1.7.10.4
More information about the Piglit
mailing list