build.xml revision 7f43eabc54033ee929b618ac0a726a67f860a37b
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler<!--
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler * Inkscape build file.
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler *
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler * See buildtool.cpp for use.
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler *
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler * Authors:
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler * Bob Jamison
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler * Others
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler *
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler * Copyright (C) 2006-2008 Inkscape.org
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler *
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler * This library is free software; you can redistribute it and/or
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler * modify it under the terms of the GNU Lesser General Public
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler * License as published by the Free Software Foundation; either
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler * version 2.1 of the License, or (at your option) any later version.
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler *
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler * This library is distributed in the hope that it will be useful,
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler * but WITHOUT ANY WARRANTY; without even the implied warranty of
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler * Lesser General Public License for more details.
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler *
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler * You should have received a copy of the GNU Lesser General Public
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler * License along with this library; if not, write to the Free Software
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler-->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler<!--
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler########################################################################
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler## P R O J E C T : I N K S C A P E
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler########################################################################
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler-->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler<project name="Inkscape" default="dist" basedir=".">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <description>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler Build file for the Inkscape SVG editor. This file
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler was written for GTK-2.10 on Win32, but it should work
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler well for other types of builds with only minor adjustments.
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler Note that the default target is 'dist'. You can execute other
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler targets instead, by "btool {target}", like "btool compile", if
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler you want to save time.
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </description>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!-- set global properties for this build -->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <property name="version" value="0.46+devel"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <property name="src" location="src"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <property name="lib" location="lib"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <property name="build" location="build"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <property name="dist" location="inkscape"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!-- Use these settings for the native compiler -->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!-- -->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <property name="arch" value="mingw32-"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <property name="archutil" value=""/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <property name="devlibs" location="c:/devlibs"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <property name="cxxtest" location="cxxtest"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!-- -->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!-- Use these settings for the cross compiler -->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!--
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <property name="arch" value="i686-pc-mingw32-"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <property name="archutil" value="${arch}"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <property name="devlibs" location="/target"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler -->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!-- Extra properties -->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <property name="refresh" value="false"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!--
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler This is for package-config. With these two settings, pkg-config
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler queries can be as simple as ${pcc.packageName} for cflags, and
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ${pcl.packageName} for libs. Dependencies are calculated automatically.
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler -->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <property name="pkg-config-path" location="${devlibs}/lib/pkgconfig"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <property name="pkg-config-prefix" location="${devlibs}"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!--
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ########################################################################
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ## T A R G E T : I N I T
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ########################################################################
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler -->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <target name="init"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler description=
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler "Do all preparatory tasks, like make directories and copy files">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <mkdir dir="${build}"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <mkdir dir="${build}/java"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <mkdir dir="${build}/java/classes"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <mkdir dir="${build}/java/lib"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <mkdir dir="${build}"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <mkdir dir="${dist}"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <copy file="${src}/helper/sp-marshal.h.mingw"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler tofile="${src}/helper/sp-marshal.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <copy file="${src}/helper/sp-marshal.cpp.mingw"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler tofile="${src}/helper/sp-marshal.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <makefile file="inkscape_version.h">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #define INKSCAPE_VERSION "${version}"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </makefile>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <makefile file="config.h">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #ifndef _CONFIG_H_
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #define _CONFIG_H_
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #ifndef WIN32
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #define WIN32
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #endif
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler /*######################################
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ## This is for require-config.h, whose
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ## purpose I cannot fathom.
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ######################################*/
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #define PACKAGE_TARNAME
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler /*######################################
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #### RESOURCE DIRECTORIES
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ######################################*/
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #define INKSCAPE_DATADIR "."
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #define PACKAGE_LOCALE_DIR "locale"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler /*######################################
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #### OTHER DEFINITIONS
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ######################################*/
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #define GETTEXT_PACKAGE "inkscape"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #define PACKAGE_STRING VERSION
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #define HAVE_GETOPT_H 1
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #define HAVE_STRING_H 1
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #define HAVE_LIBINTL_H 1
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #define HAVE_MALLOC_H 1
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #define HAVE_STDLIB_H 1
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #define HAVE_SYS_STAT_H 1
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #define HAVE_INTTYPES_H 1
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #define ENABLE_LCMS 1
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #define ENABLE_NLS 1
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #define HAVE_BIND_TEXTDOMAIN_CODESET 1
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler /* keep binreloc off */
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #define BR_PTHREADS 0
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #undef ENABLE_BINRELOC
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler /* CairoPDF options */
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #define HAVE_CAIRO_PDF 1
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #define PANGO_ENABLE_ENGINE 1
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #define RENDER_WITH_PANGO_CAIRO 1
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #define HAVE_GTK_WINDOW_FULLSCREEN 1
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler /* internal interpreter */
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #define WITH_PYTHON 1
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler /* shared whiteboard */
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #define WITH_INKBOARD 1
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #define HAVE_SSL 1
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler /* use poppler for pdf import? */
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #define HAVE_POPPLER 1
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #define HAVE_POPPLER_CAIRO 1
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler /* do we want bitmap manipulation? */
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #define WITH_IMAGE_MAGICK 1
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler /* Allow reading WordPerfect? */
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #define WITH_LIBWPG 1
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler #endif /* _CONFIG_H_ */
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </makefile>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </target>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!--
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ########################################################################
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ## T A R G E T : T O U C H A B O U T
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ########################################################################
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler -->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <target name="touchabout"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler description="update the modification time of aboutdialog.cpp">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!-- not good <touch file="${src}/ui/dialog/aboutdialog.cpp"/> -->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!-- better -->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <delete file="${build}/obj/ui/dialog/aboutdialog.o"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </target>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!--
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ########################################################################
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ## T A R G E T : C X X T E S T
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ########################################################################
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler -->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <target name="cxxtest" depends="init"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler description="generate test files" >
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!-- Generate CxxTest files -->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <cxxtestpart command="python ${cxxtest}/cxxtestgen.py"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler out="${src}/test-src.cpp">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <fileset dir="${src}">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="attributes-test.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="color-profile-test.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="dir-util-test.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="extract-uri-test.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="mod360-test.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="round-test.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="sp-gradient-test.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="sp-style-elem-test.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="syle-test.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="test-helpers.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="verbs-test.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </fileset>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </cxxtestpart>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <cxxtestpart command="python ${cxxtest}/cxxtestgen.py"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler out="${src}/display/test-display.cpp">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <fileset dir="${src}/display">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="bezier-utils-test.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </fileset>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </cxxtestpart>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <cxxtestpart command="python ${cxxtest}/cxxtestgen.py"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler out="${src}/helper/test-helper.cpp">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <fileset dir="${src}/helper">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="units-test.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </fileset>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </cxxtestpart>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <cxxtestpart command="python ${cxxtest}/cxxtestgen.py"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler out="${src}/libnr/test-nr.cpp">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <fileset dir="${src}/libnr">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="nr-types-test.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="nr-translate-test.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="nr-rotate-test.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="nr-scale-test.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="nr-point-fns-test.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="nr-rotate-fns-test.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="in-svg-plane-test.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="nr-matrix-test.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </fileset>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </cxxtestpart>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <cxxtestpart command="python ${cxxtest}/cxxtestgen.py"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler out="${src}/svg/test-svg.cpp">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <fileset dir="${src}/svg">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="css-ostringstream-test.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="stringstream-test.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="svg-affine-test.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="svg-color-test.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="svg-length-test.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="svg-path-test.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </fileset>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </cxxtestpart>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <cxxtestpart command="python ${cxxtest}/cxxtestgen.py"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler out="${src}/util/test-util.cpp">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <fileset dir="${src}/util">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="list-container-test.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </fileset>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </cxxtestpart>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <cxxtestpart command="python ${cxxtest}/cxxtestgen.py"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler out="${src}/xml/test-xml.cpp">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <fileset dir="${src}/xml">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="repr-action-test.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="quote-test.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </fileset>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </cxxtestpart>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <cxxtestroot command="python ${cxxtest}/cxxtestgen.py"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler out="${src}/test-main.cpp"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler template="${src}/selfname.tpl">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <fileset dir="${src}">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="MultiPrinter.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="PylogFormatter.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="TRPIFormatter.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </fileset>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </cxxtestroot>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </target>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!--
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ########################################################################
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ## T A R G E T : C O M P I L E
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ########################################################################
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler -->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <target name="compile" depends="cxxtest"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler description="compile the source to .o" >
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!-- Compile from source to build -->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <cc cc="${arch}gcc" cxx="${arch}g++"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler destdir="${build}/obj"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler continueOnError="true"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler refreshCache="${refresh}">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <fileset dir="${src}">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!-- THINGS TO EXCLUDE -->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="2geom/chebyshev.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="ast/.*"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="bonobo/.*"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="deptool.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!--<exclude name="test-main.cpp"/>-->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!--<exclude name="test-src.cpp"/>-->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="display/testnr.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="display/bezier-utils-test.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="dom/work/.*"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="dom/odf/SvgOdg.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="extension/api.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="extension/dxf2svg/.*"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="extension/implementation/plugin.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="extension/script/bindtest.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="extension/script/cpptest.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="extension/plugin/.*"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="extract-uri-test.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="helper/units-test.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!-- exclude name="inkview.cpp"/-->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!--<exclude name="libnr/test-nr.cpp"/>-->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="libnr/test-nr-main.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="libnr/testnr.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="libnr/in-svg-plane-test.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="libnr/nr-compose-reference.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="libnr/nr-compose-test.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="libnr/nr-matrix-test.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="libnr/nr-point-fns-test.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="libnr/nr-rotate-fns-test.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="libnr/nr-rotate-test.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="libnr/nr-scale-test.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="libnr/nr-translate-test.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="libnr/nr-types-test.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="livarot/Path-test.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="mod360-test.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="trace/potrace/potest.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="round-test.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="sp-gradient-test.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="style-test.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="svg/ftos.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!--<exclude name="svg/test-svg.cpp"/>-->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="svg/test-svg-main.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="svg/test-stubs.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="utest/.*"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="util/list-container-test.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="widgets/test-widgets.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="xml/quote-test.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="xml/repr-action-test.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!--<exclude name="xml/test-xml.cpp"/>-->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="xml/test-xml-main.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="io/streamtest.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!--JABBER-->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="pedro/pedrogui.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="pedro/pedrogui.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="pedro/work/.*"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!--WHITEBOARD-->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="ui/dialog/session-player.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="ui/dialog/whiteboard-connect.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="ui/dialog/whiteboard-sharewithchat.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="ui/dialog/whiteboard-sharewithuser.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="dialogs/whiteboard-connect-dialog.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="dialogs/whiteboard-common-dialog.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="dialogs/whiteboard-sharewithchat-dialog.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="dialogs/whiteboard-sharewithuser-dialog.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="jabber_whiteboard/node-tracker.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="jabber_whiteboard/node-utilities.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!--OVERLAP-->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="removeoverlap/placement_SolveVPSC.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="removeoverlap/placement_SolveVPSC.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="removeoverlap/test.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="removeoverlap/remove_rectangle_overlap-test.cpp"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="removeoverlap/remove_rectangle_overlap-test.h"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </fileset>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <excludeinc dir="${src}">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <file name="extension/param"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </excludeinc>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <flags>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler -Wall -Wformat -Werror=format-security -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler -O2
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler -mms-bitfields
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </flags>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <defines>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler -DVERSION=\"${version}\"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler -DHAVE_CONFIG_H
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler -D_INTL_REDIRECT_INLINE
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler -DHAVE_SSL
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler -DRELAYTOOL_SSL="static const int libssl_is_present=1; static int __attribute__((unused)) libssl_symbol_is_present(char *s){ return 1; }" <!-- inkboard -->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler -DPOPPLER_NEW_GFXFONT <!-- poppler changed the api for 0.8.3 -->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </defines>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <includes>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler -I${devlibs}/include
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!-- GTK / GTKMM -->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ${pcc.gtkmm-2.4}
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!-- OTHER -->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler -I${devlibs}/include/libxml2
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ${pcc.freetype2}
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ${pcc.cairo}
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ${pcc.poppler}
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler -I${devlibs}/include/gc
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ${pcc.libwpg-0.1} ${pcc.libwpg-stream-0.1}
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler -I${cxxtest}
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!-- PERL -->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!-- -Wno-comment -I${devlibs}/perl/lib/CORE -->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!-- PYTHON -->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler -I${devlibs}/python/include
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!-- JAVA -->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler -I${src}/bind/javainc -I${src}/bind/javainc/win32
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </includes>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </cc>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </target>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!--
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ########################################################################
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ## T A R G E T : L I B
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ########################################################################
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler -->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <target name="lib" depends="compile"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler description="create a static library">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <staticlib command="${archutil}ar crsv"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler file="${build}/libinkscape.a">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <fileset dir="${build}/obj">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="main.o"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="winmain.o"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="inkview.o"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!-- CxxTest -->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="obj/test-main.o"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="obj/test-src.o"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="obj/display/test-display.o"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="obj/helper/test-helper.o"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="obj/libnr/test-nr.o"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="obj/svg/test-svg.o"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="obj/util/test-util.o"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <exclude name="obj/xml/test-xml.o"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </fileset>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </staticlib>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </target>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!--
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ########################################################################
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ## T A R G E T : I 1 8 N
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ########################################################################
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler -->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <target name="i18n" depends="compile"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler description="compile gettext .po files to .mo">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <msgfmt todir="${build}/locale" owndir="true"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler out="LC_MESSAGES/inkscape.mo">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <fileset dir="po">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </fileset>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </msgfmt>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </target>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <!--
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ########################################################################
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ## T A R G E T : L I N K
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ########################################################################
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler -->
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <target name="link" depends="lib"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler description="link objects and library to create executable">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <rc command="${archutil}windres"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler file="${src}/inkscape.rc"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler out="${build}/inkres.o">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <flags>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler --include-dir=${src}
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </flags>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </rc>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <link command="${arch}g++" out="${build}/inkscape.exe"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler strip="true" symfile="${build}/inkscape.dbg"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler stripcommand="${archutil}strip"
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler objcopycommand="${archutil}objcopy">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <flags>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler -mwindows
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </flags>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <fileset dir="${build}">
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="inkres.o"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="obj/main.o"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="obj/winmain.o"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <include name="libinkscape.a"/>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler </fileset>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler <libs>
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler -L${devlibs}/lib
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ${pcl.poppler-cairo} ${pcl.poppler-glib} ${pcl.poppler}
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ${pcl.gtkmm-2.4} ${pcl.pangoft2} ${pcl.gthread-2.0}
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ${devlibs}/bin/libxml2.dll
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ${devlibs}/bin/libxslt.dll
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ${pcl.cairo} ${pcl.cairomm-1.0}
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ${pcl.libwpg-0.1} ${pcl.libwpg-stream-0.1}
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ${devlibs}/lib/iconv.lib
f6df6236fcf18524e049bba12b69704af32eff90Josh Andler ${pcl.ImageMagick++}
${pcl.fontconfig} ${pcl.freetype2}
-lssl -lcrypto
${pcl.lcms}
${pcl.gsl}
-lpng -ljpeg.dll -ltiff.dll -lpopt ${devlibs}/lib/zdll.lib
-lgc
-lws2_32 -lintl -lgdi32 -lcomdlg32 -lm
</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${devlibs}/lib
-lpoppler-cairo -lpoppler-glib -lpoppler.dll
${pcl.gtkmm-2.4}
<!-- PERL -->
-L${devlibs}/perl/lib/CORE -lperl58
<!-- PYTHON -->
-L${devlibs}/python/libs -lpython25
${devlibs}/bin/libxml2.dll
${devlibs}/bin/libxslt.dll
${devlibs}/lib/iconv.lib
-lcairo.dll -lcairomm-1.0.dll
-lwpg-0.1.dll -lwpg-stream-0.1.dll
-lMagick++ -lWand -lMagick
-lfreetype.dll -lfontconfig.dll
-llcms.dll
-lssl -lcrypto
-lpng -ljpeg.dll -ltiff.dll -lpopt ${devlibs}/lib/zdll.lib
-lgc -mwindows
-lws2_32 -lintl -lgdi32 -lcomdlg32 -lm
</libs>
</link>
</target>
<!--
########################################################################
## T A R G E T : L I N K C X X T E S T S
########################################################################
-->
<target name="linkcxxtests" depends="lib"
description="link objects and library to create executable">
<link command="${arch}g++" out="${build}/cxxtests.exe"
strip="true" symfile="${build}/cxxtests.dbg"
stripcommand="${archutil}strip"
objcopycommand="${archutil}objcopy">
<flags>
</flags>
<fileset dir="${build}">
<include name="obj/test-main.o"/>
<include name="obj/test-src.o"/>
<include name="obj/display/test-display.o"/>
<include name="obj/helper/test-helper.o"/>
<include name="obj/libnr/test-nr.o"/>
<include name="obj/svg/test-svg.o"/>
<include name="obj/util/test-util.o"/>
<include name="obj/xml/test-xml.o"/>
<include name="libinkscape.a"/>
</fileset>
<libs>
-L${devlibs}/lib
${pcl.poppler-cairo} ${pcl.poppler-glib} ${pcl.poppler}
${pcl.gtkmm-2.4} ${pcl.pangoft2} ${pcl.gthread-2.0}
${devlibs}/bin/libxml2.dll
${devlibs}/bin/libxslt.dll
${pcl.cairo} ${pcl.cairomm-1.0}
${pcl.libwpg-0.1} ${pcl.libwpg-stream-0.1}
${devlibs}/lib/iconv.lib
${pcl.ImageMagick++}
${pcl.fontconfig} ${pcl.freetype2}
-lssl -lcrypto
${pcl.lcms}
${pcl.gsl}
-lpng -ljpeg.dll -ltiff.dll -lpopt ${devlibs}/lib/zdll.lib
-lgc
-lws2_32 -lintl -lgdi32 -lcomdlg32 -lm
</libs>
</link>
</target>
<!--
########################################################################
## 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 todir="${dist}" file="${build}/inkscape.exe"/>
<copy todir="${dist}" file="${build}/inkscape.dbg"/>
<copy todir="${dist}" file="AUTHORS"/>
<copy todir="${dist}" file="COPYING"/>
<copy todir="${dist}" file="COPYING.LIB"/>
<copy todir="${dist}" file="NEWS"/>
<copy todir="${dist}" file="README"/>
<copy todir="${dist}" file="TRANSLATORS"/>
<copy todir="${dist}" file="${devlibs}/bin/libatkmm-1.6-1.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/libglibmm-2.4-1.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/libgtkmm-2.4-1.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/libgdkmm-2.4-1.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/libpangomm-1.4-1.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/libcairomm-1.0-1.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/libsigc-2.0-0.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/freetype6.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/libatk-1.0-0.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/libgdk-win32-2.0-0.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/libgdk_pixbuf-2.0-0.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/libglib-2.0-0.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/libgmodule-2.0-0.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/libgobject-2.0-0.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/libgtk-win32-2.0-0.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/libgthread-2.0-0.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/libcairo-2.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/libpoppler-3.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/libpangocairo-1.0-0.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/libpango-1.0-0.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/libpangoft2-1.0-0.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/libpangowin32-1.0-0.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/freetype6.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/libfontconfig-1.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/libxml2.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/libxslt.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/libexpat.dll"/>
<!--<copy file="${devlibs}/bin/libexpat.dll" tofile="${dist}/xmlparse.dll"/>-->
<copy todir="${dist}" file="${devlibs}/bin/libwpg-0.1.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/libwpg-stream-0.1.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/libwpd-0.8.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/libwpd-stream-0.8.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/jpeg62.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/libpng13.dll"/>
<!-- GTK changed their dep file name for PNG! :-( -->
<copy todir="${dist}" file="${devlibs}/bin/libpng12-0.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/libtiff3.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/msvcr70.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/msvcr71.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/zlib1.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/iconv.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/libpopt-0.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/liblcms-1.dll"/>
<copy todir="${dist}" file="${devlibs}/bin/intl.dll"/>
<copy file="${devlibs}/bin/intl.dll" tofile="${dist}/libintl-2.dll"/>
<!-- MSGFMT files -->
<copy todir="${dist}">
<fileset dir="${build}/locale">
<exclude name=".*\.am"/>
</fileset>
</copy>
<mkdir dir="${dist}/data"/>
<mkdir dir="${dist}/locale"/>
<mkdir dir="${dist}/modules"/>
<mkdir dir="${dist}/plugins"/>
<!-- GTK -->
<copy todir="${dist}"> <fileset dir="${devlibs}/etc"/> </copy>
<copy todir="${dist}/lib"> <fileset dir="${devlibs}/lib/gtk-2.0"/> </copy>
<copy todir="${dist}/lib"> <fileset dir="${devlibs}/lib/glib-2.0"/> </copy>
<copy todir="${dist}">
<fileset dir="share">
<exclude name=".*\.am"/>
</fileset>
</copy>
<copy todir="${dist}/share"> <fileset dir="${devlibs}/share/locale"/> </copy>
<copy todir="${dist}/share"> <fileset dir="${devlibs}/share/themes"/> </copy>
<copy todir="${dist}/share"> <fileset dir="${devlibs}/share/poppler"/> </copy>
<copy todir="${dist}" file="${devlibs}/bin/gdb.exe"/>
<!-- Necessary to run extensions on windows if it is not in the path -->
<copy todir="${dist}" file="${devlibs}/bin/gspawn-win32-helper.exe"/>
<copy todir="${dist}" file="${devlibs}/bin/gspawn-win32-helper-console.exe"/>
<!-- PERL -->
<copy todir="${dist}" file="${devlibs}/perl/bin/perl58.dll"/>
<!-- PYTHON -->
<copy todir="${dist}" file="${devlibs}/python/python25.dll"/>
<copy todir="${dist}/python" file="${devlibs}/python/python.exe" />
<copy todir="${dist}/python" file="${devlibs}/python/pythonw.exe"/>
<copy todir="${dist}/python"> <fileset dir="${devlibs}/python/Lib"/> </copy>
<copy todir="${dist}/python"> <fileset dir="${devlibs}/python/DLLs"/> </copy>
<copy todir="${dist}/python"> <fileset dir="${devlibs}/python/Scripts"/> </copy>
<!--<copy file="${devlibs}/share/themes/MS-Windows/gtk-2.0/gtkrc" todir="${dist}/etc/gtk-2.0"/>-->
<makefile file="${dist}/etc/gtk-2.0/gtkrc">
gtk-icon-sizes = "gtk-menu=16,16:gtk-small-toolbar=16,16:gtk-large-toolbar=24,24:gtk-dnd=32,32:inkscape-decoration=16,16"
gtk-toolbar-icon-size = small-toolbar
# disable images in buttons. i've only seen ugly delphi apps use this feature.
gtk-button-images = 0
# enable/disable images in menus. most "stock" microsoft apps don't use these, except sparingly.
# the office apps use them heavily, though.
gtk-menu-images = 1
# use the win32 button ordering instead of the GNOME HIG one, where applicable
gtk-alternative-button-order = 1
style "msw-default"
{
GtkWidget::interior-focus = 1
GtkOptionMenu::indicator-size = { 9, 5 }
GtkOptionMenu::indicator-spacing = { 7, 5, 2, 2 }
GtkSpinButton::shadow-type = in
# Owen and I disagree that these should be themable
#GtkUIManager::add-tearoffs = 0
#GtkComboBox::add-tearoffs = 0
GtkComboBox::appears-as-list = 1
GtkComboBox::focus-on-click = 0
GOComboBox::add_tearoffs = 0
GtkTreeView::allow-rules = 0
GtkTreeView::expander-size = 12
GtkExpander::expander-size = 12
GtkScrolledWindow::scrollbar_spacing = 1
GtkSeparatorMenuItem::horizontal-padding = 2
engine "wimp"
{
}
}
class "*" style "msw-default"
</makefile>
</target>
<!--
########################################################################
## T A R G E T : JAVAC
########################################################################
-->
<target name="javac" depends="init"
description="compile java binding classes">
<javac srcdir="${src}/bind/java" destdir="${build}/java/classes"/>
</target>
<!--
########################################################################
## T A R G E T : JAR
########################################################################
-->
<target name="jar" depends="javac"
description="pack java classes and resources into a jar file">
<copy todir="${build}/java/classes"> <fileset dir="${devlibs}/bind/data"/> </copy>
<jar basedir="${build}/java/classes" destfile="${build}/java/lib/inkscape.jar"/>
</target>
<!--
########################################################################
## T A R G E T : BINDDIST
########################################################################
-->
<target name="binddist" depends="jar"
description="pack java classes and resources into a jar file">
<copy todir="${dist}/share/bind"> <fileset dir="${devlibs}/bind/java"/> </copy>
<copy todir="${dist}/share/bind/java"> <fileset dir="${build}/java/lib"/> </copy>
</target>
<!--
########################################################################
## T A R G E T : BINDCLEAN
########################################################################
-->
<target name="bindclean" depends=""
description="clean up java binding classes">
<delete dir="${build}/java"/>
</target>
<!--
########################################################################
## T A R G E T : D I S T - A L L
########################################################################
-->
<target name="dist-all" depends="dist"
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" depends="bindclean"
description="clean up. deleting build and distro dirs" >
<delete dir="${build}"/>
<delete dir="${dist}"/>
<delete file="build.dep"/>
<delete file="config.h"/>
<delete file="${src}/test-main.cpp"/>
<delete file="${src}/test-src.cpp"/>
<delete file="${src}/display/test-display.cpp"/>
<delete file="${src}/helper/test-helper.cpp"/>
<delete file="${src}/libnr/test-nr.cpp"/>
<delete file="${src}/svg/test-svg.cpp"/>
<delete file="${src}/util/test-util.cpp"/>
<delete file="${src}/xml/test-xml.cpp"/>
</target>
</project>
<!--
########################################################################
## E N D
########################################################################
-->