-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
34 lines (28 loc) · 1.03 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
<project name="ASM" default="main">
<condition property="is_unix">
<os family="unix" />
</condition>
<target name="clean">
<delete dir="build" />
</target>
<target name="make_archive">
<copy todir="build/asm" file="asm.lua" />
<copy todir="build/asm" file="bindump.lua" />
<copy todir="build/asm" file="json.lua" />
<copy todir="build/asm" file="load_asm.lua" />
<copy todir="build/asm" file="platform.json" />
<copy todir="build/asm" file="platform.lua" />
<copy todir="build/asm" file="numberlua.lua" />
<zip zip64Mode="never" destfile="build/asm.zip" basedir="build/asm" />
</target>
<target name="if_unix" if="is_unix" depends="make_archive">
<exec executable="base64">
<arg value="-i" />
<arg value="build/asm.zip" />
<arg value="-o" />
<arg value="build/asm.zip.base64" />
</exec>
</target>
<target name="main" depends="if_unix">
</target>
</project>