Merge pull request #805 from DanySpin97/master
Change meson option names to use hypen
This commit is contained in:
commit
7279054bff
22
meson.build
22
meson.build
|
@ -58,30 +58,30 @@ libinput = dependency('libinput', version: '>=1.7.0')
|
||||||
xkbcommon = dependency('xkbcommon')
|
xkbcommon = dependency('xkbcommon')
|
||||||
udev = dependency('libudev')
|
udev = dependency('libudev')
|
||||||
pixman = dependency('pixman-1')
|
pixman = dependency('pixman-1')
|
||||||
libcap = dependency('libcap', required: get_option('enable_libcap') == 'true')
|
libcap = dependency('libcap', required: get_option('enable-libcap') == 'true')
|
||||||
systemd = dependency('libsystemd', required: get_option('enable_systemd') == 'true')
|
systemd = dependency('libsystemd', required: get_option('enable-systemd') == 'true')
|
||||||
elogind = dependency('libelogind', required: get_option('enable_elogind') == 'true')
|
elogind = dependency('libelogind', required: get_option('enable-elogind') == 'true')
|
||||||
math = cc.find_library('m', required: false)
|
math = cc.find_library('m', required: false)
|
||||||
|
|
||||||
exclude_headers = []
|
exclude_headers = []
|
||||||
wlr_parts = []
|
wlr_parts = []
|
||||||
wlr_deps = []
|
wlr_deps = []
|
||||||
|
|
||||||
if libcap.found() and get_option('enable_libcap') != 'false'
|
if libcap.found() and get_option('enable-libcap') != 'false'
|
||||||
conf_data.set('WLR_HAS_LIBCAP', true)
|
conf_data.set('WLR_HAS_LIBCAP', true)
|
||||||
wlr_deps += libcap
|
wlr_deps += libcap
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if systemd.found() and get_option('enable_systemd') != 'false'
|
if systemd.found() and get_option('enable-systemd') != 'false'
|
||||||
conf_data.set('WLR_HAS_SYSTEMD', true)
|
conf_data.set('WLR_HAS_SYSTEMD', true)
|
||||||
wlr_deps += systemd
|
wlr_deps += systemd
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if elogind.found() and get_option('enable_elogind') != 'false'
|
if elogind.found() and get_option('enable-elogind') != 'false'
|
||||||
conf_data.set('WLR_HAS_ELOGIND', true)
|
conf_data.set('WLR_HAS_ELOGIND', true)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if get_option('enable_x11_backend') or get_option('enable_xwayland')
|
if get_option('enable-x11_backend') or get_option('enable-xwayland')
|
||||||
xcb = dependency('xcb')
|
xcb = dependency('xcb')
|
||||||
xcb_composite = dependency('xcb-composite')
|
xcb_composite = dependency('xcb-composite')
|
||||||
xcb_xfixes = dependency('xcb-xfixes')
|
xcb_xfixes = dependency('xcb-xfixes')
|
||||||
|
@ -91,7 +91,7 @@ if get_option('enable_x11_backend') or get_option('enable_xwayland')
|
||||||
|
|
||||||
xcb_icccm = dependency('xcb-icccm', required: false)
|
xcb_icccm = dependency('xcb-icccm', required: false)
|
||||||
xcb_xkb = dependency('xcb-xkb', required: false)
|
xcb_xkb = dependency('xcb-xkb', required: false)
|
||||||
xcb_errors = dependency('xcb-errors', required: get_option('enable_xcb_errors') == 'true')
|
xcb_errors = dependency('xcb-errors', required: get_option('enable-xcb_errors') == 'true')
|
||||||
|
|
||||||
if xcb_icccm.found()
|
if xcb_icccm.found()
|
||||||
conf_data.set('WLR_HAS_XCB_ICCCM', true)
|
conf_data.set('WLR_HAS_XCB_ICCCM', true)
|
||||||
|
@ -101,7 +101,7 @@ if get_option('enable_x11_backend') or get_option('enable_xwayland')
|
||||||
conf_data.set('WLR_HAS_XCB_XKB', true)
|
conf_data.set('WLR_HAS_XCB_XKB', true)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if xcb_errors.found() and get_option('enable_xcb_errors') != 'false'
|
if xcb_errors.found() and get_option('enable-xcb_errors') != 'false'
|
||||||
conf_data.set('WLR_HAS_XCB_ERRORS', true)
|
conf_data.set('WLR_HAS_XCB_ERRORS', true)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -114,11 +114,11 @@ else
|
||||||
add_project_arguments('-DMESA_EGL_NO_X11_HEADERS', language: 'c')
|
add_project_arguments('-DMESA_EGL_NO_X11_HEADERS', language: 'c')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if get_option('enable_x11_backend')
|
if get_option('enable-x11_backend')
|
||||||
conf_data.set('WLR_HAS_X11_BACKEND', true)
|
conf_data.set('WLR_HAS_X11_BACKEND', true)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if get_option('enable_xwayland')
|
if get_option('enable-xwayland')
|
||||||
subdir('xwayland')
|
subdir('xwayland')
|
||||||
wlr_parts += [lib_wlr_xwayland]
|
wlr_parts += [lib_wlr_xwayland]
|
||||||
conf_data.set('WLR_HAS_XWAYLAND', true)
|
conf_data.set('WLR_HAS_XWAYLAND', true)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
option('enable_libcap', type: 'combo', choices: ['auto', 'true', 'false'], value: 'auto', description: 'Enable support for capabilities')
|
option('enable-libcap', type: 'combo', choices: ['auto', 'true', 'false'], value: 'auto', description: 'Enable support for capabilities')
|
||||||
option('enable_systemd', type: 'combo', choices: ['auto', 'true', 'false'], value: 'auto', description: 'Enable support for logind')
|
option('enable-systemd', type: 'combo', choices: ['auto', 'true', 'false'], value: 'auto', description: 'Enable support for logind')
|
||||||
option('enable_elogind', type: 'combo', choices: ['auto', 'true', 'false'], value: 'auto', description: 'Enable support for logind')
|
option('enable-elogind', type: 'combo', choices: ['auto', 'true', 'false'], value: 'auto', description: 'Enable support for logind')
|
||||||
option('enable_xcb_errors', type: 'combo', choices: ['auto', 'true', 'false'], value: 'auto', description: 'Use xcb-errors util library')
|
option('enable-xcb_errors', type: 'combo', choices: ['auto', 'true', 'false'], value: 'auto', description: 'Use xcb-errors util library')
|
||||||
option('enable_xwayland', type: 'boolean', value: true, description: 'Enable support X11 applications')
|
option('enable-xwayland', type: 'boolean', value: true, description: 'Enable support X11 applications')
|
||||||
option('enable_x11_backend', type: 'boolean', value: true, description: 'Enable X11 backend')
|
option('enable-x11_backend', type: 'boolean', value: true, description: 'Enable X11 backend')
|
||||||
|
|
|
@ -13,7 +13,7 @@ sources = [
|
||||||
'xdg_shell_v6.c',
|
'xdg_shell_v6.c',
|
||||||
'xdg_shell.c',
|
'xdg_shell.c',
|
||||||
]
|
]
|
||||||
if get_option('enable_xwayland')
|
if get_option('enable-xwayland')
|
||||||
sources += ['xwayland.c']
|
sources += ['xwayland.c']
|
||||||
endif
|
endif
|
||||||
executable(
|
executable(
|
||||||
|
|
Loading…
Reference in New Issue