Code

win32 installer, do not remove user files
[inkscape.git] / build.xml
1 <!--
2  * Inkscape build file.
3  *
4  * See buildtool.cpp for use.
5  *
6  * Authors:
7  *   Bob Jamison
8  *   Others 
9  *
10  * Copyright (C) 2006-2007 Inkscape.org
11  *
12  *  This library is free software; you can redistribute it and/or
13  *  modify it under the terms of the GNU Lesser General Public
14  *  License as published by the Free Software Foundation; either
15  *  version 2.1 of the License, or (at your option) any later version.
16  *
17  *  This library is distributed in the hope that it will be useful,
18  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
19  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20  *  Lesser General Public License for more details.
21  *
22  *  You should have received a copy of the GNU Lesser General Public
23  *  License along with this library; if not, write to the Free Software
24  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
25 -->
31 <!--
32 ########################################################################
33 ## P R O J E C T   :   I N K S C A P E
34 ########################################################################
35 -->
36 <project name="Inkscape" default="dist" basedir=".">
37     <description>
38         Build file for the Inkscape SVG editor.  This file
39         was written for GTK-2.10 on Win32, but it should work
40         well for other types of builds with only minor adjustments.
41     </description>
43   <!-- set global properties for this build -->
44   <property name="version"     value="0.46dev"/>
45   <property name="src"         location="src"/>
46   <property name="lib"         location="lib"/>
47   <property name="build"       location="build"/>
48   <property name="dist"        location="inkscape"/>
50   <!-- Use these settings for the native compiler -->  
51   <!-- -->
52   <property name="arch"        value="mingw32-"/>
53   <property name="archutil"    value=""/>
54   <property name="gtk"         location="c:/devlibs"/>
55   <!-- -->
57   <!-- Use these settings for the cross compiler -->  
58   <!--
59   <property name="arch"        value="i686-pc-mingw32-"/>
60   <property name="archutil"    value="${arch}"/>
61   <property name="gtk"         location="/target"/>
62   -->
66   <!--
67   ########################################################################
68   ## T A R G E T    :    I N I T
69   ########################################################################
70   -->
71   <target name="init"
72       description=
73       "Do all preparatory tasks, like make directories and copy files">
76     <!-- example of the <pkg-config> task
77       query can be cflags, libs, or both
78       prefix overrides the value of prefix="" in the file
79       the result of this entry can be later used as ${gtkmm}
80     -->
81     <!--
82     <pkg-config name="gtkmm-2.4" path="${gtk}/lib/pkgconfig"
83                 query="both" property="gtkmm" prefix="${gtk}"/>
84     -->
86     <mkdir dir="${build}"/>
87     <mkdir dir="${dist}"/>
88     <copy file="${src}/helper/sp-marshal.h.mingw"
89           tofile="${src}/helper/sp-marshal.h"/>
90     <copy file="${src}/helper/sp-marshal.cpp.mingw"
91           tofile="${src}/helper/sp-marshal.cpp"/>
92     <makefile file="inkscape_version.h">
93         #define INKSCAPE_VERSION "${version}+devel"
94     </makefile>
95     <makefile file="config.h">
96         #ifndef _CONFIG_H_
97         #define _CONFIG_H_
99         #ifndef WIN32
100         #define WIN32
101         #endif
103         /*######################################
104         ## This is for require-config.h, whose
105         ## purpose I cannot fathom.
106         ######################################*/
107         
108         #define PACKAGE_TARNAME
110         /*######################################
111         #### RESOURCE DIRECTORIES
112         ######################################*/
114         #define INKSCAPE_DATADIR       "."
115         #define PACKAGE_LOCALE_DIR     "locale"
118         /*######################################
119         #### OTHER DEFINITIONS
120         ######################################*/
122         #define GETTEXT_PACKAGE "inkscape"
124         #define PACKAGE_STRING                VERSION
126         #define HAVE_GETOPT_H                 1
127         #define HAVE_STRING_H                 1
128         #define HAVE_LIBINTL_H                1
129         #define HAVE_MALLOC_H                 1
130         #define HAVE_STDLIB_H                 1
131         #define HAVE_SYS_STAT_H               1
132         #define HAVE_INTTYPES_H               1
134         #define ENABLE_LCMS                   1
136         #define ENABLE_NLS                    1
137         #define HAVE_BIND_TEXTDOMAIN_CODESET  1
139         /* keep binreloc off */
140         #define BR_PTHREADS 0
141         #undef ENABLE_BINRELOC
143         /* CairoPDF options */
144         #define HAVE_CAIRO_PDF                1
145         #define PANGO_ENABLE_ENGINE           1
146         #define RENDER_WITH_PANGO_CAIRO       1
148         #define HAVE_GTK_WINDOW_FULLSCREEN    1
149         
150         /* internal interpreter */
151         #define WITH_PYTHON                   1
153         /* shared whiteboard */
154         #define WITH_INKBOARD                 1
155         #define HAVE_SSL                      1
156         
157         /* use poppler for pdf import? */
158         #define HAVE_POPPLER                  1
159         #define HAVE_POPPLER_CAIRO            1
161         /* do we want bitmap manipulation? */
162         #define WITH_IMAGE_MAGICK             1
164         /* Allow reading WordPerfect? */
165         #define WITH_LIBWPG                   1
167         #endif /* _CONFIG_H_ */
168     </makefile>
169   </target>
173   <!--
174   ########################################################################
175   ## T A R G E T    :    T O U C H A B O U T
176   ########################################################################
177   -->
178   <target name="touchabout"
179       description="update the modification time of aboutdialog.cpp">
180     <!-- not good <touch file="${src}/ui/dialog/aboutdialog.cpp"/> -->
181     <!-- better -->
182     <delete file="${build}/obj/ui/dialog/aboutdialog.o"/>
183   </target>
186   <!--
187   ########################################################################
188   ## T A R G E T    :    C O M P I L E
189   ########################################################################
190   -->
191   <target name="compile" depends="init"
192         description="compile the source to .o" >
194     <!-- Compile from source to build -->
195     <cc cc="${arch}gcc" cxx="${arch}g++"
196              destdir="${build}/obj">
197         <fileset dir="${src}">
198             <!-- THINGS TO EXCLUDE -->
199             <exclude name="2geom/chebyshev.cpp"/>
200             <exclude name="ast/.*"/>
201             <exclude name="bonobo/.*"/>
202             <exclude name="deptool.cpp"/>
203             <exclude name="test-all.cpp"/>
204             <exclude name="dialogs/filedialog-win32.cpp"/>
205             <exclude name="display/testnr.cpp"/>
206             <exclude name="display/bezier-utils-test.cpp"/>
207             <exclude name="dom/jsdombind.cpp"/>
208             <exclude name="dom/work/.*"/>
209             <exclude name="dom/odf/SvgOdg.cpp"/>
210             <exclude name="extension/api.cpp"/>
211             <exclude name="extension/dxf2svg/.*"/>
212             <exclude name="extension/implementation/plugin.cpp"/>
213             <exclude name="extension/script/bindtest.cpp"/>
214             <exclude name="extension/script/cpptest.cpp"/>
215             <exclude name="extension/plugin/.*"/>
216             <exclude name="extract-uri-test.cpp"/>
217             <exclude name="helper/units-test.cpp"/>
218             <!-- exclude name="inkview.cpp"/-->
219             <exclude name="libnr/test-nr.cpp"/>
220             <exclude name="libnr/test-nr-main.cpp"/>
221             <exclude name="libnr/testnr.cpp"/>
222             <exclude name="libnr/in-svg-plane-test.cpp"/>
223             <exclude name="libnr/nr-compose-reference.cpp"/>
224             <exclude name="libnr/nr-compose-test.cpp"/>
225             <exclude name="libnr/nr-matrix-test.cpp"/>
226             <exclude name="libnr/nr-point-fns-test.cpp"/>
227             <exclude name="libnr/nr-rotate-fns-test.cpp"/>
228             <exclude name="libnr/nr-rotate-test.cpp"/>
229             <exclude name="libnr/nr-scale-test.cpp"/>
230             <exclude name="libnr/nr-translate-test.cpp"/>
231             <exclude name="libnr/nr-types-test.cpp"/>
232             <exclude name="livarot/Path-test.cpp"/>
233             <exclude name="mod360-test.cpp"/>
234             <exclude name="trace/potrace/potest.cpp"/>
235             <exclude name="round-test.cpp"/>
236             <exclude name="sp-gradient-test.cpp"/>
237             <exclude name="svg/ftos.cpp"/>
238             <exclude name="svg/test-svg.cpp"/>
239             <exclude name="svg/test-svg-main.cpp"/>
240             <exclude name="utest/.*"/>
241             <exclude name="widgets/test-widgets.cpp"/>
242             <exclude name="xml/quote-test.cpp"/>
243             <exclude name="xml/repr-action-test.cpp"/>
244             <exclude name="xml/test-xml.cpp"/>
245             <exclude name="xml/test-xml-main.cpp"/>
246             <exclude name="io/streamtest.cpp"/>
247             <!--JABBER-->
248             <exclude name="pedro/pedrogui.cpp"/>
249             <exclude name="pedro/pedrogui.h"/>
250             <exclude name="pedro/work/.*"/>
251             <!--WHITEBOARD-->
252             <exclude name="ui/dialog/session-player.cpp"/>
253             <exclude name="ui/dialog/whiteboard-connect.cpp"/>
254             <exclude name="ui/dialog/whiteboard-sharewithchat.cpp"/>
255             <exclude name="ui/dialog/whiteboard-sharewithuser.cpp"/>
256             <exclude name="dialogs/whiteboard-connect-dialog.cpp"/>
257             <exclude name="dialogs/whiteboard-common-dialog.cpp"/>
258             <exclude name="dialogs/whiteboard-sharewithchat-dialog.cpp"/>
259             <exclude name="dialogs/whiteboard-sharewithuser-dialog.cpp"/>
260             <exclude name="jabber_whiteboard/node-tracker.cpp"/>
261             <exclude name="jabber_whiteboard/node-utilities.cpp"/>
262             <!--OVERLAP-->
263             <exclude name="removeoverlap/placement_SolveVPSC.cpp"/>
264             <exclude name="removeoverlap/placement_SolveVPSC.h"/>
265             <exclude name="removeoverlap/test.cpp"/>
266             <exclude name="removeoverlap/remove_rectangle_overlap-test.cpp"/>
267             <exclude name="removeoverlap/remove_rectangle_overlap-test.h"/>
268         </fileset>
269         <flags>
270             -Wall -Wformat-security -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch
271             -O2
272             -mms-bitfields
273         </flags>
274         <defines>
275             -DVERSION=\"${version}\"
276             -DHAVE_CONFIG_H
277             -DXP_WIN <!-- for JS -->
278             -D_INTL_REDIRECT_INLINE
279             -DHAVE_SSL
280             -DRELAYTOOL_SSL="static const int libssl_is_present=1; static int __attribute__((unused)) libssl_symbol_is_present(char *s){ return 1; }" <!-- inkboard -->
281         </defines>
282         <includes>
283             -I${gtk}/include
284             <!-- GTK / GTKMM -->
285             -I${gtk}/include/glibmm-2.4
286             -I${gtk}/lib/glibmm-2.4/include
287             -I${gtk}/include/gtkmm-2.4
288             -I${gtk}/lib/gtkmm-2.4/include
289             -I${gtk}/include/gdkmm-2.4
290             -I${gtk}/lib/gdkmm-2.4/include
291             -I${gtk}/include/pangomm-1.4
292             -I${gtk}/include/atkmm-1.6
293             -I${gtk}/include/cairomm-1.0
294             -I${gtk}/include/sigc++-2.0
295             -I${gtk}/lib/sigc++-2.0/include
296             -I${gtk}/include/gtk-2.0
297             -I${gtk}/lib/gtk-2.0/include
298             -I${gtk}/include/atk-1.0
299             -I${gtk}/include/pango-1.0
300             -I${gtk}/include/glib-2.0
301             -I${gtk}/lib/glib-2.0/include
302             <!-- OTHER -->
303             -I${gtk}/include/libxml2 
304             -I${gtk}/include/freetype2
305             -I${gtk}/include/cairo
306             -I${gtk}/include/poppler
307             -I${gtk}/include/gc
308             -I${gtk}/include/libwpg-0.1
309             -I${gtk}/include/libwpd-0.8
310             <!-- PERL -->
311             -Wno-comment -I${gtk}/perl/lib/CORE
312             <!-- PYTHON -->
313             -I${gtk}/python/include
314         </includes>
315     </cc>
316   </target>
317   
319   <!--
320   ########################################################################
321   ## T A R G E T    :    L I B
322   ########################################################################
323   -->
324   <target name="lib" depends="compile"
325       description="create a static library">
326     <staticlib command="${archutil}ar crsv"
327            file="${build}/libinkscape.a">
328        <fileset dir="${build}/obj">
329            <exclude name="main.o"/>
330            <exclude name="winmain.o"/>
331            <exclude name="inkview.o"/>
332        </fileset>
333     </staticlib>
334   </target>
338   <!--
339   ########################################################################
340   ## T A R G E T    :    I 1 8 N
341   ########################################################################
342   -->
343   <target name="i18n" depends="compile"
344       description="compile gettext .po files to .mo">
346     <msgfmt todir="${build}/locale" owndir="true"
347          out="LC_MESSAGES/inkscape.mo">
348        <fileset dir="po">
349        </fileset>
350     </msgfmt>
351   </target>
357   <!--
358   ########################################################################
359   ## T A R G E T    :    L I N K
360   ########################################################################
361   -->
362   <target name="link" depends="lib"
363       description="link objects and library to create executable">
365     <rc command="${archutil}windres" 
366         file="${src}/inkscape.rc"
367         out="${build}/inkres.o">
368         <flags>
369         --include-dir=${src}
370         </flags>
371     </rc>
372     <link command="${arch}g++" out="${build}/inkscape.exe"
373               strip="true" symfile="${build}/inkscape.dbg"
374               stripcommand="${archutil}strip"
375               objcopycommand="${archutil}objcopy">
376        <flags>
377            -mwindows
378        </flags>
379        <fileset dir="${build}">
380            <include name="inkres.o"/>
381            <include name="obj/main.o"/>
382            <include name="obj/winmain.o"/>
383            <include name="libinkscape.a"/>
384        </fileset>
385        <libs>
386            -L${gtk}/lib
387            -lpoppler-cairo -lpoppler-glib -lpoppler.dll 
388            -lgtkmm-2.4 -lgdkmm-2.4 -lglibmm-2.4 
389            -latkmm-1.6 -lpangomm-1.4 -lsigc-2.0
390            -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0
391            -lgdk_pixbuf-2.0
392            -lpangocairo-1.0 -lpangoft2-1.0 -lpangowin32-1.0 -lpango-1.0
393            -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0
394            <!-- PERL -->
395            -L${gtk}/perl/lib/CORE -lperl58
396            <!-- PYTHON -->
397            -L${gtk}/python/libs -lpython25
398            ${gtk}/bin/libxml2.dll
399            ${gtk}/bin/libxslt.dll
400            -lcairo.dll
401            -lcairomm-1.0.dll
402                    -lwpg-0.1.dll -lwpg-stream-0.1.dll
403            -lwpd-0.8.dll -lwpd-stream-0.8.dll
404            ${gtk}/lib/iconv.lib
405            -lMagick++ -lWand -lMagick
406            -lfreetype.dll -lfontconfig.dll
407            -lssl -lcrypto
408            -llcms.dll
409            -lpng -ljpeg.dll -ltiff.dll -lpopt ${gtk}/lib/zdll.lib
410            -lgc
411                    -lws2_32 -lintl -lgdi32 -lcomdlg32 -lm
412            <!-- 2geom -->
413            <!-- -l2geom -->
414        </libs>
415     </link>
416   </target>
417   
422   <!--
423   ########################################################################
424   ## T A R G E T    :    L I N K I N K V I E W
425   ########################################################################
426   -->
427   <target name="linkinkview" depends="lib"
428         description="link objects and library to create Inkview executable">
430     <rc command="${archutil}windres" 
431         file="${src}/inkview.rc"
432         out="${build}/inkviewres.o">
433         <flags>
434         --include-dir=${src}
435         </flags>
436     </rc>
437     <link command="${arch}g++" out="${build}/inkview.exe"
438               strip="true" symfile="${build}/inkview.dbg"
439               stripcommand="${archutil}strip"
440               objcopycommand="${archutil}objcopy">
441        <flags>
442        </flags>
443        <fileset dir="${build}">
444            <include name="inkviewres.o"/>
445            <include name="obj/inkview.o"/>
446            <include name="libinkscape.a"/>
447        </fileset>
448        <libs>
449            -L${gtk}/lib
450            -lpoppler-cairo -lpoppler-glib -lpoppler.dll 
451            -lgtkmm-2.4 -lgdkmm-2.4 -lglibmm-2.4
452            -latkmm-1.6 -lpangomm-1.4 -lsigc-2.0
453            -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0
454            -lgdk_pixbuf-2.0
455            -lpangocairo-1.0 -lpangoft2-1.0 -lpangowin32-1.0 -lpango-1.0
456            -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lcairo -lcairomm-1.0
457            <!-- PERL -->
458            -L${gtk}/perl/lib/CORE -lperl58
459            <!-- PYTHON -->
460            -L${gtk}/python/libs -lpython25
461            ${gtk}/bin/libxml2.dll
462            ${gtk}/bin/libxslt.dll
463            ${gtk}/lib/iconv.lib
464                    -lcairo.dll -lcairomm-1.0.dll
465            -lwpg-0.1.dll -lwpg-stream-0.1.dll
466            -lMagick++ -lWand -lMagick
467            -lfreetype.dll -lfontconfig.dll
468            -llcms.dll
469            -lssl -lcrypto
470            -lpng -ljpeg.dll -ltiff.dll -lpopt ${gtk}/lib/zdll.lib
471            -lgc -mwindows
472                    -lws2_32 -lintl -lgdi32 -lcomdlg32 -lm
473        </libs>
474     </link>
475   </target>
479   <!--
480   ########################################################################
481   ## T A R G E T    :    D I S T
482   ########################################################################
483   -->
484   <target name="dist" depends="link,i18n"
485       description="generate the distribution directory with all needed files">
487     <!-- Create the distribution directory -->
488     <copy file="${build}/inkscape.exe" todir="${dist}"/>
489         <copy file="${build}/inkscape.dbg" todir="${dist}"/>
490     <copy file="AUTHORS" todir="${dist}"/>
491     <copy file="COPYING" todir="${dist}"/>
492     <copy file="COPYING.LIB" todir="${dist}"/>
493     <copy file="NEWS" todir="${dist}"/>
494     <copy file="README" todir="${dist}"/>
495     <copy file="TRANSLATORS" todir="${dist}"/>
496     <copy file="${gtk}/bin/libatkmm-1.6-1.dll" todir="${dist}"/>
497     <copy file="${gtk}/bin/libglibmm-2.4-1.dll" todir="${dist}"/>
498     <copy file="${gtk}/bin/libgtkmm-2.4-1.dll" todir="${dist}"/>
499     <copy file="${gtk}/bin/libgdkmm-2.4-1.dll" todir="${dist}"/>
500     <copy file="${gtk}/bin/libpangomm-1.4-1.dll" todir="${dist}"/>
501     <copy file="${gtk}/bin/libcairomm-1.0-1.dll" todir="${dist}"/>
502     <copy file="${gtk}/bin/libsigc-2.0-0.dll" todir="${dist}"/>
503     <copy file="${gtk}/bin/freetype6.dll" todir="${dist}"/>
504     <copy file="${gtk}/bin/libatk-1.0-0.dll" todir="${dist}"/>
505     <copy file="${gtk}/bin/libgdk-win32-2.0-0.dll" todir="${dist}"/>
506     <copy file="${gtk}/bin/libgdk_pixbuf-2.0-0.dll" todir="${dist}"/>
507     <copy file="${gtk}/bin/libglib-2.0-0.dll" todir="${dist}"/>
508     <copy file="${gtk}/bin/libgmodule-2.0-0.dll" todir="${dist}"/>
509     <copy file="${gtk}/bin/libgobject-2.0-0.dll" todir="${dist}"/>
510     <copy file="${gtk}/bin/libgtk-win32-2.0-0.dll" todir="${dist}"/>
511     <copy file="${gtk}/bin/libgthread-2.0-0.dll" todir="${dist}"/>
512     <copy file="${gtk}/bin/libcairo-2.dll" todir="${dist}"/>
513     <copy file="${gtk}/bin/libpoppler-2.dll" todir="${dist}"/>
514     <copy file="${gtk}/bin/libpangocairo-1.0-0.dll" todir="${dist}"/>
515     <copy file="${gtk}/bin/libpango-1.0-0.dll" todir="${dist}"/>
516     <copy file="${gtk}/bin/libpangoft2-1.0-0.dll" todir="${dist}"/>
517     <copy file="${gtk}/bin/libpangowin32-1.0-0.dll" todir="${dist}"/>
518     <copy file="${gtk}/bin/freetype6.dll" todir="${dist}"/>
519     <copy file="${gtk}/bin/libfontconfig-1.dll" todir="${dist}"/>
520     <copy file="${gtk}/bin/libxml2.dll" todir="${dist}"/>
521     <copy file="${gtk}/bin/libxslt.dll" todir="${dist}"/>
522     <copy file="${gtk}/bin/libexpat.dll" todir="${dist}"/>
523     <!--<copy file="${gtk}/bin/libexpat.dll" tofile="${dist}/xmlparse.dll"/>-->
524     <copy file="${gtk}/bin/libwpg-0.1.dll" todir="${dist}"/>
525     <copy file="${gtk}/bin/libwpg-stream-0.1.dll" todir="${dist}"/>
526     <copy file="${gtk}/bin/libwpd-0.8.dll" todir="${dist}"/>
527     <copy file="${gtk}/bin/libwpd-stream-0.8.dll" todir="${dist}"/>
528     <copy file="${gtk}/bin/jpeg62.dll" todir="${dist}"/>
529     <copy file="${gtk}/bin/libpng13.dll" todir="${dist}"/>
530     <copy file="${gtk}/bin/libtiff3.dll" todir="${dist}"/>
531     <copy file="${gtk}/bin/msvcr70.dll" todir="${dist}"/>
532     <copy file="${gtk}/bin/msvcr71.dll" todir="${dist}"/>
533     <copy file="${gtk}/bin/zlib1.dll" todir="${dist}"/>
534     <copy file="${gtk}/bin/iconv.dll" todir="${dist}"/>
535     <copy file="${gtk}/bin/libpopt-0.dll" todir="${dist}"/>
536     <copy file="${gtk}/bin/liblcms-1.dll" todir="${dist}"/>
537     <copy file="${gtk}/bin/intl.dll" todir="${dist}"/>
538     <copy file="${gtk}/bin/intl.dll" tofile="${dist}/libintl-2.dll"/>
540     <!-- MSGFMT files -->
541     <copy todir="${dist}">
542         <fileset dir="${build}/locale">
543           <exclude name=".*\.am"/>
544         </fileset>
545     </copy>
547     <!-- GTK -->
548     <copy todir="${dist}"> <fileset dir="${gtk}/etc"/> </copy>
549     <copy todir="${dist}/lib"> <fileset dir="${gtk}/lib/gtk-2.0"/> </copy>
550     <copy todir="${dist}/lib"> <fileset dir="${gtk}/lib/glib-2.0"/> </copy>
551     <copy todir="${dist}/lib"> <fileset dir="${gtk}/lib/locale"/> </copy>
552     <copy todir="${dist}">
553         <fileset dir="share">
554           <exclude name=".*\.am"/>
555         </fileset>
556     </copy>
557     <copy todir="${dist}/share"> <fileset dir="${gtk}/share/themes"/> </copy>
558     <mkdir dir="${dist}/data"/>
559     <mkdir dir="${dist}/locale"/>
560     <mkdir dir="${dist}/modules"/>
561     <mkdir dir="${dist}/plugins"/>
562     <copy file="${gtk}/bin/gdb.exe" todir="${dist}"/>
564     <!-- Necessary to run extensions on windows if it is not in the path -->
565     <copy file="${gtk}/bin/gspawn-win32-helper.exe" todir="${dist}"/>
566     <copy file="${gtk}/bin/gspawn-win32-helper-console.exe" todir="${dist}"/>
568     <!-- PERL -->
569     <copy file="${gtk}/perl/bin/perl58.dll" todir="${dist}"/>
571     <!-- PYTHON -->
572     <copy file="${gtk}/python/python25.dll" todir="${dist}"/>
573     <copy file="${gtk}/python/python.exe" todir="${dist}/python"/>
574     <copy todir="${dist}/python"> <fileset dir="${gtk}/python/Lib"/> </copy>
575     <copy todir="${dist}/python"> <fileset dir="${gtk}/python/DLLs"/> </copy>
576     <copy todir="${dist}/python"> <fileset dir="${gtk}/python/Scripts"/> </copy>
578     <!--<copy file="${gtk}/share/themes/MS-Windows/gtk-2.0/gtkrc" todir="${dist}/etc/gtk-2.0"/>-->
579     <makefile file="${dist}/etc/gtk-2.0/gtkrc">
580     gtk-icon-sizes = "gtk-menu=13,13:gtk-small-toolbar=16,16:gtk-large-toolbar=24,24:gtk-dnd=32,32:inkscape-decoration=16,16"
581     gtk-toolbar-icon-size = small-toolbar
583     # disable images in buttons. i've only seen ugly delphi apps use this feature.
584     gtk-button-images = 0
586     # enable/disable images in menus. most "stock" microsoft apps don't use these, except sparingly.
587     # the office apps use them heavily, though.
588     gtk-menu-images = 1
590     # use the win32 button ordering instead of the GNOME HIG one, where applicable
591     gtk-alternative-button-order = 1
593     style "msw-default"
594     {
595       GtkWidget::interior-focus = 1
596       GtkOptionMenu::indicator-size = { 9, 5 }
597       GtkOptionMenu::indicator-spacing = { 7, 5, 2, 2 }
598       GtkSpinButton::shadow-type = in
600       # Owen and I disagree that these should be themable
601       #GtkUIManager::add-tearoffs = 0
602       #GtkComboBox::add-tearoffs = 0
604       GtkComboBox::appears-as-list = 1
605       GtkComboBox::focus-on-click = 0
607       GOComboBox::add_tearoffs = 0
609       GtkTreeView::allow-rules = 0
610       GtkTreeView::expander-size = 12
612       GtkExpander::expander-size = 12
614       GtkScrolledWindow::scrollbar_spacing = 1
616       GtkSeparatorMenuItem::horizontal-padding = 2
618       engine "wimp"
619       {
620       }
621     }
622     class "*" style "msw-default"
623     </makefile>
625   </target>
630   <!--
631   ########################################################################
632   ## T A R G E T    :    D I S T - A L L
633   ########################################################################
634   -->
635   <target name="dist-all" depends="dist,linkinkview"
636         description="generate the distribution, along with inkview" >
638     <copy file="${build}/inkview.exe" todir="${dist}"/>
639     <copy file="${build}/inkview.dbg" todir="${dist}"/>
640   </target>
645   <!--
646   ########################################################################
647   ## T A R G E T    :    C L E A N
648   ########################################################################
649   -->
650   <target name="clean"
651         description="clean up.  deleting build and distro dirs" >
653     <delete dir="${build}"/>
654     <delete dir="${dist}"/>
655     <delete file="build.dep"/>
656     <delete file="config.h"/>
658   </target>
662 </project>
663 <!--
664 ########################################################################
665 ## E N D
666 ########################################################################
667 -->