1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
2 | <project name="lirk2-create-components" default="create-components">
|
---|
3 |
|
---|
4 | <!-- create components from the distribution folder -->
|
---|
5 |
|
---|
6 | <!-- 1st level -->
|
---|
7 | <target name="create-components">
|
---|
8 | <antcall target="prepare-components" />
|
---|
9 | <antcall target="compress-components" />
|
---|
10 | </target>
|
---|
11 |
|
---|
12 | <!-- 2nd level -->
|
---|
13 | <target name="prepare-components">
|
---|
14 | <antcall target="prepare-core-component" />
|
---|
15 | <antcall target="prepare-imagemagick-component" />
|
---|
16 | </target>
|
---|
17 |
|
---|
18 | <target name="compress-components">
|
---|
19 | <antcall target="compress-core-component" />
|
---|
20 | <antcall target="compress-imagemagick-component" />
|
---|
21 | </target>
|
---|
22 |
|
---|
23 | <!-- 3rd level -->
|
---|
24 |
|
---|
25 | <!-- core -->
|
---|
26 | <target name="prepare-core-component">
|
---|
27 |
|
---|
28 | <delete dir="components/tmp/core"/>
|
---|
29 | <mkdir dir="components/tmp/core"/>
|
---|
30 |
|
---|
31 | <copy todir="components/tmp/core" overwrite="true">
|
---|
32 | <fileset dir="distributions/web">
|
---|
33 | <include name="**/*"/>
|
---|
34 |
|
---|
35 | <!-- exclude imagemagick -->
|
---|
36 | <exclude name="bin/linux/imagemagick"/>
|
---|
37 | <exclude name="bin/linux/imagemagick/**/*"/>
|
---|
38 |
|
---|
39 | </fileset>
|
---|
40 | </copy>
|
---|
41 | <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" includes="**/*"/>
|
---|
42 | </target>
|
---|
43 |
|
---|
44 | <target name="compress-core-component">
|
---|
45 | <sevenzip task="encode" input="components/core.comp" output="components/core.lzma" dictionnary="26"/>
|
---|
46 | </target>
|
---|
47 |
|
---|
48 | <!-- imagemagick -->
|
---|
49 | <target name="prepare-imagemagick-component">
|
---|
50 |
|
---|
51 | <delete dir="components/tmp/imagemagick"/>
|
---|
52 | <mkdir dir="components/tmp/imagemagick"/>
|
---|
53 |
|
---|
54 | <copy todir="components/tmp/imagemagick" overwrite="true">
|
---|
55 | <fileset dir="distributions/web/bin/linux">
|
---|
56 | <include name="imagemagick/**/*"/>
|
---|
57 | </fileset>
|
---|
58 | </copy>
|
---|
59 |
|
---|
60 | <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" includes="**/*"/>
|
---|
61 | </target>
|
---|
62 |
|
---|
63 | <target name="compress-imagemagick-component">
|
---|
64 | <sevenzip task="encode" input="components/imagemagick.comp" output="components/imagemagick.lzma" dictionnary="26"/>
|
---|
65 | </target>
|
---|
66 |
|
---|
67 | </project>
|
---|