Feature #88 ยป 0013-sdl3-Link-against-SDL3_gfx.patch
client/gui-sdl3/graphics.h | ||
---|---|---|
#define FC__GRAPHICS_H
|
||
/* SDL3 */
|
||
#ifdef SDL2_GFX_FROM_TREE
|
||
#include "SDL2_gfx/SDL2_rotozoom.h"
|
||
#else
|
||
#include <SDL3/SDL3_rotozoom.h>
|
||
#endif /* SDL2_GFX_FROM_TREE */
|
||
#include "SDL3_gfx/SDL3_rotozoom.h"
|
||
/* client */
|
||
#include "graphics_g.h"
|
meson.build | ||
---|---|---|
sdl3_ttf_dep = []
|
||
if not emscripten
|
||
sdl3_gfx_dep = c_compiler.find_library('SDL3_gfx', dirs: cross_lib_path,
|
||
required: false)
|
||
if not sdl3_gfx_dep.found()
|
||
sdl3_gfx_src = 'dependencies/SDL2_gfx/SDL2_rotozoom.c'
|
||
sdl3_gfx_inc = include_directories('dependencies')
|
||
sdl3_gfx_cargs = '-DSDL2_GFX_FROM_TREE'
|
||
endif
|
||
sdl3_gfx_src = 'dependencies/SDL3_gfx/SDL3_rotozoom.c'
|
||
sdl3_gfx_inc = include_directories('dependencies')
|
||
sdl3_image_dep = c_compiler.find_library('SDL3_image', dirs: cross_lib_path,
|
||
required: false)
|
||
... | ... | |
'client/gui-sdl3/wldlg.c',
|
||
sdl3_gfx_src,
|
||
clienticon,
|
||
c_args: sdl3_gfx_cargs,
|
||
include_directories: [client_inc, sdl3_gfx_inc ],
|
||
dependencies: [sdl3main_dep, audio_dep,
|
||
sdl3_image_dep, sdl3_gfx_dep, sdl3_ttf_dep,
|