1
0
Fork 0

[quickjs] Added to meson_options

This commit is contained in:
Witold Filipczyk 2021-10-16 20:54:08 +02:00
parent e9b897f4a5
commit d66fe4a8df
2 changed files with 6 additions and 0 deletions

View File

@ -89,6 +89,7 @@ conf_data.set('CONFIG_LIBEV', get_option('libev'))
conf_data.set('CONFIG_LIBEVENT', get_option('libevent'))
conf_data.set('CONFIG_X', get_option('x'))
conf_data.set('CONFIG_XML', get_option('xml'))
conf_data.set('CONFIG_QUICKJS', get_option('quickjs'))
if conf_data.get('CONFIG_SCRIPTING_SPIDERMONKEY') or conf_data.get('CONFIG_ECMASCRIPT_SMJS')
conf_data.set('CONFIG_ECMASCRIPT', true)
@ -318,6 +319,10 @@ if conf_data.get('CONFIG_FSP')
endif
if conf_data.get('CONFIG_QUICKJS')
quickjsdeps = compiler.find_library('quickjs/libquickjs', static : true)
deps += quickjsdeps
endif
if compiler.has_header('sys/un.h')
conf_data.set('CONFIG_INTERLINK', true)

View File

@ -63,3 +63,4 @@ option('x', type: 'boolean', value: false, description: 'use the X Window System
option('xml', type: 'boolean', value: false, description: 'libxml++')
option('gemini', type: 'boolean', value: false, description: 'gemini protocol support')
option('gettext', type: 'boolean', value: false, description: 'use external gettext library')
option('quickjs', type: 'boolean', value: false, description: 'use quickjs library')