forked from bincrafters/conan-leptonica
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.py
More file actions
30 lines (23 loc) · 985 Bytes
/
build.py
File metadata and controls
30 lines (23 loc) · 985 Bytes
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from bincrafters import build_template_default
import platform
import copy
if __name__ == "__main__":
builder = build_template_default.get_builder()
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)
# add full-options build for selected platforms
if platform.system() != "Windows" and item.settings["arch"] == "x86_64" and \
item.settings["build_type"] == "Release":
new_options = copy.copy(item.options)
new_options["leptonica:with_webp"] = True
new_options["leptonica:with_openjpeg"] = True
items.append([item.settings, new_options, item.env_vars,
item.build_requires, item.reference])
builder.items = items
builder.run()