mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-04 14:05: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
17
meson.build
17
meson.build
|
@ -109,7 +109,7 @@ if get_option('force32') == true
|
|||
endif
|
||||
|
||||
build_static = false
|
||||
if get_option('static_executable') == true # and host_system == 'windows'
|
||||
if get_option('static_executable') == true
|
||||
build_static = true
|
||||
endif
|
||||
|
||||
|
@ -141,11 +141,20 @@ else
|
|||
endif
|
||||
|
||||
exe_name = meson.project_name()
|
||||
|
||||
if host_system == 'linux' and get_option('appimage') == false
|
||||
exe_name += '.' + host_machine.cpu()
|
||||
endif
|
||||
|
||||
if steamworks == true
|
||||
exe_name = meson.project_name() + '_rt'
|
||||
exe_name += '_rt'
|
||||
la = ''
|
||||
if build_static == true
|
||||
if host_system == 'windows'
|
||||
la = '-static'
|
||||
else
|
||||
la = '-static-libgcc -static-libstdc++'
|
||||
endif
|
||||
endif
|
||||
|
||||
shim_args = [
|
||||
|
@ -170,10 +179,6 @@ if steamworks == true
|
|||
install: (host_system != 'windows'))
|
||||
endif
|
||||
|
||||
if host_system == 'linux' and get_option('appimage') == false
|
||||
exe_name += '.' + host_machine.cpu()
|
||||
endif
|
||||
|
||||
executable(exe_name,
|
||||
sources: global_sources,
|
||||
dependencies: global_dependencies,
|
||||
|
|
Loading…
Add table
Reference in a new issue