Hack stuff up so we can build shim again

Signed-off-by: Ikey Doherty <ikey@solus-project.com>
This commit is contained in:
Ikey Doherty
2017-10-10 22:27:54 +01:00
parent d870577a55
commit 93b0f82279
3 changed files with 29 additions and 0 deletions
+13
View File
@@ -34,8 +34,21 @@ add_global_arguments(am_cflags, language: 'c')
dep_gtk3 = dependency('gtk+-3.0', version: '>= 3.4.0')
cdata = configuration_data()
cdata.set_quoted('PACKAGE_NAME', meson.project_name())
prefix = get_option('prefix')
datadir = join_paths(prefix, get_option('datadir'))
vendordir = join_paths(datadir, 'defaults', meson.project_name())
sysconfdir = join_paths(prefix, get_option('sysconfdir'))
cdata.set_quoted('SYSTEMCONFDIR', sysconfdir)
cdata.set_quoted('VENDORDIR', vendordir)
# TODO: Make this come from the meson_options.txt
cdata.set_quoted('LSI_PRELOAD_LIBS', '/usr/\$LIB/libxcb.so.1:/usr/\$LIB/libX11.so.6:/usr/\$LIB/libstdc++.so.6')
cdata.set_quoted('STEAM_BINARY', '/usr/lib64/steam/steam')
cdata.set('REPLACE_STEAM', '1')
config_h = configure_file(
configuration: cdata,
output: 'config.h',
+1
View File
@@ -17,3 +17,4 @@ nica_includes = [
]
subdir('intercept')
subdir('shim')
+15
View File
@@ -0,0 +1,15 @@
# TODO: Expose this as an option!
shim_target_name = 'steam'
shim_sources = [
'lsi.c',
'shim.c',
]
main_intercept = executable(
shim_target_name,
sources: shim_sources + nica_sources,
include_directories: nica_includes,
install: true,
)