summaryrefslogtreecommitdiffstats
path: root/src/libepoxy.mk
diff options
context:
space:
mode:
authorBoris Nagaev <bnagaev@gmail.com>2017-01-31 01:08:29 (GMT)
committerBoris Nagaev <bnagaev@gmail.com>2017-02-01 02:07:56 (GMT)
commit769a3c39fc270522e978f85efd87db2dd5a11e13 (patch)
tree876c72b361757d07e10d8383eb8781f57bbf2534 /src/libepoxy.mk
parentc92ea065fb3773f90cf91983835b7b47a335d591 (diff)
downloadmxe-769a3c39fc270522e978f85efd87db2dd5a11e13.zip
mxe-769a3c39fc270522e978f85efd87db2dd5a11e13.tar.gz
mxe-769a3c39fc270522e978f85efd87db2dd5a11e13.tar.bz2
libepoxy: add test
Diffstat (limited to 'src/libepoxy.mk')
-rw-r--r--src/libepoxy.mk6
1 files changed, 6 insertions, 0 deletions
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