From 11e1d8ae5fe36c7d0e0caeeb2dd14ce272771d03 Mon Sep 17 00:00:00 2001 From: Ikey Doherty Date: Tue, 10 Oct 2017 22:46:19 +0100 Subject: [PATCH] shim: Build lsi-steam or not at all, depending on meson options Signed-off-by: Ikey Doherty --- src/shim/meson.build | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/src/shim/meson.build b/src/shim/meson.build index c230604..7391c74 100644 --- a/src/shim/meson.build +++ b/src/shim/meson.build @@ -1,15 +1,19 @@ -# TODO: Expose this as an option! -shim_target_name = 'steam' +if shim_behaviour == 'replacement' + shim_target_name = 'steam' +else + shim_target_name = 'lsi-steam' +endif -shim_sources = [ - 'lsi.c', - 'shim.c', -] - -main_intercept = executable( - shim_target_name, - sources: shim_sources + nica_sources, - include_directories: nica_includes, - install: true, -) +if shim_behaviour != 'none' + shim_sources = [ + 'lsi.c', + 'shim.c', + ] + shim = executable( + shim_target_name, + sources: shim_sources + nica_sources, + include_directories: nica_includes, + install: true, + ) +endif