Bug #218 » 0032-meson.build-Drop-duplicate-sdl3-section.patch
meson.build | ||
---|---|---|
endif
|
||
endif
|
||
if get_option('clients').contains('sdl3')
|
||
if host_system == 'windows'
|
||
sdl3main_dep = [c_compiler.find_library('mingw32', dirs: cross_lib_path),
|
||
c_compiler.find_library('SDL3main', dirs: cross_lib_path),
|
||
c_compiler.find_library('SDL3', dirs: cross_lib_path)]
|
||
else
|
||
if emscripten
|
||
emscripten_sdl3_args = [
|
||
'-s', 'USE_SDL=3'
|
||
]
|
||
emscripten_sdl3_args += [
|
||
'-s', 'USE_SDL_IMAGE=3',
|
||
'-s', 'USE_SDL_TTF=3',
|
||
'-s', 'USE_SDL_GFX=3'
|
||
]
|
||
add_global_arguments(emscripten_sdl3_args, language: ['c', 'cpp'])
|
||
add_global_link_arguments(emscripten_sdl3_args, language: ['c', 'cpp'])
|
||
sdl3main_dep = []
|
||
else
|
||
sdl3main_dep = [c_compiler.find_library('SDL3', dirs: cross_lib_path)]
|
||
endif
|
||
endif
|
||
endif
|
||
if qtver == 'qt5'
|
||
add_global_arguments('-DQT_DISABLE_DEPRECATED_BEFORE=0x050f00', language : 'cpp')
|
||
priv_conf_data.set('FC_QT5_MODE', 1)
|