add sdl2 wrap fallback
This commit is contained in:
parent
c7ff531a63
commit
9d260f59ba
3 changed files with 14 additions and 2 deletions
|
@ -9,6 +9,11 @@ project('taisei', 'c',
|
|||
'libzip:enable_crypto=false',
|
||||
'libzip:enable_bzip2=false',
|
||||
|
||||
'sdl2:enable_haptic=false',
|
||||
'sdl2:enable_power=false',
|
||||
'sdl2:enable_render=false',
|
||||
'sdl2:enable_sensor=false',
|
||||
|
||||
# You may want to change these for a debug build dir
|
||||
'buildtype=release',
|
||||
'strip=true',
|
||||
|
@ -105,8 +110,8 @@ static = get_option('static') or (host_machine.system() == 'emscripten')
|
|||
|
||||
dep_freetype = dependency('freetype2', required : true, static : static, fallback : ['freetype', 'freetype_dep'])
|
||||
dep_png = dependency('libpng', version : '>=1.5', required : true, static : static, fallback : ['libpng', 'png_dep'])
|
||||
dep_sdl2 = dependency('sdl2', version : '>=2.0.5', required : true, static : static)
|
||||
dep_sdl2_mixer = dependency('SDL2_mixer', required : false, static : static)
|
||||
dep_sdl2 = dependency('sdl2', version : '>=2.0.5', required : true, static : static, fallback : ['sdl2', 'sdl2_dep'])
|
||||
dep_sdl2_mixer = dependency('SDL2_mixer', required : false, static : static, fallback : ['sdl2_mixer', 'sdl2_mixer_dep'])
|
||||
dep_webp = dependency('libwebp', version : '>=0.5', required : false, static : static, fallback : ['libwebp', 'webp_dep'])
|
||||
dep_webpdecoder = dependency('libwebpdecoder', version : '>=0.5', required : false, static : static, fallback : ['libwebp', 'webpdecoder_dep'])
|
||||
dep_zlib = dependency('zlib', required : true, static : static, fallback : ['zlib', 'zlib_dep'])
|
||||
|
|
2
subprojects/.gitignore
vendored
2
subprojects/.gitignore
vendored
|
@ -4,3 +4,5 @@ zlib
|
|||
libpng
|
||||
freetype
|
||||
libwebp
|
||||
sdl2
|
||||
sdl2_mixer
|
||||
|
|
5
subprojects/sdl2.wrap
Normal file
5
subprojects/sdl2.wrap
Normal file
|
@ -0,0 +1,5 @@
|
|||
[wrap-git]
|
||||
directory=sdl2
|
||||
url=https://github.com/taisei-project/SDL-mirror.git
|
||||
push-url=git@github.com:taisei-project/SDL-mirror.git
|
||||
revision=meson-2.0.9
|
Loading…
Reference in a new issue