X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=build.xml;h=0d917ca71bc02c9e441d4f3265d622c3cb6a7259;hb=b47bbb99d13ac15ca1522f89386db1fb22104a55;hp=bbe288166ccc30617fa108ba3310a54b30a911b3;hpb=62d37a4d5f825304593665ab77a0ab91db82bd71;p=inkscape.git diff --git a/build.xml b/build.xml index bbe288166..0d917ca71 100644 --- a/build.xml +++ b/build.xml @@ -7,7 +7,7 @@ * Bob Jamison * Others * - * Copyright (C) 2006-2007 Inkscape.org + * Copyright (C) 2006-2008 Inkscape.org * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -26,33 +26,58 @@ - - - + Build file for the Inkscape SVG editor. This file was written for GTK-2.10 on Win32, but it should work well for other types of builds with only minor adjustments. + Note that the default target is 'dist'. You can execute other + targets instead, by "btool {target}", like "btool compile", if + you want to save time. - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + description= + "Do all preparatory tasks, like make directories and copy files"> + + + + + - - #define INKSCAPE_VERSION "${version}+devel" + + + namespace Inkscape { + char const *version_string = "${version} r${svn.revision}"; + } #ifndef _CONFIG_H_ @@ -109,6 +143,8 @@ #define HAVE_MALLOC_H 1 #define HAVE_STDLIB_H 1 #define HAVE_SYS_STAT_H 1 + #define HAVE_INTTYPES_H 1 + #define HAVE_OPENMP 1 #define ENABLE_LCMS 1 @@ -125,23 +161,121 @@ #define RENDER_WITH_PANGO_CAIRO 1 #define HAVE_GTK_WINDOW_FULLSCREEN 1 + + /* internal interpreter */ + #define WITH_PYTHON 1 + + /* shared whiteboard */ + #define WITH_INKBOARD 1 + #define HAVE_SSL 1 + + /* use poppler for pdf import? */ + #define HAVE_POPPLER 1 + #define HAVE_POPPLER_CAIRO 1 + + /* do we want bitmap manipulation? */ + #define WITH_IMAGE_MAGICK 1 + + /* Allow reading WordPerfect? */ + #define WITH_LIBWPG 1 + + /* Do we support SVG Fonts? */ + #define ENABLE_SVG_FONTS 1 + + /* Do we want experimental, unsupported, unguaranteed, etc., LivePathEffects enabled? */ + // #define LPE_ENABLE_TEST_EFFECTS 1 + + #define HAVE_ASPELL 1 #endif /* _CONFIG_H_ */ - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -150,125 +284,122 @@ ## T A R G E T : C O M P I L E ######################################################################## --> - - + destdir="${build}/obj" + continueOnError="true" + refreshCache="${refresh}"> + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - + + + - - - - - - + + + + + + + + + + + + + + + + + + + + - -Wall -O3 + -Wall -Wformat -Werror=format-security -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch + -O2 -mms-bitfields + -fopenmp -DVERSION=\"${version}\" -DHAVE_CONFIG_H - -DXP_WIN - -D_INTL_REDIRECT_INLINE + -D_INTL_REDIRECT_INLINE + -DHAVE_SSL -DRELAYTOOL_SSL="static const int libssl_is_present=1; static int __attribute__((unused)) libssl_symbol_is_present(char *s){ return 1; }" - -DWITH_INKBOARD -DHAVE_SSL + -DPOPPLER_NEW_GFXFONT - -I${gtk}/include - - -I${gtk}/include/glibmm-2.4 - -I${gtk}/lib/glibmm-2.4/include - -I${gtk}/include/gtkmm-2.4 - -I${gtk}/lib/gtkmm-2.4/include - -I${gtk}/include/gdkmm-2.4 - -I${gtk}/lib/gdkmm-2.4/include - -I${gtk}/include/pangomm-1.4 - -I${gtk}/include/atkmm-1.6 - -I${gtk}/include/cairomm-1.0 - -I${gtk}/include/sigc++-2.0 - -I${gtk}/lib/sigc++-2.0/include - -I${gtk}/include/gtk-2.0 - -I${gtk}/lib/gtk-2.0/include - -I${gtk}/include/atk-1.0 - -I${gtk}/include/pango-1.0 - -I${gtk}/include/glib-2.0 - -I${gtk}/lib/glib-2.0/include - - -I${gtk}/include/libxml2 - -I${gtk}/include/freetype2 - -I${gtk}/include/cairo - - -Wno-comment -I${gtk}/perl/lib/CORE - - -I${gtk}/python/include + -I${devlibs}/include + + ${pcc.gtkmm-2.4} + + -I${devlibs}/include/libxml2 + ${pcc.freetype2} + ${pcc.cairo} + ${pcc.poppler} + -I${devlibs}/include/gc + ${pcc.libwpg-0.1} ${pcc.libwpg-stream-0.1} + -I${cxxtest} + + + + -I${devlibs}/python/include + + -I${src}/bind/javainc -I${src}/bind/javainc/win32 - + @@ -281,12 +412,22 @@ description="create a static library"> - - - - - - + + + + + + + + + + + + + + + + @@ -301,9 +442,9 @@ - - - + + + @@ -319,46 +460,47 @@ description="link objects and library to create executable"> - - --include-dir=${src} - - + file="${src}/inkscape.rc" + out="${build}/inkres.o"> + + --include-dir=${src} + + + objcopycommand="${archutil}objcopy"> + -mwindows + -mthreads - - - - - - - - -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 - - -L${gtk}/perl/lib/CORE -lperl58 - - -L${gtk}/python/libs -lpython24 - ${gtk}/bin/libxml2.dll - ${gtk}/lib/iconv.lib - -lfreetype.dll -lfontconfig.dll - -llcms.dll + + + + + + + + + -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 - -lpng -lpopt ${gtk}/lib/zdll.lib - -lgc -mwindows -lws2_32 -lintl -lm - - + ${pcl.lcms} + ${pcl.gsl} + -lpng -ljpeg.dll -ltiff.dll -lpopt ${devlibs}/lib/zdll.lib + -lgc + -lws2_32 -lintl -lgdi32 -lcomdlg32 -lm + -lgomp -lpthreadGC2 -laspell + + @@ -374,138 +516,342 @@ description="link objects and library to create Inkview executable"> - - --include-dir=${src} - - + file="${src}/inkview.rc" + out="${build}/inkviewres.o"> + + --include-dir=${src} + + + objcopycommand="${archutil}objcopy"> + -mwindows + -mthreads - - < include name="inkviewres.o"/ > - - - - - -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 - - -L${gtk}/perl/lib/CORE -lperl58 - - -L${gtk}/python/libs -lpython24 - ${gtk}/bin/libxml2.dll - ${gtk}/lib/iconv.lib - -lfreetype.dll -lfontconfig.dll - -llcms.dll + + + + + + + -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 - -lpng -lpopt ${gtk}/lib/zdll.lib - -lgc -mwindows -lws2_32 -lintl -lm - - + ${pcl.lcms} + ${pcl.gsl} + -lpng -ljpeg.dll -ltiff.dll -lpopt ${devlibs}/lib/zdll.lib + -lgc + -lws2_32 -lintl -lgdi32 -lcomdlg32 -lm + -lgomp -lpthreadGC2 + + + + + + + -mthreads + + + + + + + + + + + + + + + -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 + -lgomp -lpthreadGC2 + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - + - - - - - + + + + + + + + + + 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 + + # disable the annoying beep in editable controls + gtk-error-bell = 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" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -516,28 +862,48 @@ ## T A R G E T : D I S T - A L L ######################################################################## --> - + + - - + + + + + - + + + + + + + + + +