Code

cairoify image outlines
[inkscape.git] / build.xml
index 77f89ae6ab7c87b17b82dc5b04501fcbff1310c0..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">
                <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"/>
             -DHAVE_CONFIG_H
             -DXP_WIN <!-- for JS -->
                        -D_INTL_REDIRECT_INLINE
+            -DRELAYTOOL_SSL="static const int libssl_is_present=1; static int __attribute__((unused)) libssl_symbol_is_present(char *s){ return 1; }" <!-- inkboard -->
             -DWITH_INKBOARD -DHAVE_SSL <!-- inkboard -->
         </defines>
         <includes>
        </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">
-    <msgfmt todir="${build}/locale" owndir="true">
+
+
+  <!--
+  ########################################################################
+  ## 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">
           </fileset>
        </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
+########################################################################
+-->