Code

create options for cairo pdf/ps export dialog
[inkscape.git] / build-dw2.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="arch"        value="i686-pc-mingw32-"/>
46   <property name="archutil"    value="${arch}"/>
47   <!--<property name="archutil"    value=""/>-->
48   <property name="src"         location="src"/>
49   <property name="gtk"         location="c:/devlibs"/>
50   <!--<property name="gtk"         location="/target"/>-->
51   <property name="lib"         location="lib"/>
52   <property name="build"       location="build"/>
53   <property name="dist"        location="inkscape"/>
57   <!--
58   ########################################################################
59   ## T A R G E T    :    I N I T
60   ########################################################################
61   -->
62   <target name="init"
63       description=
64       "Do all preparatory tasks, like make directories and copy files">
67     <!-- example of the <pkg-config> task
68       query can be cflags, libs, or both
69       prefix overrides the value of prefix="" in the file
70       the result of this entry can be later used as ${gtkmm}
71     -->
72     <!--
73     <pkg-config name="gtkmm-2.4" path="${gtk}/lib/pkgconfig"
74                 query="both" property="gtkmm" prefix="${gtk}"/>
75     -->
77     <mkdir dir="${build}"/>
78     <mkdir dir="${dist}"/>
79     <copy file="${src}/helper/sp-marshal.h.mingw"
80           tofile="${src}/helper/sp-marshal.h"/>
81     <copy file="${src}/helper/sp-marshal.cpp.mingw"
82           tofile="${src}/helper/sp-marshal.cpp"/>
83     <makefile file="inkscape_version.h">
84         #define INKSCAPE_VERSION "${version}+devel"
85     </makefile>
86     <makefile file="config.h">
87         #ifndef _CONFIG_H_
88         #define _CONFIG_H_
90         #ifndef WIN32
91         #define WIN32
92         #endif
94         /*######################################
95         ## This is for require-config.h, whose
96         ## purpose I cannot fathom.
97         ######################################*/
98         
99         #define PACKAGE_TARNAME
101         /*######################################
102         #### RESOURCE DIRECTORIES
103         ######################################*/
105         #define INKSCAPE_DATADIR       "."
106         #define PACKAGE_LOCALE_DIR     "locale"
109         /*######################################
110         #### OTHER DEFINITIONS
111         ######################################*/
113         #define GETTEXT_PACKAGE "inkscape"
115         #define PACKAGE_STRING                VERSION
117         #define HAVE_GETOPT_H                 1
118         #define HAVE_STRING_H                 1
119         #define HAVE_LIBINTL_H                1
120         #define HAVE_MALLOC_H                 1
121         #define HAVE_STDLIB_H                 1
122         #define HAVE_SYS_STAT_H               1
123         #define HAVE_INTTYPES_H               1
125         #define ENABLE_LCMS                   1
127         #define ENABLE_NLS                    1
128         #define HAVE_BIND_TEXTDOMAIN_CODESET  1
130         /* keep binreloc off */
131         #define BR_PTHREADS 0
132         #undef ENABLE_BINRELOC
134         /* CairoPDF options */
135         #define HAVE_CAIRO_PDF                1
136         #define PANGO_ENABLE_ENGINE           1
137         #define RENDER_WITH_PANGO_CAIRO       1
139         #define HAVE_GTK_WINDOW_FULLSCREEN    1
140         
141         /* internal interpreter */
142         #define WITH_PYTHON                   1
144         /* shared whiteboard */
145         #define WITH_INKBOARD                 1
146         #define HAVE_SSL                      1
147         
148         /* use poppler for pdf import? */
149         #define HAVE_POPPLER                  1
150         #define HAVE_POPPLER_CAIRO            1
152         /* do we want bitmap manipulation? */
153         #define WITH_IMAGE_MAGICK             1
155         /* Allow reading WordPerfect? */
156         #define WITH_LIBWPG                   1
158         #endif /* _CONFIG_H_ */
159     </makefile>
160   </target>
164   <!--
165   ########################################################################
166   ## T A R G E T    :    T O U C H A B O U T
167   ########################################################################
168   -->
169   <target name="touchabout"
170       description="update the modification time of aboutdialog.cpp">
171     <!-- not good <touch file="${src}/ui/dialog/aboutdialog.cpp"/> -->
172     <!-- better -->
173     <delete file="${build}/obj/ui/dialog/aboutdialog.o"/>
174   </target>
177   <!--
178   ########################################################################
179   ## T A R G E T    :    C O M P I L E
180   ########################################################################
181   -->
182   <target name="compile" depends="init"
183         description="compile the source to .o" >
185     <!-- Compile from source to build -->
186     <cc cc="${arch}gcc" cxx="${arch}g++"
187              destdir="${build}/obj">
188         <fileset dir="${src}">
189             <!-- THINGS TO EXCLUDE -->
190             <exclude name="2geom/chebyshev.cpp"/>
191             <exclude name="ast/.*"/>
192             <exclude name="bonobo/.*"/>
193             <exclude name="deptool.cpp"/>
194             <exclude name="test-all.cpp"/>
195             <exclude name="dialogs/filedialog-win32.cpp"/>
196             <exclude name="display/testnr.cpp"/>
197             <exclude name="display/bezier-utils-test.cpp"/>
198             <exclude name="dom/jsdombind.cpp"/>
199             <exclude name="dom/work/.*"/>
200             <exclude name="dom/odf/SvgOdg.cpp"/>
201             <exclude name="extension/api.cpp"/>
202             <exclude name="extension/dxf2svg/.*"/>
203             <exclude name="extension/implementation/plugin.cpp"/>
204             <exclude name="extension/script/bindtest.cpp"/>
205             <exclude name="extension/script/cpptest.cpp"/>
206             <exclude name="extension/plugin/.*"/>
207             <exclude name="extract-uri-test.cpp"/>
208             <exclude name="helper/units-test.cpp"/>
209             <!-- exclude name="inkview.cpp"/-->
210             <exclude name="libnr/test-nr.cpp"/>
211             <exclude name="libnr/test-nr-main.cpp"/>
212             <exclude name="libnr/testnr.cpp"/>
213             <exclude name="libnr/in-svg-plane-test.cpp"/>
214             <exclude name="libnr/nr-compose-reference.cpp"/>
215             <exclude name="libnr/nr-compose-test.cpp"/>
216             <exclude name="libnr/nr-matrix-test.cpp"/>
217             <exclude name="libnr/nr-point-fns-test.cpp"/>
218             <exclude name="libnr/nr-rotate-fns-test.cpp"/>
219             <exclude name="libnr/nr-rotate-test.cpp"/>
220             <exclude name="libnr/nr-scale-test.cpp"/>
221             <exclude name="libnr/nr-translate-test.cpp"/>
222             <exclude name="libnr/nr-types-test.cpp"/>
223             <exclude name="livarot/Path-test.cpp"/>
224             <exclude name="mod360-test.cpp"/>
225             <exclude name="trace/potrace/potest.cpp"/>
226             <exclude name="round-test.cpp"/>
227             <exclude name="sp-gradient-test.cpp"/>
228             <exclude name="svg/ftos.cpp"/>
229             <exclude name="svg/test-svg.cpp"/>
230             <exclude name="svg/test-svg-main.cpp"/>
231             <exclude name="utest/.*"/>
232             <exclude name="widgets/test-widgets.cpp"/>
233             <exclude name="xml/quote-test.cpp"/>
234             <exclude name="xml/repr-action-test.cpp"/>
235             <exclude name="xml/test-xml.cpp"/>
236             <exclude name="xml/test-xml-main.cpp"/>
237             <exclude name="io/streamtest.cpp"/>
238             <!--JABBER-->
239             <exclude name="pedro/pedrogui.cpp"/>
240             <exclude name="pedro/pedrogui.h"/>
241             <exclude name="pedro/work/.*"/>
242             <!--WHITEBOARD-->
243             <exclude name="ui/dialog/session-player.cpp"/>
244             <exclude name="ui/dialog/whiteboard-connect.cpp"/>
245             <exclude name="ui/dialog/whiteboard-sharewithchat.cpp"/>
246             <exclude name="ui/dialog/whiteboard-sharewithuser.cpp"/>
247             <exclude name="dialogs/whiteboard-connect-dialog.cpp"/>
248             <exclude name="dialogs/whiteboard-common-dialog.cpp"/>
249             <exclude name="dialogs/whiteboard-sharewithchat-dialog.cpp"/>
250             <exclude name="dialogs/whiteboard-sharewithuser-dialog.cpp"/>
251             <exclude name="jabber_whiteboard/node-tracker.cpp"/>
252             <exclude name="jabber_whiteboard/node-utilities.cpp"/>
253             <!--OVERLAP-->
254             <exclude name="removeoverlap/placement_SolveVPSC.cpp"/>
255             <exclude name="removeoverlap/placement_SolveVPSC.h"/>
256             <exclude name="removeoverlap/test.cpp"/>
257             <exclude name="removeoverlap/remove_rectangle_overlap-test.cpp"/>
258             <exclude name="removeoverlap/remove_rectangle_overlap-test.h"/>
259         </fileset>
260         <flags>
261             -Wall -O3
262             -mms-bitfields
263         </flags>
264         <defines>
265             -DVERSION=\"${version}\"
266             -DHAVE_CONFIG_H
267             -DXP_WIN <!-- for JS -->
268             -D_INTL_REDIRECT_INLINE
269             -DHAVE_SSL
270             -DRELAYTOOL_SSL="static const int libssl_is_present=1; static int __attribute__((unused)) libssl_symbol_is_present(char *s){ return 1; }" <!-- inkboard -->
271         </defines>
272         <includes>
273             -I${gtk}/include
274             <!-- GTK / GTKMM -->
275             -I${gtk}/include/glibmm-2.4
276             -I${gtk}/lib/glibmm-2.4/include
277             -I${gtk}/include/gtkmm-2.4
278             -I${gtk}/lib/gtkmm-2.4/include
279             -I${gtk}/include/gdkmm-2.4
280             -I${gtk}/lib/gdkmm-2.4/include
281             -I${gtk}/include/pangomm-1.4
282             -I${gtk}/include/atkmm-1.6
283             -I${gtk}/include/cairomm-1.0
284             -I${gtk}/include/sigc++-2.0
285             -I${gtk}/lib/sigc++-2.0/include
286             -I${gtk}/include/gtk-2.0
287             -I${gtk}/lib/gtk-2.0/include
288             -I${gtk}/include/atk-1.0
289             -I${gtk}/include/pango-1.0
290             -I${gtk}/include/glib-2.0
291             -I${gtk}/lib/glib-2.0/include
292             <!-- OTHER -->
293             -I${gtk}/include/libxml2 
294             -I${gtk}/include/freetype2
295             -I${gtk}/include/cairo
296             -I${gtk}/include/poppler
297             -I${gtk}/include/gc
298             -I${gtk}/include/libwpg-0.1
299             -I${gtk}/include/libwpd-0.8
300             <!-- PERL -->
301             -Wno-comment -I${gtk}/perl/lib/CORE
302             <!-- PYTHON -->
303             -I${gtk}/python/include
304         </includes>
305     </cc>
306   </target>
307   
309   <!--
310   ########################################################################
311   ## T A R G E T    :    L I B
312   ########################################################################
313   -->
314   <target name="lib" depends="compile"
315       description="create a static library">
316     <staticlib command="${archutil}ar crsv"
317            file="${build}/libinkscape.a">
318        <fileset dir="${build}/obj">
319            <exclude name="main.o"/>
320            <exclude name="winmain.o"/>
321            <exclude name="inkview.o"/>
322        </fileset>
323     </staticlib>
324   </target>
328   <!--
329   ########################################################################
330   ## T A R G E T    :    I 1 8 N
331   ########################################################################
332   -->
333   <target name="i18n" depends="compile"
334       description="compile gettext .po files to .mo">
336     <msgfmt todir="${build}/locale" owndir="true"
337          out="LC_MESSAGES/inkscape.mo">
338        <fileset dir="po">
339        </fileset>
340     </msgfmt>
341   </target>
347   <!--
348   ########################################################################
349   ## T A R G E T    :    L I N K
350   ########################################################################
351   -->
352   <target name="link" depends="lib"
353       description="link objects and library to create executable">
355     <rc command="${archutil}windres" 
356         file="${src}/inkscape.rc"
357         out="${build}/inkres.o">
358         <flags>
359         --include-dir=${src}
360         </flags>
361     </rc>
362     <link command="${arch}g++" out="${build}/inkscape.exe"
363               strip="true" symfile="${build}/inkscape.dbg"
364               stripcommand="${archutil}strip"
365               objcopycommand="${archutil}objcopy"
366               >
367        <flags>
368            -mwindows
369        </flags>
370        <fileset dir="${build}">
371            <include name="inkres.o"/>
372            <include name="obj/main.o"/>
373            <include name="obj/winmain.o"/>
374            <include name="libinkscape.a"/>
375        </fileset>
376        <libs>
377            -L${gtk}/lib
378            -lgtkmm-2.4 -lgdkmm-2.4 -lglibmm-2.4
379            -latkmm-1.6 -lpangomm-1.4 -lsigc-2.0
380            -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0
381            -lgdk_pixbuf-2.0
382            -lpangocairo-1.0 -lpangoft2-1.0 -lpangowin32-1.0 -lpango-1.0
383            -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0
384            <!-- PERL -->
385            -L${gtk}/perl/lib/CORE -lperl58
386            <!-- PYTHON -->
387            -L${gtk}/python/libs -lpython25
388            ${gtk}/bin/libxml2.dll
389            ${gtk}/bin/libxslt.dll
390            -lpoppler-cairo -lpoppler
391            -lcairo.dll
392            -lwpg-0.1.dll -lwpg-stream-0.1.dll
393            -lwpd-0.8.dll -lwpd-stream-0.8.dll
394            ${gtk}/lib/iconv.lib
395            -lMagick++ -lWand -lMagick
396            -lfreetype.dll -lfontconfig.dll
397            -lssl -lcrypto
398            -llcms.dll
399            -lpng -ljpeg.dll -ltiff.dll -lpopt ${gtk}/lib/zdll.lib
400            -lgc
401                    -lws2_32 -lintl -lgdi32 -lcomdlg32 -lm
402            <!-- 2geom -->
403            <!-- -l2geom -->
404        </libs>
405     </link>
406   </target>
407   
412   <!--
413   ########################################################################
414   ## T A R G E T    :    L I N K I N K V I E W
415   ########################################################################
416   -->
417   <target name="linkinkview" depends="lib"
418         description="link objects and library to create Inkview executable">
420     <rc command="${archutil}windres" 
421         file="${src}/inkview.rc"
422         out="${build}/inkviewres.o">
423         <flags>
424         --include-dir=${src}
425         </flags>
426     </rc>
427     <link command="${arch}g++" out="${build}/inkview.exe"
428               strip="true" symfile="${build}/inkview.dbg"
429               stripcommand="${archutil}strip"
430               objcopycommand="${archutil}objcopy"
431               >
432        <flags>
433        </flags>
434        <fileset dir="${build}">
435            <include name="inkviewres.o"/>
436            <include name="obj/inkview.o"/>
437            <include name="libinkscape.a"/>
438        </fileset>
439        <libs>
440            -L${gtk}/lib
441            -lgtkmm-2.4 -lgdkmm-2.4 -lglibmm-2.4
442            -latkmm-1.6 -lpangomm-1.4 -lsigc-2.0
443            -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0
444            -lgdk_pixbuf-2.0
445            -lpangocairo-1.0 -lpangoft2-1.0 -lpangowin32-1.0 -lpango-1.0
446            -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lcairo
447            <!-- PERL -->
448            -L${gtk}/perl/lib/CORE -lperl58
449            <!-- PYTHON -->
450            -L${gtk}/python/libs -lpython24
451            ${gtk}/bin/libxml2.dll
452            ${gtk}/bin/libxslt.dll
453            ${gtk}/lib/iconv.lib
454            -lfreetype.dll -lfontconfig.dll
455            -llcms.dll
456            -lssl -lcrypto
457            -lpng -lpopt ${gtk}/lib/zdll.lib
458            -lgc -mwindows -lws2_32 -lintl -lm
459        </libs>
460     </link>
461   </target>
465   <!--
466   ########################################################################
467   ## T A R G E T    :    D I S T
468   ########################################################################
469   -->
470   <target name="dist" depends="link,i18n"
471       description="generate the distribution directory with all needed files">
473     <!-- Create the distribution directory -->
474     <copy file="${build}/inkscape.exe" todir="${dist}"/>
475     <copy file="${build}/inkscape.dbg" todir="${dist}"/>
476     <copy file="AUTHORS" todir="${dist}"/>
477     <copy file="COPYING" todir="${dist}"/>
478     <copy file="COPYING.LIB" todir="${dist}"/>
479     <copy file="NEWS" todir="${dist}"/>
480     <copy file="README" todir="${dist}"/>
481     <copy file="TRANSLATORS" todir="${dist}"/>
482     <copy file="${gtk}/bin/libatkmm-1.6-1.dll" todir="${dist}"/>
483     <copy file="${gtk}/bin/libglibmm-2.4-1.dll" todir="${dist}"/>
484     <copy file="${gtk}/bin/libgtkmm-2.4-1.dll" todir="${dist}"/>
485     <copy file="${gtk}/bin/libgdkmm-2.4-1.dll" todir="${dist}"/>
486     <copy file="${gtk}/bin/libpangomm-1.4-1.dll" todir="${dist}"/>
487     <copy file="${gtk}/bin/libcairomm-1.0-1.dll" todir="${dist}"/>
488     <copy file="${gtk}/bin/libsigc-2.0-0.dll" todir="${dist}"/>
489     <copy file="${gtk}/bin/freetype6.dll" todir="${dist}"/>
490     <copy file="${gtk}/bin/libatk-1.0-0.dll" todir="${dist}"/>
491     <copy file="${gtk}/bin/libgdk-win32-2.0-0.dll" todir="${dist}"/>
492     <copy file="${gtk}/bin/libgdk_pixbuf-2.0-0.dll" todir="${dist}"/>
493     <copy file="${gtk}/bin/libglib-2.0-0.dll" todir="${dist}"/>
494     <copy file="${gtk}/bin/libgmodule-2.0-0.dll" todir="${dist}"/>
495     <copy file="${gtk}/bin/libgobject-2.0-0.dll" todir="${dist}"/>
496     <copy file="${gtk}/bin/libgtk-win32-2.0-0.dll" todir="${dist}"/>
497     <copy file="${gtk}/bin/libgthread-2.0-0.dll" todir="${dist}"/>
498     <copy file="${gtk}/bin/libcairo-2.dll" todir="${dist}"/>
499     <copy file="${gtk}/bin/libpoppler-2.dll" todir="${dist}"/>
500     <copy file="${gtk}/bin/libpangocairo-1.0-0.dll" todir="${dist}"/>
501     <copy file="${gtk}/bin/libpango-1.0-0.dll" todir="${dist}"/>
502     <copy file="${gtk}/bin/libpangoft2-1.0-0.dll" todir="${dist}"/>
503     <copy file="${gtk}/bin/libpangowin32-1.0-0.dll" todir="${dist}"/>
504     <copy file="${gtk}/bin/freetype6.dll" todir="${dist}"/>
505     <copy file="${gtk}/bin/libfontconfig-1.dll" todir="${dist}"/>
506     <copy file="${gtk}/bin/libxml2.dll" todir="${dist}"/>
507     <copy file="${gtk}/bin/libxslt.dll" todir="${dist}"/>
508     <copy file="${gtk}/bin/libexpat.dll" todir="${dist}"/>
509     <!--<copy file="${gtk}/bin/libexpat.dll" tofile="${dist}/xmlparse.dll"/>-->
510     <copy file="${gtk}/bin/libwpg-0.1.dll" todir="${dist}"/>
511     <copy file="${gtk}/bin/libwpg-stream-0.1.dll" todir="${dist}"/>
512     <copy file="${gtk}/bin/libwpd-0.8.dll" todir="${dist}"/>
513     <copy file="${gtk}/bin/libwpd-stream-0.8.dll" todir="${dist}"/>
514     <copy file="${gtk}/bin/jpeg62.dll" todir="${dist}"/>
515     <copy file="${gtk}/bin/libpng13.dll" todir="${dist}"/>
516     <copy file="${gtk}/bin/libtiff3.dll" todir="${dist}"/>
517     <copy file="${gtk}/bin/msvcr70.dll" todir="${dist}"/>
518     <copy file="${gtk}/bin/msvcr71.dll" todir="${dist}"/>
519     <copy file="${gtk}/bin/zlib1.dll" todir="${dist}"/>
520     <copy file="${gtk}/bin/iconv.dll" todir="${dist}"/>
521     <copy file="${gtk}/bin/libpopt-0.dll" todir="${dist}"/>
522     <copy file="${gtk}/bin/liblcms-1.dll" todir="${dist}"/>
523     <copy file="${gtk}/bin/intl.dll" todir="${dist}"/>
524     <copy file="${gtk}/bin/intl.dll" tofile="${dist}/libintl-2.dll"/>
526     <!-- MSGFMT files -->
527     <copy todir="${dist}">
528         <fileset dir="${build}/locale">
529           <exclude name=".*\.am"/>
530         </fileset>
531     </copy>
533     <!-- GTK -->
534     <copy todir="${dist}"> <fileset dir="${gtk}/etc"/> </copy>
535     <copy todir="${dist}/lib"> <fileset dir="${gtk}/lib/gtk-2.0"/> </copy>
536     <copy todir="${dist}/lib"> <fileset dir="${gtk}/lib/glib-2.0"/> </copy>
537     <copy todir="${dist}/lib"> <fileset dir="${gtk}/lib/locale"/> </copy>
538     <copy todir="${dist}">
539         <fileset dir="share">
540           <exclude name=".*\.am"/>
541         </fileset>
542     </copy>
543     <copy todir="${dist}/share"> <fileset dir="${gtk}/share/themes"/> </copy>
544     <mkdir dir="${dist}/data"/>
545     <mkdir dir="${dist}/locale"/>
546     <mkdir dir="${dist}/modules"/>
547     <mkdir dir="${dist}/plugins"/>
548     <copy file="${gtk}/bin/gdb.exe" todir="${dist}"/>
550     <!-- Necessary to run extensions on windows if it is not in the path -->
551     <copy file="${gtk}/bin/gspawn-win32-helper.exe" todir="${dist}"/>
552     <copy file="${gtk}/bin/gspawn-win32-helper-console.exe" todir="${dist}"/>
554     <!-- PERL -->
555     <copy file="${gtk}/perl/bin/perl58.dll" todir="${dist}"/>
557     <!-- PYTHON -->
558     <copy file="${gtk}/python/python25.dll" todir="${dist}"/>
559     <copy file="${gtk}/python/python.exe" todir="${dist}/python"/>
560     <copy todir="${dist}/python"> <fileset dir="${gtk}/python/Lib"/> </copy>
561     <copy todir="${dist}/python"> <fileset dir="${gtk}/python/DLLs"/> </copy>
562     <copy todir="${dist}/python"> <fileset dir="${gtk}/python/Scripts"/> </copy>
564     <!--<copy file="${gtk}/share/themes/MS-Windows/gtk-2.0/gtkrc" todir="${dist}/etc/gtk-2.0"/>-->
565     <makefile file="${dist}/etc/gtk-2.0/gtkrc">
566     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"
567     gtk-toolbar-icon-size = small-toolbar
569     # disable images in buttons. i've only seen ugly delphi apps use this feature.
570     gtk-button-images = 0
572     # enable/disable images in menus. most "stock" microsoft apps don't use these, except sparingly.
573     # the office apps use them heavily, though.
574     gtk-menu-images = 1
576     # use the win32 button ordering instead of the GNOME HIG one, where applicable
577     gtk-alternative-button-order = 1
579     style "msw-default"
580     {
581       GtkWidget::interior-focus = 1
582       GtkOptionMenu::indicator-size = { 9, 5 }
583       GtkOptionMenu::indicator-spacing = { 7, 5, 2, 2 }
584       GtkSpinButton::shadow-type = in
586       # Owen and I disagree that these should be themable
587       #GtkUIManager::add-tearoffs = 0
588       #GtkComboBox::add-tearoffs = 0
590       GtkComboBox::appears-as-list = 1
591       GtkComboBox::focus-on-click = 0
593       GOComboBox::add_tearoffs = 0
595       GtkTreeView::allow-rules = 0
596       GtkTreeView::expander-size = 12
598       GtkExpander::expander-size = 12
600       GtkScrolledWindow::scrollbar_spacing = 1
602       GtkSeparatorMenuItem::horizontal-padding = 2
604       engine "wimp"
605       {
606       }
607     }
608     class "*" style "msw-default"
609     </makefile>
611   </target>
616   <!--
617   ########################################################################
618   ## T A R G E T    :    D I S T - A L L
619   ########################################################################
620   -->
621   <target name="dist-all" depends="dist,linkinkview"
622         description="generate the distribution, along with inkview" >
624     <copy file="${build}/inkview.exe" todir="${dist}"/>
625     <copy file="${build}/inkview.dbg" todir="${dist}"/>
626   </target>
631   <!--
632   ########################################################################
633   ## T A R G E T    :    C L E A N
634   ########################################################################
635   -->
636   <target name="clean"
637         description="clean up.  deleting build and distro dirs" >
639     <delete dir="${build}"/>
640     <delete dir="${dist}"/>
641     <delete file="build.dep"/>
642     <delete file="config.h"/>
644   </target>
648 </project>
649 <!--
650 ########################################################################
651 ## E N D
652 ########################################################################
653 -->