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:
parent
de285144f0
commit
51c99599f8
@ -134,6 +134,9 @@
|
|||||||
/* Define as 1 to use the libcss library */
|
/* Define as 1 to use the libcss library */
|
||||||
#mesondefine CONFIG_LIBCSS
|
#mesondefine CONFIG_LIBCSS
|
||||||
|
|
||||||
|
/* Define as 1 to use the libcurl library */
|
||||||
|
#mesondefine CONFIG_LIBCURL
|
||||||
|
|
||||||
/* Define as 1 to use the libdom library. */
|
/* Define as 1 to use the libdom library. */
|
||||||
#mesondefine CONFIG_LIBDOM
|
#mesondefine CONFIG_LIBDOM
|
||||||
|
|
||||||
|
@ -406,9 +406,18 @@ if conf_data.get('CONFIG_ECMASCRIPT_SMJS') or conf_data.get('CONFIG_QUICKJS') or
|
|||||||
deps += sqlite3deps
|
deps += sqlite3deps
|
||||||
endif
|
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')
|
if conf_data.get('CONFIG_ECMASCRIPT_SMJS') or conf_data.get('CONFIG_QUICKJS') or conf_data.get('CONFIG_MUJS')
|
||||||
curldeps = dependency('libcurl', static: st)
|
curldeps = dependency('libcurl', static: st)
|
||||||
deps += curldeps
|
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
|
endif
|
||||||
|
|
||||||
conf_data.set('CONFIG_LIBCSS', false)
|
conf_data.set('CONFIG_LIBCSS', false)
|
||||||
|
@ -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('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('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('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')
|
||||||
|
Loading…
Reference in New Issue
Block a user