forked from conan-community/conan-boost
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.launcher.py
28 lines (22 loc) · 848 Bytes
/
.launcher.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
import platform
import os
import sys
from conans import tools
from conans.client.output import ConanOutput
env = {"CONAN_USERNAME": "lasote",
"CONAN_CHANNEL": "testing",
"CONAN_REFERENCE": "boost/1.67.0"}
if platform.system() == "Windows":
env["CONAN_VISUAL_VERSIONS"] = "15, 14, 12"
elif platform.system() == "Linux":
env["CONAN_GCC_VERSIONS"] = "4.9, 5, 6, 7"
env["CONAN_USE_DOCKER"] = "1"
elif platform.system() == "Darwin":
from conans.client.conf.detect import _get_default_compiler
_, version = _get_default_compiler(ConanOutput(stream=sys.stdout))
env["CONAN_APPLE_CLANG_VERSIONS"] = version
with tools.environment_append(env):
with tools.chdir(os.path.dirname(os.path.realpath(__file__))):
ret = os.system("python build.py")
if ret != 0:
raise Exception("Error!")