This commit adds support for building on Cygwin/MSYS2.
Signed-off-by: Christopher Ng <facboy@gmail.com>
libext = '.so'
if host_machine.system() == 'darwin'
libext = '.dylib'
+elif host_machine.system() == 'cygwin'
+ libext = '.dll'
endif
## Paths
name_prefix: '',
install: true,
install_dir: modules_dir,
+ link_with: kresd,
)
integr_tests += [
name_prefix: '',
install: true,
install_dir: modules_dir,
+ link_with: kresd,
)
name_prefix: '',
install: true,
install_dir: modules_dir,
+ link_with: kresd,
)
hints_src,
dependencies: [
libknot,
+ luajit,
],
include_directories: mod_inc_dir,
name_prefix: '',
install: true,
install_dir: modules_dir,
+ link_with: kresd,
)
config_tests += [
install_dir: modules_dir / 'http',
)
-# auxiliary debug library for HTTP module
-if openssl.found()
+# auxiliary debug library for HTTP module - doesn't compile on Cygwin
+if openssl.found() and host_machine.system() != 'cygwin'
debug_opensslkeylog_mod = shared_module(
'debug_opensslkeylog',
['debug_opensslkeylog.c'],
nsid_src,
dependencies: [
libknot,
+ luajit,
],
include_directories: mod_inc_dir,
name_prefix: '',
install: true,
install_dir: modules_dir,
+ link_with: kresd,
)
config_tests += [
-Subproject commit 88f08a8777ab231b259e008507879806cd9f268b
+Subproject commit 9f983c48af8ddddbcc38f34a4d589600b47645c1
'-Wall',
'-fPIC',
],
+ dependencies: [
+ luajit,
+ ],
include_directories: mod_inc_dir,
name_prefix: '',
install: true,
install_dir: lib_dir,
+ link_with: kresd,
)
name_prefix: '',
install: true,
install_dir: modules_dir,
+ link_with: kresd,
)
name_prefix: '',
install: true,
install_dir: modules_dir,
+ link_with: kresd,
)