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 /src/libepoxy.mk | |
parent | c92ea065fb3773f90cf91983835b7b47a335d591 (diff) | |
download | mxe-769a3c39fc270522e978f85efd87db2dd5a11e13.zip mxe-769a3c39fc270522e978f85efd87db2dd5a11e13.tar.gz mxe-769a3c39fc270522e978f85efd87db2dd5a11e13.tar.bz2 |
libepoxy: add test
Diffstat (limited to 'src/libepoxy.mk')
-rw-r--r-- | src/libepoxy.mk | 6 |
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 |