diff --git a/build.xml b/build.xml
index dcec565e1b06502b2d2dc1f4d0d878e8b978544e..45386c8c85443f99fc47b66d37d7777f11fdc578 100644 (file)
--- a/build.xml
+++ b/build.xml
+<!--
+ * Inkscape build file.
+ *
+ * See buildtool.cpp for use.
+ *
+ * Authors:
+ * Bob Jamison
+ * Others
+ *
+ * Copyright (C) 2006 Inkscape.org
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+-->
+
+
+
+
+
+<!--
+########################################################################
+## P R O J E C T : I N K S C A P E
+########################################################################
+-->
<project name="Inkscape" default="dist" basedir=".">
<description>
Build file for the Inkscape SVG editor. This file
</description>
<!-- set global properties for this build -->
- <property name="version" value="0.45"/>
+ <property name="version" value="0.46dev"/>
<property name="arch" value="i686-pc-mingw32-"/>
<!--<property name="archutil" value="${arch}"/>-->
<property name="archutil" value=""/>
<property name="build" location="build"/>
<property name="dist" location="inkscape"/>
- <target name="init">
- <!-- Create the build directory structure used by compile -->
+
+
+
+
+ <!--
+ ########################################################################
+ ## T A R G E T : I N I T
+ ########################################################################
+ -->
+ <target name="init"
+ description="Create the build directory structure used by compile">
+
<mkdir dir="${build}"/>
<mkdir dir="${dist}"/>
<copy file="${src}/helper/sp-marshal.h.mingw"
</makefile>
</target>
+
+
+
+
+ <!--
+ ########################################################################
+ ## T A R G E T : C O M P I L E
+ ########################################################################
+ -->
<target name="compile" depends="init"
- description="compile the source " >
+ description="compile the source to .o" >
+
<!-- Compile from source to build -->
<cc cc="${arch}gcc" cxx="${arch}g++"
destdir="${build}/obj">
<exclude name="ast/.*"/>
<exclude name="bonobo/.*"/>
<exclude name="deptool.cpp"/>
+ <exclude name="test-all.cpp"/>
<exclude name="dialogs/filedialog-win32.cpp"/>
<exclude name="display/testnr.cpp"/>
<exclude name="display/bezier-utils-test.cpp"/>
<exclude name="extract-uri-test.cpp"/>
<exclude name="helper/units-test.cpp"/>
<!-- exclude name="inkview.cpp"/-->
+ <exclude name="libnr/test-nr.cpp"/>
+ <exclude name="libnr/test-nr-main.cpp"/>
+ <exclude name="libnr/testnr.cpp"/>
<exclude name="libnr/in-svg-plane-test.cpp"/>
<exclude name="libnr/nr-compose-reference.cpp"/>
<exclude name="libnr/nr-compose-test.cpp"/>
<exclude name="round-test.cpp"/>
<exclude name="sp-gradient-test.cpp"/>
<exclude name="svg/ftos.cpp"/>
+ <exclude name="svg/test-svg.cpp"/>
+ <exclude name="svg/test-svg-main.cpp"/>
<exclude name="utest/.*"/>
<exclude name="widgets/test-widgets.cpp"/>
<exclude name="xml/quote-test.cpp"/>
<exclude name="xml/repr-action-test.cpp"/>
+ <exclude name="xml/test-xml.cpp"/>
+ <exclude name="xml/test-xml-main.cpp"/>
<exclude name="io/streamtest.cpp"/>
<!--JABBER-->
<exclude name="pedro/pedrogui.cpp"/>
</cc>
</target>
- <target name="lib" depends="compile">
+
+ <!--
+ ########################################################################
+ ## T A R G E T : L I B
+ ########################################################################
+ -->
+ <target name="lib" depends="compile"
+ description="create a static library">
<staticlib command="${archutil}ar crsv"
file="${build}/libinkscape.a">
<fileset dir="${build}/obj">
</staticlib>
</target>
- <target name="i18n" depends="compile">
+
+
+ <!--
+ ########################################################################
+ ## T A R G E T : I 1 8 N
+ ########################################################################
+ -->
+ <target name="i18n" depends="compile"
+ description="compile gettext .po files to .mo">
+
<msgfmt todir="${build}/locale" owndir="true"
out="LC_MESSAGES/inkscape.mo">
<fileset dir="po">
</msgfmt>
</target>
- <target name="link" depends="lib">
+
+
+
+
+ <!--
+ ########################################################################
+ ## T A R G E T : L I N K
+ ########################################################################
+ -->
+ <target name="link" depends="lib"
+ description="link objects and library to create executable">
+
<rc command="${archutil}windres"
file="${src}/inkscape.rc"
out="${build}/inkres.o">
</link>
</target>
- <target name="linkinkview" depends="lib">
+
+
+
+
+ <!--
+ ########################################################################
+ ## T A R G E T : L I N K I N K V I E W
+ ########################################################################
+ -->
+ <target name="linkinkview" depends="lib"
+ description="link objects and library to create Inkview executable">
+
<rc command="${archutil}windres"
file="${src}/inkview.rc"
out="${build}/inkviewres.o">
</link>
</target>
- <target name="dist" depends="link,i18n,linkinkview"
- description="generate the distribution" >
+
+
+ <!--
+ ########################################################################
+ ## T A R G E T : D I S T
+ ########################################################################
+ -->
+ <target name="dist" depends="link,i18n"
+ description="generate the distribution directory with all needed files">
+
<!-- Create the distribution directory -->
<copy file="${build}/inkscape.exe" todir="${dist}"/>
<copy file="${build}/inkscape.dbg" todir="${dist}"/>
- <copy file="${build}/inkview.exe" todir="${dist}"/>
- <copy file="${build}/inkview.dbg" todir="${dist}"/>
<copy file="AUTHORS" todir="${dist}"/>
<copy file="COPYING" todir="${dist}"/>
<copy file="COPYING.LIB" todir="${dist}"/>
<copy file="${gtk}/bin/xmlparse.dll" todir="${dist}"/>
<copy file="${gtk}/bin/jpeg62.dll" todir="${dist}"/>
<copy file="${gtk}/bin/libpng13.dll" todir="${dist}"/>
+ <copy file="${gtk}/bin/libtiff3.dll" todir="${dist}"/>
<copy file="${gtk}/bin/msvcr70.dll" todir="${dist}"/>
<copy file="${gtk}/bin/msvcr71.dll" todir="${dist}"/>
<copy file="${gtk}/bin/zlib1.dll" todir="${dist}"/>
<copy todir="${dist}/python"> <fileset dir="${gtk}/python/DLLs"/> </copy>
<copy todir="${dist}/python"> <fileset dir="${gtk}/python/Scripts"/> </copy>
+ </target>
+
+
+
+ <!--
+ ########################################################################
+ ## T A R G E T : D I S T - A L L
+ ########################################################################
+ -->
+ <target name="dist-all" depends="dist,linkinkview"
+ description="generate the distribution, along with inkview" >
+
+ <copy file="${build}/inkview.exe" todir="${dist}"/>
+ <copy file="${build}/inkview.dbg" todir="${dist}"/>
</target>
+
+
+
+ <!--
+ ########################################################################
+ ## T A R G E T : C L E A N
+ ########################################################################
+ -->
<target name="clean"
- description="clean up" >
- <!-- Delete the ${build} and ${dist} directory trees -->
+ description="clean up. deleting build and distro dirs" >
+
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
+
+
+
</project>
+<!--
+########################################################################
+## E N D
+########################################################################
+-->