forked from bincrafters/conan-sdl2
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.py
24 lines (17 loc) · 974 Bytes
/
build.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
#!/usr/bin/env python
import os
from conans import tools
from bincrafters import build_template_default
if __name__ == "__main__":
builder = build_template_default.get_builder()
gcc_version = os.getenv("CONAN_GCC_VERSIONS", None)
clang_version = os.getenv("CONAN_CLANG_VERSIONS", None)
compiler_version = gcc_version if gcc_version else clang_version
if tools.os_info.is_linux and (gcc_version in (8,9,10) or clang_version in (10,)):
for shared_option in [False, True]:
custom_options = {"sdl2:esd": False, "sdl2:wayland": True, "sdl2:x11": True, 'sdl2:shared': shared_option}
builder.add({'arch': 'x86_64', 'build_type': 'Release', 'compiler': 'gcc',
'compiler.version': compiler_version}, custom_options)
builder.add({'arch': 'x86_64', 'build_type': 'Debug', 'compiler': 'gcc',
'compiler.version': compiler_version}, custom_options)
builder.run()