mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-07 08:07:20 +02:00
Add new meson options to suppress compilation of daemon and examples
This makes it quicker and easier to build multilib + multiarch variants of the library without having to compile the larget host-arch specific daemon. This is required for using the automatic LD_PRELOAD module with older 32-bit games on a 64-bit host, to ensure they all have access to the library. Signed-off-by: Ikey Doherty <ikey@solus-project.com>
This commit is contained in:
parent
9e36ffe9f9
commit
cc931a6237
28
meson.build
28
meson.build
@ -28,10 +28,26 @@ if path_systemd_unit_dir == ''
|
|||||||
path_systemd_unit_dir = pkgconfig_systemd.get_pkgconfig_variable('systemduserunitdir')
|
path_systemd_unit_dir = pkgconfig_systemd.get_pkgconfig_variable('systemduserunitdir')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
with_daemon = get_option('with-daemon')
|
||||||
|
with_examples = get_option('with-examples')
|
||||||
|
|
||||||
|
# Library is always required
|
||||||
subdir('lib')
|
subdir('lib')
|
||||||
subdir('daemon')
|
|
||||||
subdir('example')
|
# The daemon can be disabled if necessary, allowing multilib builds of the
|
||||||
subdir('data')
|
# main library
|
||||||
|
if with_daemon == true
|
||||||
|
subdir('daemon')
|
||||||
|
|
||||||
|
# All installed data is currently daemon specific
|
||||||
|
subdir('data')
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Optionally allow building of examples
|
||||||
|
if with_examples == true
|
||||||
|
subdir('example')
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
report = [
|
report = [
|
||||||
' Build configuration:',
|
' Build configuration:',
|
||||||
@ -43,6 +59,12 @@ report = [
|
|||||||
' libdir: @0@'.format(path_libdir),
|
' libdir: @0@'.format(path_libdir),
|
||||||
' includedir: @0@'.format(path_includedir),
|
' includedir: @0@'.format(path_includedir),
|
||||||
' systemd user unit directory: @0@'.format(path_systemd_unit_dir),
|
' systemd user unit directory: @0@'.format(path_systemd_unit_dir),
|
||||||
|
'',
|
||||||
|
' Options:',
|
||||||
|
' ========',
|
||||||
|
'',
|
||||||
|
' daemon: @0@'.format(with_daemon),
|
||||||
|
' examples: @0@'.format(with_examples),
|
||||||
]
|
]
|
||||||
|
|
||||||
# Output some stuff to validate the build config
|
# Output some stuff to validate the build config
|
||||||
|
@ -1 +1,3 @@
|
|||||||
option('with-systemd-user-unit-dir', type: 'string', description: 'Explicitly set the systemd user unit directory')
|
option('with-systemd-user-unit-dir', type: 'string', description: 'Explicitly set the systemd user unit directory')
|
||||||
|
option('with-examples', type: 'boolean', description: 'Build sample programs', value: 'true')
|
||||||
|
option('with-daemon', type: 'boolean', description: 'Build the daemon', value: 'true')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user