-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.xml
75 lines (61 loc) · 2.18 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
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
Copyright (c) 2012 Sierra Wireless and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html
Contributors:
Sierra Wireless - initial API and implementation
-->
<project name="librariesBuilder" default="build">
<!-- base folder -->
<property name="baseDestinationFolder" value="output" />
<property name="workingdir" value="${baseDestinationFolder}/workingdir" />
<target name="createEEArchives">
<!-- clean working dir -->
<delete dir="${workingdir}" />
<!-- create output dir -->
<mkdir dir="${workingdir}" />
<!-- zip api lua in working dir -->
<zip destfile="${workingdir}/api.zip">
<fileset dir="${eeid}/${eeversion}/api" />
</zip>
<!-- copy rockspec -->
<copy todir="${workingdir}/">
<fileset dir="${eeid}/${eeversion}" includes="${eeid}-${eeversion}.rockspec" />
</copy>
<!-- copy LICENSE -->
<copy todir="${workingdir}/">
<fileset dir="${eeid}/${eeversion}" includes="LICENSE" />
</copy>
<!-- copy docs directory -->
<copy todir="${workingdir}/docs">
<fileset dir="${eeid}/${eeversion}/docs" />
</copy>
<!-- zip api lua in working dir -->
<zip destfile="${baseDestinationFolder}/${eeid}-${eeversion}.zip">
<fileset dir="${workingdir}" />
</zip>
<!-- clean working dir -->
<delete dir="${workingdir}" />
</target>
<!-- Build all execution Environement -->
<target name="build">
<!-- create output dir -->
<mkdir dir="${baseDestinationFolder}" />
<!-- clean destinationLuaFolder -->
<delete includeEmptyDirs="true">
<fileset dir="${baseDestinationFolder}" />
</delete>
<!-- create EE archives -->
<antcall target="createEEArchives">
<param name="eeid" value="lua" />
<param name="eeversion" value="5.1" />
</antcall>
<antcall target="createEEArchives">
<param name="eeid" value="gideros" />
<param name="eeversion" value="2012.2.2.1" />
</antcall>
</target>
</project>