-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.py
44 lines (34 loc) · 1.44 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from bincrafters import build_template_default
import platform
import os
os.environ['CONAN_USERNAME'] = os.environ.get('CONAN_USERNAME','conanos')
if __name__ == "__main__":
builder = build_template_default.get_builder()
if os.environ.get('EMSCRIPTEN_VERSIONS'):
for version in os.environ['EMSCRIPTEN_VERSIONS'].split(','):
for build_type in os.environ.get('CONAN_BUILD_TYPES','Debug').split(','):
builder.add(settings={
"compiler": "emcc",
"compiler.libcxx":'libcxxabi',
"build_type": build_type,
"compiler.version": version
},
options={'zlib:shared':True}, env_vars={}, build_requires={})
items = []
for item in builder.items:
if not os.environ.get('CONAN_GCC_VERSIONS') and item.settings['compiler'] == 'gcc':
continue
if not os.environ.get('CONAN_CLANG_VERSIONS') and item.settings['compiler'] == 'clang':
continue
items.append(item)
builder.items = items
items = []
for item in builder.items:
# skip mingw cross-builds
if not (platform.system() == "Windows" and item.settings["compiler"] == "gcc" and
item.settings["arch"] == "x86"):
items.append(item)
builder.items = items
builder.run()