updated build file

This commit is contained in:
Manindra Moharana
2014-06-24 23:16:58 +05:30
parent a95f7ae984
commit ea930d2015

View File

@@ -1,11 +1,43 @@
<?xml version="1.0"?>
<project name="Processing PDE" default="build">
<project name="PDE X" default="build">
<property file="build.properties" />
<!-- Figure out the platform. -->
<condition property="platform" value="macosx">
<os family="mac" />
</condition>
<condition property="platform" value="windows">
<os family="windows" />
</condition>
<condition property="platform" value="linux">
<and>
<os family="unix" />
<not>
<os family="mac" />
</not>
</and>
</condition>
<!-- Figure out the platform-specific output directory. -->
<condition property="target.path" value="macosx/work/Processing.app/Contents/Java">
<os family="mac" />
</condition>
<condition property="target.path" value="linux/work">
<os family="unix" />
</condition>
<condition property="target.path" value="windows/work">
<os family="windows" />
</condition>
<target name="clean" description="Clean the build directories">
<delete dir="bin" />
<delete file="mode/${lib.name}.jar" />
<echo message="Platform is ${platform}." />
</target>
<target name="compile" description="Compile sources">
@@ -49,6 +81,7 @@
<jar basedir="bin" destfile="mode/${lib.name}.jar" />
</target>
<target name="install" depends="build" description="Quick install to sketchbook">
<copy todir="${sketchbook.location}/modes/${lib.name}/mode">
<fileset file="mode/${lib.name}.jar" />
@@ -86,7 +119,7 @@
</copy>
<copy todir="${bundle}">
<fileset file="keywords.txt" />
<fileset file="keywords.txt" />
</copy>
<copy todir="${bundle}">
<fileset file="mode.properties" />
@@ -97,12 +130,12 @@
</target>
<target name="package_zip" depends="package" description="Create zip file for distribution">
<property name="v" value="_v"/>
<property name="zipStr" value=".zip"/>
<zip destfile="${dist}/${lib.name}${v}${prettyVersion}${zipStr}"
<property name="v" value="_v"/>
<property name="zipStr" value=".zip"/>
<zip destfile="${dist}/${lib.name}${v}${prettyVersion}${zipStr}"
basedir="${dist}/"
excludes="**/.DS_Store"/>
</target>
</target>
<target name="full_install" depends="package" description="Full install to sketchbook">
<delete dir="${sketchbook.location}/modes/${lib.name}" />