mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
[meson] Removed some ifs. They were not used
This commit is contained in:
parent
cfe8916d4b
commit
deefa7eb8a
60
meson.build
60
meson.build
@ -202,25 +202,16 @@ conf_data.set10('HAVE_ALLOCA_H', compiler.has_header('alloca.h'))
|
|||||||
deps = []
|
deps = []
|
||||||
if conf_data.get('CONFIG_GZIP')
|
if conf_data.get('CONFIG_GZIP')
|
||||||
zdeps = dependency('zlib')
|
zdeps = dependency('zlib')
|
||||||
if not zdeps.found()
|
|
||||||
error('zlib not found')
|
|
||||||
endif
|
|
||||||
deps += zdeps
|
deps += zdeps
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if conf_data.get('CONFIG_TRE')
|
if conf_data.get('CONFIG_TRE')
|
||||||
tredeps = dependency('tre')
|
tredeps = dependency('tre')
|
||||||
if not tredeps.found()
|
|
||||||
error('tre not found')
|
|
||||||
endif
|
|
||||||
deps += tredeps
|
deps += tredeps
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if conf_data.get('CONFIG_LIBEVENT')
|
if conf_data.get('CONFIG_LIBEVENT')
|
||||||
eventdeps = dependency('libevent')
|
eventdeps = dependency('libevent')
|
||||||
if not eventdeps.found()
|
|
||||||
error('libevent not found')
|
|
||||||
endif
|
|
||||||
deps += eventdeps
|
deps += eventdeps
|
||||||
conf_data.set('HAVE_LIBEVENT', true)
|
conf_data.set('HAVE_LIBEVENT', true)
|
||||||
else
|
else
|
||||||
@ -229,9 +220,6 @@ endif
|
|||||||
|
|
||||||
if conf_data.get('CONFIG_OPENSSL')
|
if conf_data.get('CONFIG_OPENSSL')
|
||||||
ssldeps = dependency('openssl')
|
ssldeps = dependency('openssl')
|
||||||
if not ssldeps.found()
|
|
||||||
error('openssl not found')
|
|
||||||
endif
|
|
||||||
deps += ssldeps
|
deps += ssldeps
|
||||||
conf_data.set('USE_OPENSSL', true)
|
conf_data.set('USE_OPENSSL', true)
|
||||||
else
|
else
|
||||||
@ -241,121 +229,75 @@ endif
|
|||||||
gnutlsdeps = []
|
gnutlsdeps = []
|
||||||
if conf_data.get('CONFIG_GNUTLS')
|
if conf_data.get('CONFIG_GNUTLS')
|
||||||
gnutlsdeps = dependency('gnutls')
|
gnutlsdeps = dependency('gnutls')
|
||||||
if not gnutlsdeps.found()
|
|
||||||
error('gnutls not found')
|
|
||||||
endif
|
|
||||||
libgcryptdeps = dependency('libgcrypt')
|
libgcryptdeps = dependency('libgcrypt')
|
||||||
if not libgcryptdeps.found()
|
|
||||||
error('libgcrypt not found')
|
|
||||||
endif
|
|
||||||
deps += gnutlsdeps
|
deps += gnutlsdeps
|
||||||
deps += libgcryptdeps
|
deps += libgcryptdeps
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if conf_data.get('CONFIG_BROTLI')
|
if conf_data.get('CONFIG_BROTLI')
|
||||||
brotlideps = dependency('libbrotlidec')
|
brotlideps = dependency('libbrotlidec')
|
||||||
if not brotlideps.found()
|
|
||||||
error('brotli not found')
|
|
||||||
endif
|
|
||||||
deps += brotlideps
|
deps += brotlideps
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if conf_data.get('CONFIG_ZSTD')
|
if conf_data.get('CONFIG_ZSTD')
|
||||||
zstddeps = dependency('libzstd')
|
zstddeps = dependency('libzstd')
|
||||||
if not zstddeps.found()
|
|
||||||
error('zstd not found')
|
|
||||||
endif
|
|
||||||
deps += zstddeps
|
deps += zstddeps
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if conf_data.get('CONFIG_IDN')
|
if conf_data.get('CONFIG_IDN')
|
||||||
idndeps = dependency('libidn')
|
idndeps = dependency('libidn')
|
||||||
if not idndeps.found()
|
|
||||||
error('idn not found')
|
|
||||||
endif
|
|
||||||
deps += idndeps
|
deps += idndeps
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if conf_data.get('CONFIG_X')
|
if conf_data.get('CONFIG_X')
|
||||||
x11deps = dependency('X11')
|
x11deps = dependency('X11')
|
||||||
if not x11deps.found()
|
|
||||||
error('x11 not found')
|
|
||||||
endif
|
|
||||||
deps += x11deps
|
deps += x11deps
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if conf_data.get('CONFIG_BZIP2')
|
if conf_data.get('CONFIG_BZIP2')
|
||||||
bz2deps = dependency('bzip2')
|
bz2deps = dependency('bzip2')
|
||||||
if not bz2deps.found()
|
|
||||||
error('bz2 not found')
|
|
||||||
endif
|
|
||||||
deps += bz2deps
|
deps += bz2deps
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if conf_data.get('CONFIG_ECMASCRIPT')
|
if conf_data.get('CONFIG_ECMASCRIPT')
|
||||||
mozjsdeps = dependency('mozjs-17.0')
|
mozjsdeps = dependency('mozjs-17.0')
|
||||||
if not mozjsdeps.found()
|
|
||||||
error('mozjs-17.0 not found')
|
|
||||||
endif
|
|
||||||
deps += mozjsdeps
|
deps += mozjsdeps
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if conf_data.get('CONFIG_SCRIPTING_LUA')
|
if conf_data.get('CONFIG_SCRIPTING_LUA')
|
||||||
luadeps = dependency(luapkg)
|
luadeps = dependency(luapkg)
|
||||||
if not luadeps.found()
|
|
||||||
error('lua not found')
|
|
||||||
endif
|
|
||||||
deps += luadeps
|
deps += luadeps
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if conf_data.get('CONFIG_XBEL_BOOKMARKS')
|
if conf_data.get('CONFIG_XBEL_BOOKMARKS')
|
||||||
expatdeps = dependency('expat')
|
expatdeps = dependency('expat')
|
||||||
if not expatdeps.found()
|
|
||||||
error('expat not found')
|
|
||||||
endif
|
|
||||||
deps += expatdeps
|
deps += expatdeps
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if conf_data.get('CONFIG_GPM')
|
if conf_data.get('CONFIG_GPM')
|
||||||
cc = meson.get_compiler('c')
|
libgpmdeps = compiler.find_library('gpm')
|
||||||
libgpmdeps = cc.find_library('gpm')
|
|
||||||
if not libgpmdeps.found()
|
|
||||||
error('gpm not found')
|
|
||||||
endif
|
|
||||||
deps += libgpmdeps
|
deps += libgpmdeps
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if conf_data.get('CONFIG_LIBDOM')
|
if conf_data.get('CONFIG_LIBDOM')
|
||||||
domdeps = dependency('libdom')
|
domdeps = dependency('libdom')
|
||||||
if not domdeps.found()
|
|
||||||
error('libdom not found')
|
|
||||||
endif
|
|
||||||
deps += domdeps
|
deps += domdeps
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if conf_data.get('CONFIG_SCRIPTING_PYTHON')
|
if conf_data.get('CONFIG_SCRIPTING_PYTHON')
|
||||||
python3deps = dependency('python3-embed')
|
python3deps = dependency('python3-embed')
|
||||||
if not python3deps.found()
|
|
||||||
error('python3 not found')
|
|
||||||
endif
|
|
||||||
deps += python3deps
|
deps += python3deps
|
||||||
endif
|
endif
|
||||||
|
|
||||||
rubydeps = []
|
rubydeps = []
|
||||||
if conf_data.get('CONFIG_SCRIPTING_RUBY')
|
if conf_data.get('CONFIG_SCRIPTING_RUBY')
|
||||||
rubydeps = dependency('ruby-2.6')
|
rubydeps = dependency('ruby-2.6')
|
||||||
if not rubydeps.found()
|
|
||||||
error('ruby not found')
|
|
||||||
endif
|
|
||||||
deps += rubydeps
|
deps += rubydeps
|
||||||
endif
|
endif
|
||||||
|
|
||||||
guiledeps = []
|
guiledeps = []
|
||||||
if conf_data.get('CONFIG_SCRIPTING_GUILE')
|
if conf_data.get('CONFIG_SCRIPTING_GUILE')
|
||||||
guiledeps = dependency('guile-2.2')
|
guiledeps = dependency('guile-2.2')
|
||||||
if not guiledeps.found()
|
|
||||||
error('guile not found')
|
|
||||||
endif
|
|
||||||
deps += guiledeps
|
deps += guiledeps
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user