2
0

Compare commits

...

2 Commits

Author SHA1 Message Date
14679eedb7 [meson] fix module dependencies (must be a list)
Also only check module dependencies (not main_deps) to determine whether
to enable a module.

Change-Id: Ic5e3ec3189131b3d17cf8b8770ab047726ec6a0c
2023-10-02 18:50:14 +02:00
a9725af5f3 [meson] fix building without unwind (optional dependency)
Change-Id: I601232d50cfa1761bfa8aa4cb8e6650c9213547e
2023-10-02 18:39:20 +02:00
3 changed files with 10 additions and 8 deletions

View File

@ -83,8 +83,10 @@ else
endif
if get_option('unwind')
dep_unwind = dependency('libunwind')
opt_dep_unwind = dependency('libunwind')
conf_data.set10('HAVE_LIBUNWIND', true)
else
opt_dep_unwind = dep_not_found
endif
if get_option('openssl')

View File

@ -30,7 +30,7 @@ lib_common = library(
include_directories: inc_dir,
dependencies: [
main_deps,
dep_unwind,
opt_dep_unwind,
lib_crypt,
lib_kvm,
],

View File

@ -19,7 +19,7 @@ modules = {
},
'deflate': {
'sources': ['mod_deflate.c'],
'dependencies': dep_deflate,
'dependencies': [dep_deflate],
},
'dirlist': {
'sources': ['mod_dirlist.c'],
@ -45,11 +45,11 @@ modules = {
},
'lua': {
'sources': ['mod_lua.c'],
'dependencies': dep_lua,
'dependencies': [dep_lua],
},
'memcached': {
'sources': ['mod_memcached.c'],
'dependencies': opt_dep_lua,
'dependencies': [opt_dep_lua],
},
'openssl': {
'sources': ['mod_openssl.c', 'openssl_filter.c'],
@ -90,9 +90,9 @@ all_modules = []
enabled_modules = []
foreach name, def: modules
deps = main_deps + def.get('dependencies', [])
mod_deps = def.get('dependencies', [])
expect_mod = true
foreach dep: deps
foreach dep: mod_deps
if not dep.found()
expect_mod = false
endif
@ -100,7 +100,7 @@ foreach name, def: modules
mod = shared_module(
'mod_' + name,
def['sources'],
dependencies: main_deps + def.get('dependencies', []),
dependencies: main_deps + mod_deps,
c_args: def.get('c_args', []),
include_directories: inc_dir,
install: true,