mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-03 21:45:32 +02:00
fix building steamshim on linux
This commit is contained in:
parent
b2dd4db15d
commit
9b5341deef
1 changed files with 12 additions and 7 deletions
19
meson.build
19
meson.build
|
@ -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
|
||||||
la = '-static'
|
if host_system == 'windows'
|
||||||
|
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,
|
||||||
|
|
Loading…
Add table
Reference in a new issue