mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-23 23:30:02 +00:00
meson.build: separate option for only installing xorg sdk
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
7dad061eab
commit
eb6b201c23
@@ -410,7 +410,7 @@ if with_dtrace
|
||||
dtrace_hdr += dtrace_header.process(dtrace_tmpl)
|
||||
endif
|
||||
|
||||
if build_xorg
|
||||
if build_xorg_sdk
|
||||
install_data(
|
||||
[
|
||||
'Xprintf.h',
|
||||
|
||||
11
meson.build
11
meson.build
@@ -236,6 +236,8 @@ if with_dtrace
|
||||
dtrace = find_program('dtrace', required: true)
|
||||
endif
|
||||
|
||||
build_xorg_sdk = get_option('xorg-sdk')
|
||||
|
||||
build_xorg = false
|
||||
if (host_machine.system() != 'windows')
|
||||
if get_option('xorg') == 'auto'
|
||||
@@ -245,6 +247,11 @@ if (host_machine.system() != 'windows')
|
||||
build_xorg = get_option('xorg') == 'true'
|
||||
endif
|
||||
endif
|
||||
|
||||
if build_xorg
|
||||
build_xorg_sdk = true
|
||||
endif
|
||||
|
||||
xorgsdkdir = join_paths(get_option('prefix'), get_option('includedir'), 'xorg')
|
||||
libxcvt_dep = dependency('libxcvt', fallback: ['libxcvt', 'libxcvt_dep'], required: build_xorg)
|
||||
|
||||
@@ -937,14 +944,14 @@ configure_file(output : 'dix-config.h',
|
||||
configure_file(output : 'xorg-server.h',
|
||||
input : 'hw/xfree86/xlibre-server.h.meson.in',
|
||||
configuration : conf_data,
|
||||
install: build_xorg,
|
||||
install: build_xorg_sdk,
|
||||
install_dir: xorgsdkdir)
|
||||
|
||||
# new config include file for drivers
|
||||
configure_file(output : 'xlibre-server.h',
|
||||
input : 'hw/xfree86/xlibre-server.h.meson.in',
|
||||
configuration : conf_data,
|
||||
install: build_xorg,
|
||||
install: build_xorg_sdk,
|
||||
install_dir: xorgsdkdir)
|
||||
|
||||
configure_file(output : 'xorg-config.h',
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
option('xorg', type: 'combo', choices: ['true', 'false', 'auto'], value: 'auto',
|
||||
description: 'Enable Xorg X Server')
|
||||
option('xorg-sdk', type: 'boolean', value: 'false',
|
||||
description: 'Enable Xorg X Server SDK (enabled with xorg)')
|
||||
option('xephyr', type: 'boolean', value: false,
|
||||
description: 'Enable Xephyr nested X server')
|
||||
option('xfbdev', type: 'boolean', value: false,
|
||||
|
||||
Reference in New Issue
Block a user