1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[meson] Added -Dlibcurl=true option

This commit is contained in:
Witold Filipczyk 2023-06-11 16:39:56 +02:00
parent de285144f0
commit 51c99599f8
3 changed files with 13 additions and 0 deletions

View File

@ -134,6 +134,9 @@
/* Define as 1 to use the libcss library */
#mesondefine CONFIG_LIBCSS
/* Define as 1 to use the libcurl library */
#mesondefine CONFIG_LIBCURL
/* Define as 1 to use the libdom library. */
#mesondefine CONFIG_LIBDOM

View File

@ -406,9 +406,18 @@ if conf_data.get('CONFIG_ECMASCRIPT_SMJS') or conf_data.get('CONFIG_QUICKJS') or
deps += sqlite3deps
endif
conf_data.set('CONFIG_LIBCURL', false)
curldeps = false
if conf_data.get('CONFIG_ECMASCRIPT_SMJS') or conf_data.get('CONFIG_QUICKJS') or conf_data.get('CONFIG_MUJS')
curldeps = dependency('libcurl', static: st)
deps += curldeps
conf_data.set('CONFIG_LIBCURL', true)
endif
if not conf_data.get('CONFIG_LIBCURL') and get_option('libcurl')
curldeps = dependency('libcurl', static: st)
deps += curldeps
conf_data.set('CONFIG_LIBCURL', true)
endif
conf_data.set('CONFIG_LIBCSS', false)

View File

@ -78,3 +78,4 @@ option('htmldoc', type: 'boolean', value: true, description: 'whether to build h
option('pdfdoc', type: 'boolean', value: true, description: 'whether to build manual.pdf')
option('libcss', type: 'boolean', value: true, description: 'whether to compile libcss support, requires libdom. This option is automatically enabled with js support')
option('libsixel', type: 'boolean', value: false, description: 'whether to compile libsixel support to show images directly on sixel compatible terminals')
option('libcurl', type: 'boolean', value: true, description: 'whether to compile libcurl support. This option is automatically enabled with js support')