try to fix building steamshim with meson

Shot in the dark, no PC
This commit is contained in:
Struma 2022-01-13 16:29:17 -05:00
parent 233d5d17e9
commit 2f02159dcc
2 changed files with 7 additions and 3 deletions

View file

@ -147,7 +147,12 @@ if steamworks == true
if build_static == true
la = '-static'
endif
shim_args = ['-DGAME_LAUNCH_NAME="' + exe_name + '"']
shim_args = [
'-DGAME_LAUNCH_NAME="' + exe_name + '"',
'-I' + steamworks_path + '/public'
]
if get_option('steam_appid') != ''
shim_args += '-DSTEAM_APPID=' + get_option('steam_appid')
endif
@ -159,7 +164,6 @@ if steamworks == true
executable(meson.project_name(),
sources: files('steamshim/steamshim_parent.cpp'),
dependencies: steamlib,
include_directories: (steamworks_path + '/public'),
cpp_args: shim_args,
link_args: la.split(),
gui_app: (get_option('steamshim_debug') == false),

View file

@ -1,4 +1,4 @@
option('mri_version', type: 'string', value: '3.0', description: 'Version of MRI to link with')
option('mri_version', type: 'string', value: '3.1', description: 'Version of MRI to link with')
option('mri_includes', type: 'string', value: '', description: 'Ruby manual include path')
option('mri_libpath', type: 'string', value: '', description: 'Ruby manual lib path')
option('mri_library', type: 'string', value: '', description: 'Ruby manual link name')