Skip to content

Commit

Permalink
add sdl2 wrap fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
Akaricchi committed Mar 18, 2019
1 parent c7ff531 commit 9d260f5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
9 changes: 7 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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'])
Expand Down
2 changes: 2 additions & 0 deletions subprojects/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ zlib
libpng
freetype
libwebp
sdl2
sdl2_mixer
5 changes: 5 additions & 0 deletions subprojects/sdl2.wrap
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9d260f5

Please sign in to comment.