mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
[meson] Fallback to static library when shared libcss or libdom are not available
This commit is contained in:
parent
3ca409f53f
commit
08cdc9b00f
20
meson.build
20
meson.build
@ -505,7 +505,10 @@ conf_data.set('CONFIG_LIBCSS', false)
|
|||||||
cssdeps = false
|
cssdeps = false
|
||||||
|
|
||||||
if conf_data.get('CONFIG_ECMASCRIPT_SMJS') or conf_data.get('CONFIG_QUICKJS') or conf_data.get('CONFIG_MUJS')
|
if conf_data.get('CONFIG_ECMASCRIPT_SMJS') or conf_data.get('CONFIG_QUICKJS') or conf_data.get('CONFIG_MUJS')
|
||||||
cssdeps = dependency('libcss', static: st, version: '>=0.9.2')
|
cssdeps = dependency('libcss', static: st, version: '>=0.9.2', required: false)
|
||||||
|
if not cssdeps.found()
|
||||||
|
cssdeps = dependency('libcss', static: true, version: '>=0.9.2')
|
||||||
|
endif
|
||||||
deps += cssdeps
|
deps += cssdeps
|
||||||
conf_data.set('CONFIG_LIBCSS', true)
|
conf_data.set('CONFIG_LIBCSS', true)
|
||||||
endif
|
endif
|
||||||
@ -514,17 +517,26 @@ conf_data.set('CONFIG_LIBDOM', false)
|
|||||||
libdomdeps = false
|
libdomdeps = false
|
||||||
|
|
||||||
if conf_data.get('CONFIG_ECMASCRIPT_SMJS') or conf_data.get('CONFIG_QUICKJS') or conf_data.get('CONFIG_MUJS')
|
if conf_data.get('CONFIG_ECMASCRIPT_SMJS') or conf_data.get('CONFIG_QUICKJS') or conf_data.get('CONFIG_MUJS')
|
||||||
libdomdeps = dependency('libdom', static: st, version: '>=0.4.2')
|
libdomdeps = dependency('libdom', static: st, version: '>=0.4.2', required: false)
|
||||||
|
if not libdomdeps.found()
|
||||||
|
libdomdeps = dependency('libdom', static: true, version: '>=0.4.2')
|
||||||
|
endif
|
||||||
deps += libdomdeps
|
deps += libdomdeps
|
||||||
conf_data.set('CONFIG_LIBDOM', true)
|
conf_data.set('CONFIG_LIBDOM', true)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if not conf_data.get('CONFIG_LIBCSS') and get_option('libcss')
|
if not conf_data.get('CONFIG_LIBCSS') and get_option('libcss')
|
||||||
cssdeps = dependency('libcss', static: st, version: '>=0.9.2')
|
cssdeps = dependency('libcss', static: st, version: '>=0.9.2', required: false)
|
||||||
|
if not cssdeps.found()
|
||||||
|
cssdeps = dependency('libcss', static: true, version: '>=0.9.2')
|
||||||
|
endif
|
||||||
deps += cssdeps
|
deps += cssdeps
|
||||||
conf_data.set('CONFIG_LIBCSS', true)
|
conf_data.set('CONFIG_LIBCSS', true)
|
||||||
if not conf_data.get('CONFIG_LIBDOM')
|
if not conf_data.get('CONFIG_LIBDOM')
|
||||||
libdomdeps = dependency('libdom', static: st, version: '>=0.4.2')
|
libdomdeps = dependency('libdom', static: st, version: '>=0.4.2', required: false)
|
||||||
|
if not libdomdeps.found()
|
||||||
|
libdomdeps = dependency('libdom', static: true, version: '>=0.4.2')
|
||||||
|
endif
|
||||||
deps += libdomdeps
|
deps += libdomdeps
|
||||||
conf_data.set('CONFIG_LIBDOM', true)
|
conf_data.set('CONFIG_LIBDOM', true)
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user