diff --git a/build.xml b/build.xml
index c8ea0c17f07cdf64d0af41bc88a799de1640b803..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="extension/plugin/.*"/>
<exclude name="extract-uri-test.cpp"/>
<exclude name="helper/units-test.cpp"/>
- <exclude name="inkview.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">
<exclude name="main,o"/>
<exclude name="winmain,o"/>
+ <exclude name="inkview,o"/>
</fileset>
</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">
</libs>
</link>
</target>
+
+
+
+
+
+ <!--
+ ########################################################################
+ ## 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">
+ <flags>
+ --include-dir=${src}
+ </flags>
+ </rc>
+ <link command="${arch}g++" out="${build}/inkview.exe"
+ strip="true" symfile="${build}/inkview.dbg"
+ stripcommand="${archutil}strip"
+ objcopycommand="${archutil}objcopy"
+ >
+ <flags>
+ </flags>
+ <fileset dir="${build}">
+ < include name="inkviewres.o"/ >
+ <include name="obj/inkview.o"/>
+ <include name="libinkscape.a"/>
+ </fileset>
+ <libs>
+ -L${gtk}/lib
+ -lgtkmm-2.4 -lgdkmm-2.4 -lglibmm-2.4
+ -latkmm-1.6 -lpangomm-1.4 -lsigc-2.0
+ -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0
+ -lgdk_pixbuf-2.0
+ -lpangocairo-1.0 -lpangoft2-1.0 -lpangowin32-1.0 -lpango-1.0
+ -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lcairo
+ <!-- PERL -->
+ -L${gtk}/perl/lib/CORE -lperl58
+ <!-- PYTHON -->
+ -L${gtk}/python/libs -lpython24
+ ${gtk}/bin/libxml2.dll
+ ${gtk}/lib/iconv.lib
+ -lfreetype.dll -lfontconfig.dll
+ -llcms.dll
+ -lssl -lcrypto
+ -lpng -lpopt ${gtk}/lib/zdll.lib
+ -lgc -mwindows -lws2_32 -lintl -lm
+ </libs>
+ </link>
+ </target>
+
+
+ <!--
+ ########################################################################
+ ## T A R G E T : D I S T
+ ########################################################################
+ -->
<target name="dist" depends="link,i18n"
- description="generate the distribution" >
+ 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="${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
+########################################################################
+-->