intercept: Allow controlling build of this library

Signed-off-by: Ikey Doherty <ikey@solus-project.com>
This commit is contained in:
Ikey Doherty
2017-10-10 22:50:28 +01:00
parent 11e1d8ae5f
commit 9905a2bc81
3 changed files with 20 additions and 9 deletions
+5
View File
@@ -53,6 +53,11 @@ if shim_behaviour == 'replacement'
cdata.set('REPLACE_STEAM', '1')
endif
with_libintercept = get_option('with-libintercept')
if with_libintercept == true
cdata.set('HAVE_LIBINTERCEPT', '1')
endif
config_h = configure_file(
configuration: cdata,
output: 'config.h',
+1
View File
@@ -4,3 +4,4 @@ option('with-steam-binary', type: 'string', description: 'Set the path to the St
option('with-frontend', type: 'boolean', description: 'Build the LSI Settings UI', value: false)
option('with-preload-libs', type: 'string', description: 'Colon separated list of libraries required to launch Steam games',
value: '/usr/\$LIB/libxcb.so.1:/usr/\$LIB/libX11.so.6:/usr/\$LIB/libstdc++.so.6')
option('with-libintercept', type: 'boolean', description: 'Enable libintercept library for controlling Steam linking', value: true)
+14 -9
View File
@@ -1,10 +1,15 @@
intercept_sources = [
'main.c',
]
# Only build libintercept if told to!
main_intercept = shared_library(
'lsi-intercept',
sources: intercept_sources + nica_sources,
include_directories: nica_includes,
install: true,
)
if with_libintercept == true
intercept_sources = [
'main.c',
]
main_intercept = shared_library(
'lsi-intercept',
sources: intercept_sources + nica_sources,
include_directories: nica_includes,
install: true,
)
endif