-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.py
28 lines (24 loc) · 893 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
25
26
27
28
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import copy
from cpt.packager import ConanMultiPackager
if __name__ == "__main__":
builder = ConanMultiPackager()
builder.add(
settings={"arch": "x86_64", "build_type": "Release"},
options={"dart:shared": False},
)
builder.add(
settings={"arch": "x86_64", "build_type": "Debug"},
options={"dart:shared": False},
)
# add c++17 build configs
new_builds = []
for settings, options, env_vars, build_requires, reference in builder.items:
new_settings = copy.copy(settings)
new_settings["compiler.cppstd"] = "17"
new_settings["compiler.libcxx"] = "libstdc++11"
new_builds.append([settings, options, env_vars, build_requires])
new_builds.append([new_settings, options, env_vars, build_requires])
builder.builds = new_builds
builder.run()