-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_metadata.py
46 lines (45 loc) · 1.47 KB
/
build_metadata.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
45
46
import sys
try:
import artifactory_utils
except:
pass
else:
dependencies = [
artifactory_utils.ArtifactSelector(
project="Toolchain-Release",
revision="develop",
version="^4.6",
debug=False,
stable_required=True),
artifactory_utils.ArtifactSelector(
project="json-cpp",
revision="develop",
version="3.*",
debug=False,
stable_required=True),
artifactory_utils.ArtifactSelector(
project="MBCoreUtils",
revision="develop",
version="^4.0",
debug=False,
stable_required=True)
]
# Ideally we would be using the platform to select the appropriate
# artifact for the above dependencies. But instead we can just pull
# down both artifacts, which works fine as long as the cross compiled
# artifacts actually exist.
if sys.platform.startswith('linux') and sys.maxsize > 2**32:
dependencies.extend([
artifactory_utils.ArtifactSelector(
project="morepork-mbcoreutils",
revision="develop",
version="^4.0",
debug=False,
stable_required=True),
artifactory_utils.ArtifactSelector(
project="morepork-json-cpp",
revision="develop",
version="3.*",
debug=False,
stable_required=True),
])