mirror of https://git.wownero.com/dsc/mxe.git
libepoxy: add test
This commit is contained in:
parent
c92ea065fb
commit
769a3c39fc
|
@ -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;
|
||||||
|
}
|
|
@ -26,4 +26,10 @@ define $(PKG)_BUILD
|
||||||
$(MAKE) -C '$(1)' -j '$(JOBS)' install $(MXE_DISABLE_CRUFT)
|
$(MAKE) -C '$(1)' -j '$(JOBS)' install $(MXE_DISABLE_CRUFT)
|
||||||
$(SED) 's/Cflags:/Cflags: -DEPOXY_$(if $(BUILD_STATIC),STATIC,SHARED)/' \
|
$(SED) 's/Cflags:/Cflags: -DEPOXY_$(if $(BUILD_STATIC),STATIC,SHARED)/' \
|
||||||
-i '$(PREFIX)/$(TARGET)/lib/pkgconfig/epoxy.pc'
|
-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
|
endef
|
||||||
|
|
Loading…
Reference in New Issue