[17377] | 1 | <?xml version="1.0" encoding="utf-8" ?>
|
---|
[17422] | 2 | <project name="wirk2-create-components" default="create-components">
|
---|
[17377] | 3 |
|
---|
[17652] | 4 | <!-- create components from the distribution folder -->
|
---|
[17472] | 5 |
|
---|
[17652] | 6 | <!-- 1st level -->
|
---|
[17377] | 7 | <target name="create-components">
|
---|
[17472] | 8 | <antcall target="prepare-components" />
|
---|
| 9 | <antcall target="compress-components" />
|
---|
[17377] | 10 | </target>
|
---|
| 11 |
|
---|
[17652] | 12 | <!-- 2nd level -->
|
---|
[17472] | 13 | <target name="prepare-components">
|
---|
[17377] | 14 | <antcall target="prepare-core-component" />
|
---|
| 15 | <antcall target="prepare-imagemagick-component" />
|
---|
[17472] | 16 | <antcall target="prepare-ghostscript-component" />
|
---|
| 17 | <antcall target="prepare-sourcecode-component" />
|
---|
[17652] | 18 | <antcall target="prepare-sourcecode-core-component" />
|
---|
[17377] | 19 | </target>
|
---|
| 20 |
|
---|
[17472] | 21 | <target name="compress-components">
|
---|
| 22 | <antcall target="compress-core-component" />
|
---|
| 23 | <antcall target="compress-imagemagick-component" />
|
---|
| 24 | <antcall target="compress-ghostscript-component" />
|
---|
| 25 | <antcall target="compress-sourcecode-component" />
|
---|
[17652] | 26 | <antcall target="compress-sourcecode-core-component" />
|
---|
[17377] | 27 | </target>
|
---|
| 28 |
|
---|
[17652] | 29 | <!-- 3rd level -->
|
---|
[17377] | 30 | <target name="prepare-core-component">
|
---|
| 31 | <!-- delete old stuff to create new components -->
|
---|
[17428] | 32 | <delete dir="components/tmp/core" quiet="true"/>
|
---|
[17427] | 33 | <mkdir dir="components/tmp/core"/>
|
---|
[17377] | 34 |
|
---|
| 35 | <copy todir="components/tmp/core" overwrite="true">
|
---|
| 36 | <fileset dir="distributions/web">
|
---|
[17427] | 37 | <include name="**/*"/>
|
---|
[17422] | 38 |
|
---|
[17427] | 39 | <!-- exclude imagemagick -->
|
---|
[17437] | 40 | <exclude name="bin/windows/imagemagick"/>
|
---|
[17447] | 41 | <exclude name="bin/windows/imagemagick/**/*"/>
|
---|
[17422] | 42 |
|
---|
[17427] | 43 | <!-- exclude ghostscript -->
|
---|
[17437] | 44 | <exclude name="bin/windows/ghostscript"/>
|
---|
[17447] | 45 | <exclude name="bin/windows/ghostscript/**/*"/>
|
---|
[17422] | 46 |
|
---|
[17427] | 47 | <!-- exclude sourcecode -->
|
---|
[17437] | 48 | <exclude name="common-src"/>
|
---|
[17447] | 49 | <exclude name="common-src/**/*"/>
|
---|
[17437] | 50 | <exclude name="runtime-src"/>
|
---|
[17447] | 51 | <exclude name="runtime-src/**/*"/>
|
---|
[17437] | 52 | <exclude name="build-src"/>
|
---|
[17447] | 53 | <exclude name="build-src/**/*"/>
|
---|
[17377] | 54 |
|
---|
| 55 | </fileset>
|
---|
| 56 | </copy>
|
---|
[17428] | 57 |
|
---|
[17377] | 58 | <zip destfile="components/core.comp" basedir="components/tmp/core" compress="false" />
|
---|
| 59 | </target>
|
---|
| 60 |
|
---|
| 61 |
|
---|
| 62 | <target name="compress-core-component">
|
---|
[17414] | 63 | <!-- <sevenzip task="encode" input="${basedir}/components/core.comp" output="${basedir}/components/core.lzma" dictionnary="26"/> -->
|
---|
| 64 | <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 core.lzma core.comp"/></exec>
|
---|
[17377] | 65 | </target>
|
---|
| 66 |
|
---|
| 67 |
|
---|
| 68 |
|
---|
| 69 | <target name="prepare-imagemagick-component">
|
---|
[17428] | 70 | <delete dir="components/tmp/imagemagick" quiet="true"/>
|
---|
[17427] | 71 | <mkdir dir="components/tmp/imagemagick"/>
|
---|
[17377] | 72 | <copy todir="components/tmp/imagemagick" overwrite="true">
|
---|
| 73 | <fileset dir="distributions/web/bin/windows/">
|
---|
| 74 | <include name="imagemagick/**/*"/>
|
---|
| 75 | </fileset>
|
---|
| 76 | </copy>
|
---|
| 77 |
|
---|
| 78 | <zip destfile="components/imagemagick.comp" basedir="components/tmp/imagemagick" compress="false" />
|
---|
| 79 | </target>
|
---|
| 80 |
|
---|
| 81 | <target name="compress-imagemagick-component">
|
---|
[17414] | 82 | <!-- <sevenzip task="encode" input="${basedir}/components/imagemagick.comp" output="${basedir}/components/imagemagick.lzma" dictionnary="26"/> -->
|
---|
| 83 | <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 imagemagick.lzma imagemagick.comp"/></exec>
|
---|
[17377] | 84 | </target>
|
---|
| 85 |
|
---|
| 86 |
|
---|
| 87 |
|
---|
| 88 | <target name="prepare-ghostscript-component">
|
---|
[17428] | 89 | <delete dir="components/tmp/ghostscript" quiet="true"/>
|
---|
[17427] | 90 | <mkdir dir="components/tmp/ghostscript"/>
|
---|
[17377] | 91 | <copy todir="components/tmp/ghostscript" overwrite="true">
|
---|
| 92 | <fileset dir="distributions/web/bin/windows/">
|
---|
| 93 | <include name="ghostscript/**/*"/>
|
---|
| 94 | </fileset>
|
---|
| 95 | </copy>
|
---|
| 96 |
|
---|
| 97 | <zip destfile="components/ghostscript.comp" basedir="components/tmp/ghostscript" compress="false" />
|
---|
| 98 | </target>
|
---|
| 99 |
|
---|
| 100 | <target name="compress-ghostscript-component">
|
---|
[17414] | 101 | <!-- <sevenzip task="encode" input="${basedir}/components/ghostscript.comp" output="${basedir}/components/ghostscript.lzma" dictionnary="26"/> -->
|
---|
| 102 | <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 ghostscript.lzma ghostscript.comp"/></exec>
|
---|
[17377] | 103 | </target>
|
---|
| 104 |
|
---|
| 105 |
|
---|
| 106 |
|
---|
| 107 | <target name="prepare-sourcecode-component">
|
---|
[17428] | 108 | <delete dir="components/tmp/sourcecode" quiet="true"/>
|
---|
[17427] | 109 | <mkdir dir="components/tmp/sourcecode"/>
|
---|
[17377] | 110 | <copy todir="components/tmp/sourcecode" overwrite="true">
|
---|
| 111 | <fileset dir="distributions/web">
|
---|
| 112 | <include name="common-src/**/*"/>
|
---|
| 113 | <include name="runtime-src/**/*"/>
|
---|
| 114 | <include name="build-src/**/*"/>
|
---|
| 115 | </fileset>
|
---|
| 116 | </copy>
|
---|
| 117 |
|
---|
| 118 | <zip destfile="components/sourcecode.comp" basedir="components/tmp/sourcecode" compress="false" />
|
---|
[17712] | 119 | <zip destfile="components/sourcecode.zip" basedir="components/tmp/sourcecode" compress="true" />
|
---|
[17377] | 120 | </target>
|
---|
| 121 |
|
---|
| 122 | <target name="compress-sourcecode-component">
|
---|
[17414] | 123 | <!-- <sevenzip task="encode" input="${basedir}/components/sourcecode.comp" output="${basedir}/components/sourcecode.lzma" dictionnary="26"/> -->
|
---|
| 124 | <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 sourcecode.lzma sourcecode.comp"/></exec>
|
---|
[17377] | 125 | </target>
|
---|
[17652] | 126 |
|
---|
| 127 | <target name="prepare-sourcecode-core-component">
|
---|
| 128 | <delete dir="components/tmp/sourcecode-core"/>
|
---|
| 129 | <mkdir dir="components/tmp/sourcecode-core"/>
|
---|
| 130 |
|
---|
| 131 | <copy todir="components/tmp/sourcecode-core" overwrite="true">
|
---|
| 132 | <fileset dir="distributions/source">
|
---|
| 133 | <include name="macros/**/*"/>
|
---|
| 134 | <include name="images/**/*"/>
|
---|
| 135 | <include name="etc/**/*"/>
|
---|
| 136 | <include name="gli/**/*"/>
|
---|
| 137 | <include name="collect/**/*"/>
|
---|
| 138 | <include name="doc/**/*"/>
|
---|
| 139 | <include name="setup.bash"/>
|
---|
| 140 | </fileset>
|
---|
| 141 | </copy>
|
---|
| 142 | <zip destfile="components/sourcecode-core.comp" basedir="components/tmp/sourcecode-core" compress="false" includes="**/*"/>
|
---|
| 143 | </target>
|
---|
[17377] | 144 |
|
---|
[17652] | 145 | <target name="compress-sourcecode-core-component">
|
---|
| 146 | <!--<sevenzip task="encode" input="components/sourcecode-core.comp" output="components/sourcecode-core.lzma" dictionnary="26"/>-->
|
---|
| 147 | <exec executable="7z.exe" dir="components"><arg line="a -t7z -mx=9 sourcecode-core.lzma sourcecode-core.comp"/></exec>
|
---|
| 148 | </target>
|
---|
| 149 |
|
---|
[17377] | 150 |
|
---|
[17652] | 151 |
|
---|
[17377] | 152 | </project>
|
---|