[17396] | 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 -->
|
---|
[17649] | 5 |
|
---|
| 6 | <!-- 1st level -->
|
---|
[17396] | 7 | <target name="create-components">
|
---|
[17644] | 8 | <antcall target="prepare-components" />
|
---|
| 9 | <antcall target="compress-components" />
|
---|
[17396] | 10 | </target>
|
---|
[17644] | 11 |
|
---|
[17649] | 12 | <!-- 2nd level -->
|
---|
[17644] | 13 | <target name="prepare-components">
|
---|
[17396] | 14 | <antcall target="prepare-core-component" />
|
---|
[17644] | 15 | <antcall target="prepare-sourcecode-component" />
|
---|
| 16 | <antcall target="prepare-imagemagick-component" />
|
---|
[17649] | 17 | <antcall target="prepare-sourcecode-core-component" />
|
---|
[17396] | 18 | </target>
|
---|
| 19 |
|
---|
[17644] | 20 | <target name="compress-components">
|
---|
| 21 | <antcall target="compress-core-component" />
|
---|
[17396] | 22 | <antcall target="compress-sourcecode-component" />
|
---|
[17644] | 23 | <antcall target="compress-imagemagick-component" />
|
---|
[17649] | 24 | <antcall target="compress-sourcecode-core-component" />
|
---|
[17396] | 25 | </target>
|
---|
[17649] | 26 |
|
---|
| 27 | <!-- 3rd level -->
|
---|
[17659] | 28 |
|
---|
| 29 | <!-- core -->
|
---|
[17396] | 30 | <target name="prepare-core-component">
|
---|
[17450] | 31 |
|
---|
| 32 | <delete dir="components/tmp/core"/>
|
---|
[17396] | 33 | <mkdir dir="components/tmp/core"/>
|
---|
[17450] | 34 |
|
---|
[17396] | 35 | <copy todir="components/tmp/core" overwrite="true">
|
---|
| 36 | <fileset dir="distributions/web">
|
---|
[17422] | 37 | <include name="**/*"/>
|
---|
| 38 |
|
---|
[17659] | 39 | <!-- exclude sourcecode + imagemagick -->
|
---|
[17644] | 40 | <exclude name="common-src"/>
|
---|
[17422] | 41 | <exclude name="common-src/**/*"/>
|
---|
[17644] | 42 | <exclude name="runtime-src"/>
|
---|
[17422] | 43 | <exclude name="runtime-src/**/*"/>
|
---|
[17644] | 44 | <exclude name="build-src"/>
|
---|
[17422] | 45 | <exclude name="build-src/**/*"/>
|
---|
[17644] | 46 | <exclude name="bin/linux/imagemagick"/>
|
---|
| 47 | <exclude name="bin/linux/imagemagick/**/*"/>
|
---|
[17422] | 48 |
|
---|
[17396] | 49 | </fileset>
|
---|
| 50 | </copy>
|
---|
| 51 | <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" includes="**/*"/>
|
---|
| 52 | </target>
|
---|
| 53 |
|
---|
| 54 | <target name="compress-core-component">
|
---|
| 55 | <sevenzip task="encode" input="components/core.comp" output="components/core.lzma" dictionnary="26"/>
|
---|
| 56 | </target>
|
---|
[17659] | 57 |
|
---|
| 58 | <!-- sourcecode core -->
|
---|
| 59 | <target name="prepare-sourcecode-core-component">
|
---|
| 60 | <delete dir="components/tmp/sourcecode-core"/>
|
---|
| 61 | <mkdir dir="components/tmp/sourcecode-core"/>
|
---|
| 62 |
|
---|
| 63 | <copy todir="components/tmp/sourcecode-core" overwrite="true">
|
---|
| 64 | <fileset dir="distributions/source">
|
---|
| 65 | <include name="macros/**/*"/>
|
---|
| 66 | <include name="images/**/*"/>
|
---|
| 67 | <include name="etc/**/*"/>
|
---|
| 68 | <include name="gli/**/*"/>
|
---|
| 69 | <include name="collect/**/*"/>
|
---|
| 70 | <include name="doc/**/*"/>
|
---|
| 71 | <include name="setup.bash"/>
|
---|
| 72 | </fileset>
|
---|
| 73 | </copy>
|
---|
| 74 | <zip destfile="components/sourcecode-core.comp" basedir="components/tmp/sourcecode-core" compress="false" includes="**/*"/>
|
---|
| 75 | </target>
|
---|
[17396] | 76 |
|
---|
[17659] | 77 | <target name="compress-sourcecode-core-component">
|
---|
| 78 | <sevenzip task="encode" input="components/sourcecode-core.comp" output="components/sourcecode-core.lzma" dictionnary="26"/>
|
---|
| 79 | </target>
|
---|
| 80 |
|
---|
| 81 | <!-- sourcecode -->
|
---|
[17396] | 82 | <target name="prepare-sourcecode-component">
|
---|
[17450] | 83 |
|
---|
| 84 | <delete dir="components/tmp/sourcecode"/>
|
---|
[17396] | 85 | <mkdir dir="components/tmp/sourcecode"/>
|
---|
[17450] | 86 |
|
---|
[17396] | 87 | <copy todir="components/tmp/sourcecode" overwrite="true">
|
---|
| 88 | <fileset dir="distributions/web">
|
---|
| 89 | <include name="common-src/**/*"/>
|
---|
| 90 | <include name="runtime-src/**/*"/>
|
---|
| 91 | <include name="build-src/**/*"/>
|
---|
| 92 | </fileset>
|
---|
| 93 | </copy>
|
---|
| 94 |
|
---|
| 95 | <zip destfile="components/sourcecode.comp" basedir="components/tmp/sourcecode" compress="false" includes="**/*"/>
|
---|
| 96 | </target>
|
---|
| 97 |
|
---|
| 98 | <target name="compress-sourcecode-component">
|
---|
| 99 | <sevenzip task="encode" input="components/sourcecode.comp" output="components/sourcecode.lzma" dictionnary="26"/>
|
---|
| 100 | </target>
|
---|
| 101 |
|
---|
[17659] | 102 | <!-- imagemagick -->
|
---|
[17644] | 103 | <target name="prepare-imagemagick-component">
|
---|
| 104 |
|
---|
| 105 | <delete dir="components/tmp/imagemagick"/>
|
---|
| 106 | <mkdir dir="components/tmp/imagemagick"/>
|
---|
| 107 |
|
---|
| 108 | <copy todir="components/tmp/imagemagick" overwrite="true">
|
---|
| 109 | <fileset dir="distributions/web/bin/linux">
|
---|
| 110 | <include name="imagemagick/**/*"/>
|
---|
| 111 | </fileset>
|
---|
| 112 | </copy>
|
---|
| 113 |
|
---|
| 114 | <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" includes="**/*"/>
|
---|
| 115 | </target>
|
---|
| 116 |
|
---|
| 117 | <target name="compress-imagemagick-component">
|
---|
| 118 | <sevenzip task="encode" input="components/imagemagick.comp" output="components/imagemagick.lzma" dictionnary="26"/>
|
---|
| 119 | </target>
|
---|
[17649] | 120 |
|
---|
[17396] | 121 | </project>
|
---|