fix building steamshim on linux

This commit is contained in:
Struma 2022-01-19 04:06:43 -05:00
parent b2dd4db15d
commit 9b5341deef

View file

@ -109,7 +109,7 @@ if get_option('force32') == true
endif endif
build_static = false build_static = false
if get_option('static_executable') == true # and host_system == 'windows' if get_option('static_executable') == true
build_static = true build_static = true
endif endif
@ -141,11 +141,20 @@ else
endif endif
exe_name = meson.project_name() exe_name = meson.project_name()
if host_system == 'linux' and get_option('appimage') == false
exe_name += '.' + host_machine.cpu()
endif
if steamworks == true if steamworks == true
exe_name = meson.project_name() + '_rt' exe_name += '_rt'
la = '' la = ''
if build_static == true if build_static == true
if host_system == 'windows'
la = '-static' la = '-static'
else
la = '-static-libgcc -static-libstdc++'
endif
endif endif
shim_args = [ shim_args = [
@ -170,10 +179,6 @@ if steamworks == true
install: (host_system != 'windows')) install: (host_system != 'windows'))
endif endif
if host_system == 'linux' and get_option('appimage') == false
exe_name += '.' + host_machine.cpu()
endif
executable(exe_name, executable(exe_name,
sources: global_sources, sources: global_sources,
dependencies: global_dependencies, dependencies: global_dependencies,