Compare commits
2 Commits
c673e5b638
...
14679eedb7
Author | SHA1 | Date | |
---|---|---|---|
14679eedb7 | |||
a9725af5f3 |
@ -83,8 +83,10 @@ else
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
if get_option('unwind')
|
if get_option('unwind')
|
||||||
dep_unwind = dependency('libunwind')
|
opt_dep_unwind = dependency('libunwind')
|
||||||
conf_data.set10('HAVE_LIBUNWIND', true)
|
conf_data.set10('HAVE_LIBUNWIND', true)
|
||||||
|
else
|
||||||
|
opt_dep_unwind = dep_not_found
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if get_option('openssl')
|
if get_option('openssl')
|
||||||
|
@ -30,7 +30,7 @@ lib_common = library(
|
|||||||
include_directories: inc_dir,
|
include_directories: inc_dir,
|
||||||
dependencies: [
|
dependencies: [
|
||||||
main_deps,
|
main_deps,
|
||||||
dep_unwind,
|
opt_dep_unwind,
|
||||||
lib_crypt,
|
lib_crypt,
|
||||||
lib_kvm,
|
lib_kvm,
|
||||||
],
|
],
|
||||||
|
@ -19,7 +19,7 @@ modules = {
|
|||||||
},
|
},
|
||||||
'deflate': {
|
'deflate': {
|
||||||
'sources': ['mod_deflate.c'],
|
'sources': ['mod_deflate.c'],
|
||||||
'dependencies': dep_deflate,
|
'dependencies': [dep_deflate],
|
||||||
},
|
},
|
||||||
'dirlist': {
|
'dirlist': {
|
||||||
'sources': ['mod_dirlist.c'],
|
'sources': ['mod_dirlist.c'],
|
||||||
@ -45,11 +45,11 @@ modules = {
|
|||||||
},
|
},
|
||||||
'lua': {
|
'lua': {
|
||||||
'sources': ['mod_lua.c'],
|
'sources': ['mod_lua.c'],
|
||||||
'dependencies': dep_lua,
|
'dependencies': [dep_lua],
|
||||||
},
|
},
|
||||||
'memcached': {
|
'memcached': {
|
||||||
'sources': ['mod_memcached.c'],
|
'sources': ['mod_memcached.c'],
|
||||||
'dependencies': opt_dep_lua,
|
'dependencies': [opt_dep_lua],
|
||||||
},
|
},
|
||||||
'openssl': {
|
'openssl': {
|
||||||
'sources': ['mod_openssl.c', 'openssl_filter.c'],
|
'sources': ['mod_openssl.c', 'openssl_filter.c'],
|
||||||
@ -90,9 +90,9 @@ all_modules = []
|
|||||||
enabled_modules = []
|
enabled_modules = []
|
||||||
|
|
||||||
foreach name, def: modules
|
foreach name, def: modules
|
||||||
deps = main_deps + def.get('dependencies', [])
|
mod_deps = def.get('dependencies', [])
|
||||||
expect_mod = true
|
expect_mod = true
|
||||||
foreach dep: deps
|
foreach dep: mod_deps
|
||||||
if not dep.found()
|
if not dep.found()
|
||||||
expect_mod = false
|
expect_mod = false
|
||||||
endif
|
endif
|
||||||
@ -100,7 +100,7 @@ foreach name, def: modules
|
|||||||
mod = shared_module(
|
mod = shared_module(
|
||||||
'mod_' + name,
|
'mod_' + name,
|
||||||
def['sources'],
|
def['sources'],
|
||||||
dependencies: main_deps + def.get('dependencies', []),
|
dependencies: main_deps + mod_deps,
|
||||||
c_args: def.get('c_args', []),
|
c_args: def.get('c_args', []),
|
||||||
include_directories: inc_dir,
|
include_directories: inc_dir,
|
||||||
install: true,
|
install: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user