-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.py
35 lines (29 loc) · 1.01 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
from conan.packager import ConanMultiPackager
from conans.tools import os_info
import copy
import os
if __name__ == "__main__":
builder = ConanMultiPackager(build_policy="missing")
settings = {
"os": "Arduino",
"os.board": "uno",
"compiler": "gcc",
"compiler.version": "7.3",
"compiler.libcxx": "libstdc++11",
"arch": "avr"
}
build_requires = {
"*": [
"arduino-sdk/1.8.11@conan/stable",
"cmake_installer/3.16.3@conan/stable"
]
}
if os_info.is_linux:
builder.add(settings, options={"arduino-sdk:host_os": "linux32"}, build_requires=build_requires)
builder.add(settings, options={"arduino-sdk:host_os": "linux64"}, build_requires=build_requires)
elif os_info.is_windows:
build_requires["*"].append("mingw-installer/1.0.0@conan/stable")
builder.add(settings, build_requires=build_requires)
else:
builder.add(settings, build_requires=build_requires)
builder.run()