forked from kuroneko/sais
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconanfile.py
31 lines (28 loc) · 903 Bytes
/
conanfile.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from conans import ConanFile, CMake, tools
class SaisConan(ConanFile):
name = "sais"
license = "GPL"
settings = "os", "compiler", "build_type", "arch"
requires = [
'sdl2/2.0.12@bincrafters/stable',
'sdl2_mixer/2.0.4@bincrafters/stable',
'physfs/3.0.1@bincrafters/stable',
]
default_options = {
"*:shared": False,
"sdl2:iconv": False,
"sdl2_mixer:fluidsynth": False,
"sdl2_mixer:mad": False,
"sdl2_mixer:mikmod": False,
"sdl2_mixer:modplug": False,
"sdl2_mixer:mpg123": False,
"sdl2_mixer:opus": False,
"sdl2_mixer:flac": False,
"sdl2_mixer*:tinymidi": False,
"sdl2_mixer:wav": True,
}
generators = "cmake"
def configure(self):
# SDL2 on macOS requires iconv
if self.settings.os == "Macos":
self.options["sdl2"].iconv = True