Code

cairoify image outlines
[inkscape.git] / build.xml
index b3e06e7721aa5453baa61ef48c3d9d88f2c7b5e9..30c9549ef09a72b1a85d9a366c66eff5e105becd 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -1,3 +1,38 @@
+<!--
+ * Inkscape build file.
+ *
+ * See buildtool.cpp for use.
+ *
+ * Authors:
+ *   Bob Jamison
+ *   Others 
+ *
+ * Copyright (C) 2006-2007 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
@@ -6,7 +41,7 @@
     </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"
 
         #define HAVE_GTK_WINDOW_FULLSCREEN    1
 
-        #define g_ascii_strtod fixed_g_ascii_strtod
-
         #endif /* _CONFIG_H_ */
     </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">
        </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}"/>
+    <delete file="build.dep"/>
+
   </target>
+
+
+
 </project>
+<!--
+########################################################################
+## E N D
+########################################################################
+-->