X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=build.xml;h=99e221e64662e95b705b4300d8c5fe57c50dcb02;hb=fce046713c4cb905f38bf489cc4a73af425f3037;hp=984f4603fcba095d61689d3450b2c7aa9ce00719;hpb=ef3d1bedb792a315f35d58f85770bfea33c7482a;p=inkscape.git diff --git a/build.xml b/build.xml index 984f4603f..99e221e64 100644 --- a/build.xml +++ b/build.xml @@ -31,18 +31,18 @@ ## P R O J E C T : I N K S C A P E ######################################################################## --> - + 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 + Note that the default target is 'dist-all'. You can execute other targets instead, by "btool {target}", like "btool compile", if - you want to save time. + you want to save time, or "dist-inkscape" if you don't want inkview. - + @@ -52,14 +52,20 @@ - + + + + @@ -70,8 +76,8 @@ queries can be as simple as ${pcc.packageName} for cflags, and ${pcl.packageName} for libs. Dependencies are calculated automatically. --> - - + + + + namespace Inkscape { + char const *version_string = "${version}"; + } #ifndef _CONFIG_H_ @@ -136,6 +149,7 @@ #define HAVE_STDLIB_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_INTTYPES_H 1 + #define HAVE_OPENMP 1 #define ENABLE_LCMS 1 @@ -157,8 +171,8 @@ #define WITH_PYTHON 1 /* shared whiteboard */ - #define WITH_INKBOARD 1 - #define HAVE_SSL 1 + #undef WITH_INKBOARD + #undef HAVE_SSL /* use poppler for pdf import? */ #define HAVE_POPPLER 1 @@ -170,22 +184,104 @@ /* 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_ */ - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -194,23 +290,25 @@ ## T A R G E T : C O M P I L E ######################################################################## --> - + continueOnError="true" + refreshCache="${refresh}"> - + + + + - @@ -222,12 +320,10 @@ - + - - @@ -240,15 +336,16 @@ + - + - + - + @@ -279,6 +376,7 @@ -Wall -Wformat -Werror=format-security -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch -O2 -mms-bitfields + -fopenmp -DVERSION=\"${version}\" @@ -286,23 +384,24 @@ -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; }" + -DPOPPLER_NEW_GFXFONT - -I${gtk}/include + -I${devlibs}/include ${pcc.gtkmm-2.4} - -I${gtk}/include/libxml2 - -I${gtk}/include/freetype2 - -I${gtk}/include/cairo - -I${gtk}/include/poppler - -I${gtk}/include/gc - -I${gtk}/include/libwpg-0.1 - -I${gtk}/include/libwpd-0.8 + -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${gtk}/python/include + -I${devlibs}/python/include -I${src}/bind/javainc -I${src}/bind/javainc/win32 @@ -323,6 +422,16 @@ + + + + + + + + + + @@ -368,7 +477,8 @@ stripcommand="${archutil}strip" objcopycommand="${archutil}objcopy"> - -mwindows + -mconsole + -mthreads @@ -376,31 +486,26 @@ + - -L${gtk}/lib - -lpoppler-cairo -lpoppler-glib -lpoppler.dll + -L${devlibs}/lib + ${pcl.poppler-cairo} ${pcl.poppler-glib} ${pcl.poppler} ${pcl.gtkmm-2.4} ${pcl.pangoft2} ${pcl.gthread-2.0} - - - - - ${gtk}/bin/libxml2.dll - ${gtk}/bin/libxslt.dll - -lcairo.dll - -lcairomm-1.0.dll - -lwpg-0.1.dll -lwpg-stream-0.1.dll - -lwpd-0.8.dll -lwpd-stream-0.8.dll - ${gtk}/lib/iconv.lib - -lMagick++ -lWand -lMagick - -lfreetype.dll -lfontconfig.dll + ${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 - -llcms.dll - -lgsl - -lpng -ljpeg.dll -ltiff.dll -lpopt ${gtk}/lib/zdll.lib + ${pcl.lcms} + ${pcl.gsl} + -lpng -ljpeg.dll -ltiff.dll -lpopt ${devlibs}/lib/zdll.lib -lgc - -lws2_32 -lintl -lgdi32 -lcomdlg32 -lm - - + -lws2_32 -lintl -lgdi32 -lcomdlg32 -lm + -lgomp -lpthreadGC2 -laspell + -lmscms @@ -429,6 +534,8 @@ stripcommand="${archutil}strip" objcopycommand="${archutil}objcopy"> + -mconsole + -mthreads @@ -436,25 +543,24 @@ - -L${gtk}/lib - -lpoppler-cairo -lpoppler-glib -lpoppler.dll - ${pcl.gtkmm-2.4} - - -L${gtk}/perl/lib/CORE -lperl58 - - -L${gtk}/python/libs -lpython25 - ${gtk}/bin/libxml2.dll - ${gtk}/bin/libxslt.dll - ${gtk}/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 + -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 -ljpeg.dll -ltiff.dll -lpopt ${gtk}/lib/zdll.lib - -lgc -mwindows - -lws2_32 -lintl -lgdi32 -lcomdlg32 -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 + -lmscms @@ -463,64 +569,119 @@ - + + + + -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 -laspell + -lmscms + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -529,45 +690,55 @@ + + + + + - - - - + + + + + - - - - - - + + + + + + + - - + + - + - - - - - - - - + + + + + + + + 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. @@ -611,6 +782,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -640,7 +850,7 @@ --> - + @@ -663,11 +873,20 @@ ## T A R G E T : D I S T - A L L ######################################################################## --> - + + + - - + + + @@ -686,6 +905,15 @@ + + + + + + + + +