summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2021-03-15 13:09:35 +0100
committerJohnny Willemsen <jwillemsen@remedy.nl>2021-03-15 13:09:35 +0100
commitf0380049c887971157b382ec333500c86259ade0 (patch)
tree66d6807e107db2648c72f996065a2c98bfb705ca /config
parent8d1a41c3b7ad327ff256d8a40a338b303fcf161a (diff)
downloadMPC-f0380049c887971157b382ec333500c86259ade0.tar.gz
Support and test zlib on windows
* .github/workflows/windows.yml: * config/zlib.mpb:
Diffstat (limited to 'config')
-rw-r--r--config/zlib.mpb21
1 files changed, 15 insertions, 6 deletions
diff --git a/config/zlib.mpb b/config/zlib.mpb
index af7711ac..ef207cb4 100644
--- a/config/zlib.mpb
+++ b/config/zlib.mpb
@@ -1,15 +1,24 @@
// -*- MPC -*-
feature(zlib) {
- includes += "$(ZLIB_ROOT)/include"
- libpaths += "$(ZLIB_ROOT)/lib"
+ expand(ZLIB_INCDIR) {
+ ZLIB_INCDIR
+ $(ZLIB_ROOT)/include
+ }
+ expand(ZLIB_LIBDIR) {
+ ZLIB_LIBDIR
+ $(ZLIB_ROOT)/lib
+ }
+
+ includes += "$(ZLIB_INCDIR)"
+ libpaths += "$(ZLIB_LIBDIR)"
macros += ZLIB
- // @@ Notice: If you are building with Cygwin, you may need to manually
- // change the following library to zlib.
specific(prop:windows) {
zlibname = zlib
- lit_libs += $(ZLIBNAME)
+ Debug::zlibname = zlibd
+
} else {
- lit_libs += z
+ zlibname = z
}
+ lit_libs += $(ZLIBNAME)
}