Skip to content

Commit

Permalink
Refactor build process for parallel lc-cmp symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
ktgw0316 committed Dec 10, 2018
1 parent a8bae7e commit 2dea2f5
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 21 deletions.
12 changes: 8 additions & 4 deletions lightcrafts/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@

<target name="javac" depends="resolve">
<exec executable="${MAKE}" dir="products" failonerror="true"
vmlauncher="true"/>
vmlauncher="true">
<arg value="-j"/>
</exec>

<mkdir dir="extbuild"/>
<javac srcdir="extsrc" destdir="extbuild" includeantruntime="false"
Expand Down Expand Up @@ -228,9 +230,11 @@
<!--===== Clean up =======================================================-->

<target name="clean-up">
<delete dir="build"/>
<delete dir="javah"/>
<delete dir="extbuild"/>
<parallel>
<delete dir="build"/>
<delete dir="javah"/>
<delete dir="extbuild"/>
</parallel>
<exec executable="${MAKE}" dir="jnisrc">
<arg value="-j"/>
<arg value="${clean-method}"/>
Expand Down
16 changes: 10 additions & 6 deletions linux/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@
<target name="common">
<ant dir="${common-dir}" target="jar"/>
<exec executable="${MAKE}" dir="products" failonerror="true"
vmlauncher="true"/>
vmlauncher="true">
<arg value="-j"/>
</exec>
</target>

<target name="javac" depends="common">
Expand Down Expand Up @@ -188,11 +190,13 @@
<target name="distclean">
<ant dir="${common-dir}" target="distclean"/>
<ant dir="help" target="clean"/>
<delete dir="archive"/>
<delete dir="build"/>
<delete dir="javah"/>
<delete dir="webstart"/>
<delete file="LightZone.tar.gz"/>
<parallel>
<delete dir="archive"/>
<delete dir="build"/>
<delete dir="javah"/>
<delete dir="webstart"/>
<delete file="LightZone.tar.gz"/>
</parallel>
<exec executable="${MAKE}" dir="products">
<arg value="distclean"/>
</exec>
Expand Down
6 changes: 4 additions & 2 deletions linux/help/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@
</target>

<target name="clean">
<delete file="lightzonehelp.jar"/>
<delete dir="build"/>
<parallel>
<delete file="lightzonehelp.jar"/>
<delete dir="build"/>
</parallel>
</target>

</project>
12 changes: 8 additions & 4 deletions macosx/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
<target name="common">
<ant dir="${common-dir}" target="jar"/>
<exec executable="make" dir="products" failonerror="true"
vmlauncher="false"/>
vmlauncher="false">
<arg value="-j"/>
</exec>
</target>

<target name="javac" depends="common">
Expand Down Expand Up @@ -204,9 +206,11 @@

<target name="clean-up">
<ant dir="${common-dir}" target="${clean-method}"/>
<delete dir="build"/>
<delete dir="javah"/>
<delete dir="${app-dir}"/>
<parallel>
<delete dir="build"/>
<delete dir="javah"/>
<delete dir="${app-dir}"/>
</parallel>
<exec executable="make" dir="dmg">
<arg value="-j"/>
<arg value="${clean-method}"/>
Expand Down
14 changes: 9 additions & 5 deletions windows/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@
<target name="common">
<ant dir="${common-dir}" target="jar"/>
<exec executable="make" dir="products" failonerror="true"
vmlauncher="false"/>
vmlauncher="false">
<arg value="-j"/>
</exec>
</target>

<target name="javac" depends="common">
Expand Down Expand Up @@ -213,9 +215,12 @@

<target name="clean-up">
<ant dir="${common-dir}" target="${clean-method}"/>
<delete dir="build"/>
<delete dir="javah"/>
<delete file="${installer-name}"/>
<parallel>
<delete dir="build"/>
<delete dir="javah"/>
<delete file="${installer-name}"/>
<delete file="products/lightzone.jvmargs"/>
</parallel>
<exec executable="make" dir="helpers">
<arg value="${clean-method}"/>
</exec>
Expand All @@ -226,7 +231,6 @@
<arg value="-j"/>
<arg value="${clean-method}"/>
</exec>
<delete file="products/lightzone.jvmargs"/>
<antcall target="cc-clean"/>
</target>

Expand Down

0 comments on commit 2dea2f5

Please sign in to comment.