-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
80 lines (72 loc) · 3.31 KB
/
build.xml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?xml version="1.0" encoding="UTF-8"?>
<project default="build">
<!-- APPLICATION METADATA -->
<property name="masysma.target" value="maxbupst"/>
<property name="mdpc.name" value="mdvl-maxbupst"/>
<property name="mdpc.section" value="admin"/>
<!-- currently restricted due to dependencies being on amd64 only -->
<property name="mdpc.arch" value="amd64"/>
<property name="mdpc.descrs" value="Ma_Sys.ma Bupstash Extractor"/>
<property name="mdpc.bdep" value="liblz4-ada-dev, libblake3-ada-dev, libtar-ada-dev"/>
<property name="mdpc.depends" value="$${shlibs:Depends}, liblz4-ada-dev, libblake3-ada-dev, libtar-ada-dev"/>
<property name="mdpc.descrl">
The Ma_Sys.ma Bupstash Extractor (command `maxbupst`) is an alternative tool
to Bupstash's extraction function (`bupstash get`, package `mdvl-bupstash`).
.
This implementation is written in Ada rather than Rust and only supports
full restores. It is intended to be an alternative that is easier to compile.
.
In case of doubt it is advised to prefer `bupstash` over `maxbupst`.
</property>
<property name="mdpc.file.install">
maxbupst /usr/bin
</property>
<!-- CI INTEGRATION -->
<target name="autoci" depends="autopackage"/>
<target name="masysma_internal_build_ada">
<exec executable="gnatmake" failonerror="true">
<arg value="-Wall"/>
<arg value="-O3"/>
<arg value="-o"/>
<arg value="${masysma.target}"/>
<arg value="${masysma.target}.adb"/>
<arg value="-aI/usr/share/ada/adainclude/blake3"/>
<arg value="-aO/usr/lib/x86_64-linux-gnu/ada/adalib/blake3"/>
<arg value="-aI/usr/share/ada/adainclude/lz4"/>
<arg value="-aO/usr/lib/x86_64-linux-gnu/ada/adalib/lz4"/>
<arg value="-aI/usr/share/ada/adainclude/tar"/>
<arg value="-aO/usr/lib/x86_64-linux-gnu/ada/adalib/tar"/>
<arg value="-largs"/>
<arg value="-lsodium"/>
<arg value="-lblake3"/>
<arg value="-llz4ada"/>
<arg value="-ltarada"/>
</exec>
</target>
<target name="download">
<masysma_require_repo masysmarepoid="bo-blake3-ada"/>
<masysma_require_repo masysmarepoid="bo-lz4-ada"/>
<masysma_require_repo masysmarepoid="bo-tar-ada"/>
</target>
<target name="build-rogue" depends="download">
<exec executable="gnatmake" failonerror="true">
<arg value="-Wall"/>
<arg value="-O3"/>
<arg value="-o"/>
<arg value="${masysma.target}"/>
<arg value="${masysma.target}.adb"/>
<arg value="-I${masysma.internal.includepath}/bo-lz4-ada/lib"/>
<arg value="-I${masysma.internal.includepath}/bo-blake3-ada/lib"/>
<arg value="-I${masysma.internal.includepath}/bo-tar-ada/lib"/>
<arg value="-largs"/>
<arg value="-lsodium"/>
</exec>
</target>
<!-- CONSTANT TPL IMPORT -->
<property environment="env"/>
<condition property="masysma.internal.includepath.rel" value="${env.MDVL_CI_PHOENIX_ROOT}" else=".."><isset property="env.MDVL_CI_PHOENIX_ROOT"/></condition>
<property name="masysma.internal.includepath" location="${masysma.internal.includepath.rel}"/>
<property name="masysma.internal.loadpath" value="${masysma.internal.includepath}/co-build/ant-build-template.xml"/>
<condition property="masysma.internal.load" value="file://${masysma.internal.loadpath}" else="https://raw.githubusercontent.com/m7a/co-build/master/ant-build-template.xml"><resourceexists><file file="${masysma.internal.loadpath}"/></resourceexists></condition>
<import><url url="${masysma.internal.load}"/></import>
</project>