forked from lasote/conan-libcurl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.py
31 lines (26 loc) · 1.42 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
import platform
from conan.packager import ConanMultiPackager
if __name__ == '__main__':
builder = ConanMultiPackager()
builder.add_common_builds(pure_c=True, shared_option_name='curl:shared')
accepted_builds = []
if platform.system() == 'Linux':
for build in builder.builds:
if build[0]['arch'] != 'x86':
accepted_builds.append([build[0], build[1]])
builder.builds = accepted_builds
if platform.system() == 'Darwin':
for build in builder.builds:
if not build[0]['arch'] == 'x86':
accepted_builds.append([build[0], build[1]])
builder.builds = accepted_builds
for compiler in builder.apple_clang_versions:
builder.add({'compiler': 'apple-clang', 'compiler.version': compiler,
'arch': 'x86_64', 'build_type': 'Release'}, {'curl:shared': False,
'curl:darwin_ssl': False,
'curl:custom_cacert': True})
builder.add({'compiler': 'apple-clang', 'compiler.version': compiler,
'arch': 'x86_64', 'build_type': 'Debug'}, {'curl:shared': False,
'curl:darwin_ssl': False,
'curl:custom_cacert': True})
builder.run()