diff options
author | Boris Nagaev <bnagaev@gmail.com> | 2017-01-31 01:08:29 (GMT) |
---|---|---|
committer | Boris Nagaev <bnagaev@gmail.com> | 2017-02-01 02:07:56 (GMT) |
commit | 769a3c39fc270522e978f85efd87db2dd5a11e13 (patch) | |
tree | 876c72b361757d07e10d8383eb8781f57bbf2534 | |
parent | c92ea065fb3773f90cf91983835b7b47a335d591 (diff) | |
download | mxe-769a3c39fc270522e978f85efd87db2dd5a11e13.zip mxe-769a3c39fc270522e978f85efd87db2dd5a11e13.tar.gz mxe-769a3c39fc270522e978f85efd87db2dd5a11e13.tar.bz2 |
libepoxy: add test
-rw-r--r-- | src/libepoxy-test.c | 10 | ||||
-rw-r--r-- | src/libepoxy.mk | 6 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/libepoxy-test.c b/src/libepoxy-test.c new file mode 100644 index 0000000..c8d1c19 --- /dev/null +++ b/src/libepoxy-test.c @@ -0,0 +1,10 @@ +/* + * This file is part of MXE. See LICENSE.md for licensing information. + */ + +#include <epoxy/gl.h> + +int main() { + glGetString(GL_SHADING_LANGUAGE_VERSION); + return 0; +} diff --git a/src/libepoxy.mk b/src/libepoxy.mk index afe8f41..64a9f03 100644 --- a/src/libepoxy.mk +++ b/src/libepoxy.mk @@ -26,4 +26,10 @@ define $(PKG)_BUILD $(MAKE) -C '$(1)' -j '$(JOBS)' install $(MXE_DISABLE_CRUFT) $(SED) 's/Cflags:/Cflags: -DEPOXY_$(if $(BUILD_STATIC),STATIC,SHARED)/' \ -i '$(PREFIX)/$(TARGET)/lib/pkgconfig/epoxy.pc' + + # compile test + '$(TARGET)-gcc' \ + -W -Wall -Werror -ansi -pedantic \ + '$(TEST_FILE)' -o '$(PREFIX)/$(TARGET)/bin/test-$(PKG).exe' \ + `'$(TARGET)-pkg-config' epoxy --cflags --libs` endef |