Code

update to latest 2geom. this adds gsl dependency, doesn't seem to make inskape execut...
[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-2008 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 environment="env"/>
45   <property name="version"       value="0.46+devel"/>
46   <property name="src"           location="src"/>
47   <property name="lib"           location="lib"/>
48   <property name="build"         location="build"/>
49   <property name="dist"          location="inkscape"/>
51   <!-- Use these settings for the native compiler -->  
52   <!-- -->
53   <property name="arch"          value="mingw32-"/>
54   <property name="archutil"      value=""/>
55   <property name="gtk"           location="c:/devlibs"/>
56   <!-- -->
58   <!-- Use these settings for the cross compiler -->  
59   <!--
60   <property name="arch"          value="i686-pc-mingw32-"/>
61   <property name="archutil"      value="${arch}"/>
62   <property name="gtk"           location="/target"/>
63   -->
65   <!-- Extra properties -->  
66   <property name="refresh"       value="false"/>
69   <!--
70   ########################################################################
71   ## T A R G E T    :    I N I T
72   ########################################################################
73   -->
74   <target name="init"
75       description=
76       "Do all preparatory tasks, like make directories and copy files">
79     <!-- example of the <pkg-config> task
80       query can be cflags, libs, or both
81       prefix overrides the value of prefix="" in the file
82       the result of this entry can be later used as ${gtkmm}
83     -->
84     <!--
85     <pkg-config name="gtkmm-2.4" path="${gtk}/lib/pkgconfig"
86                 query="both" property="gtkmm" prefix="${gtk}"/>
87     -->
89     <mkdir dir="${build}"/>
90     <mkdir dir="${build}/java"/>
91     <mkdir dir="${build}/java/classes"/>
92     <mkdir dir="${build}/java/lib"/>
94     <mkdir dir="${build}"/>
95     <mkdir dir="${dist}"/>
96     <copy file="${src}/helper/sp-marshal.h.mingw"
97           tofile="${src}/helper/sp-marshal.h"/>
98     <copy file="${src}/helper/sp-marshal.cpp.mingw"
99           tofile="${src}/helper/sp-marshal.cpp"/>
100     <makefile file="inkscape_version.h">
101         #define INKSCAPE_VERSION "${version}"
102     </makefile>
103     <makefile file="config.h">
104         #ifndef _CONFIG_H_
105         #define _CONFIG_H_
107         #ifndef WIN32
108         #define WIN32
109         #endif
111         /*######################################
112         ## This is for require-config.h, whose
113         ## purpose I cannot fathom.
114         ######################################*/
115         
116         #define PACKAGE_TARNAME
118         /*######################################
119         #### RESOURCE DIRECTORIES
120         ######################################*/
122         #define INKSCAPE_DATADIR       "."
123         #define PACKAGE_LOCALE_DIR     "locale"
126         /*######################################
127         #### OTHER DEFINITIONS
128         ######################################*/
130         #define GETTEXT_PACKAGE "inkscape"
132         #define PACKAGE_STRING                VERSION
134         #define HAVE_GETOPT_H                 1
135         #define HAVE_STRING_H                 1
136         #define HAVE_LIBINTL_H                1
137         #define HAVE_MALLOC_H                 1
138         #define HAVE_STDLIB_H                 1
139         #define HAVE_SYS_STAT_H               1
140         #define HAVE_INTTYPES_H               1
142         #define ENABLE_LCMS                   1
144         #define ENABLE_NLS                    1
145         #define HAVE_BIND_TEXTDOMAIN_CODESET  1
147         /* keep binreloc off */
148         #define BR_PTHREADS 0
149         #undef ENABLE_BINRELOC
151         /* CairoPDF options */
152         #define HAVE_CAIRO_PDF                1
153         #define PANGO_ENABLE_ENGINE           1
154         #define RENDER_WITH_PANGO_CAIRO       1
156         #define HAVE_GTK_WINDOW_FULLSCREEN    1
157         
158         /* internal interpreter */
159         #define WITH_PYTHON                   1
161         /* shared whiteboard */
162         #define WITH_INKBOARD                 1
163         #define HAVE_SSL                      1
164         
165         /* use poppler for pdf import? */
166         #define HAVE_POPPLER                  1
167         #define HAVE_POPPLER_CAIRO            1
169         /* do we want bitmap manipulation? */
170         #define WITH_IMAGE_MAGICK             1
172         /* Allow reading WordPerfect? */
173         #define WITH_LIBWPG                   1
175         #endif /* _CONFIG_H_ */
176     </makefile>
177   </target>
181   <!--
182   ########################################################################
183   ## T A R G E T    :    T O U C H A B O U T
184   ########################################################################
185   -->
186   <target name="touchabout"
187       description="update the modification time of aboutdialog.cpp">
188     <!-- not good <touch file="${src}/ui/dialog/aboutdialog.cpp"/> -->
189     <!-- better -->
190     <delete file="${build}/obj/ui/dialog/aboutdialog.o"/>
191   </target>
194   <!--
195   ########################################################################
196   ## T A R G E T    :    C O M P I L E
197   ########################################################################
198   -->
199   <target name="compile" depends="init"
200         description="compile the source to .o" >
202     <!-- Compile from source to build -->
203     <cc cc="${arch}gcc" cxx="${arch}g++"
204              destdir="${build}/obj"
205                          continueOnError="true"
206                          refreshCache="${refresh}">
207         <fileset dir="${src}">
208             <!-- THINGS TO EXCLUDE -->
209             <exclude name="2geom/chebyshev.cpp"/>
210             <exclude name="ast/.*"/>
211             <exclude name="bonobo/.*"/>
212             <exclude name="deptool.cpp"/>
213             <exclude name="test-all.cpp"/>
214             <exclude name="display/testnr.cpp"/>
215             <exclude name="display/bezier-utils-test.cpp"/>
216             <exclude name="dom/work/.*"/>
217             <exclude name="dom/odf/SvgOdg.cpp"/>
218             <exclude name="extension/api.cpp"/>
219             <exclude name="extension/dxf2svg/.*"/>
220             <exclude name="extension/implementation/plugin.cpp"/>
221             <exclude name="extension/script/bindtest.cpp"/>
222             <exclude name="extension/script/cpptest.cpp"/>
223             <exclude name="extension/plugin/.*"/>
224             <exclude name="extract-uri-test.cpp"/>
225             <exclude name="helper/units-test.cpp"/>
226             <!-- exclude name="inkview.cpp"/-->
227             <exclude name="libnr/test-nr.cpp"/>
228             <exclude name="libnr/test-nr-main.cpp"/>
229             <exclude name="libnr/testnr.cpp"/>
230             <exclude name="libnr/in-svg-plane-test.cpp"/>
231             <exclude name="libnr/nr-compose-reference.cpp"/>
232             <exclude name="libnr/nr-compose-test.cpp"/>
233             <exclude name="libnr/nr-matrix-test.cpp"/>
234             <exclude name="libnr/nr-point-fns-test.cpp"/>
235             <exclude name="libnr/nr-rotate-fns-test.cpp"/>
236             <exclude name="libnr/nr-rotate-test.cpp"/>
237             <exclude name="libnr/nr-scale-test.cpp"/>
238             <exclude name="libnr/nr-translate-test.cpp"/>
239             <exclude name="libnr/nr-types-test.cpp"/>
240             <exclude name="livarot/Path-test.cpp"/>
241             <exclude name="mod360-test.cpp"/>
242             <exclude name="trace/potrace/potest.cpp"/>
243             <exclude name="round-test.cpp"/>
244             <exclude name="sp-gradient-test.cpp"/>
245             <exclude name="svg/ftos.cpp"/>
246             <exclude name="svg/test-svg.cpp"/>
247             <exclude name="svg/test-svg-main.cpp"/>
248             <exclude name="utest/.*"/>
249             <exclude name="widgets/test-widgets.cpp"/>
250             <exclude name="xml/quote-test.cpp"/>
251             <exclude name="xml/repr-action-test.cpp"/>
252             <exclude name="xml/test-xml.cpp"/>
253             <exclude name="xml/test-xml-main.cpp"/>
254             <exclude name="io/streamtest.cpp"/>
255             <!--JABBER-->
256             <exclude name="pedro/pedrogui.cpp"/>
257             <exclude name="pedro/pedrogui.h"/>
258             <exclude name="pedro/work/.*"/>
259             <!--WHITEBOARD-->
260             <exclude name="ui/dialog/session-player.cpp"/>
261             <exclude name="ui/dialog/whiteboard-connect.cpp"/>
262             <exclude name="ui/dialog/whiteboard-sharewithchat.cpp"/>
263             <exclude name="ui/dialog/whiteboard-sharewithuser.cpp"/>
264             <exclude name="dialogs/whiteboard-connect-dialog.cpp"/>
265             <exclude name="dialogs/whiteboard-common-dialog.cpp"/>
266             <exclude name="dialogs/whiteboard-sharewithchat-dialog.cpp"/>
267             <exclude name="dialogs/whiteboard-sharewithuser-dialog.cpp"/>
268             <exclude name="jabber_whiteboard/node-tracker.cpp"/>
269             <exclude name="jabber_whiteboard/node-utilities.cpp"/>
270             <!--OVERLAP-->
271             <exclude name="removeoverlap/placement_SolveVPSC.cpp"/>
272             <exclude name="removeoverlap/placement_SolveVPSC.h"/>
273             <exclude name="removeoverlap/test.cpp"/>
274             <exclude name="removeoverlap/remove_rectangle_overlap-test.cpp"/>
275             <exclude name="removeoverlap/remove_rectangle_overlap-test.h"/>
276         </fileset>
277         <excludeinc dir="${src}">
278             <file name="extension/param"/>
279         </excludeinc>
280         <flags>
281             -Wall -Wformat -Werror=format-security -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch
282             -O2
283             -mms-bitfields
284         </flags>
285         <defines>
286             -DVERSION=\"${version}\"
287             -DHAVE_CONFIG_H
288             -D_INTL_REDIRECT_INLINE
289             -DHAVE_SSL
290             -DRELAYTOOL_SSL="static const int libssl_is_present=1; static int __attribute__((unused)) libssl_symbol_is_present(char *s){ return 1; }" <!-- inkboard -->
291         </defines>
292         <includes>
293             -I${gtk}/include
294             <!-- GTK / GTKMM -->
295             -I${gtk}/include/glibmm-2.4
296             -I${gtk}/lib/glibmm-2.4/include
297             -I${gtk}/include/gtkmm-2.4
298             -I${gtk}/lib/gtkmm-2.4/include
299             -I${gtk}/include/gdkmm-2.4
300             -I${gtk}/lib/gdkmm-2.4/include
301             -I${gtk}/include/pangomm-1.4
302             -I${gtk}/include/atkmm-1.6
303             -I${gtk}/include/cairomm-1.0
304             -I${gtk}/include/sigc++-2.0
305             -I${gtk}/lib/sigc++-2.0/include
306             -I${gtk}/include/gtk-2.0
307             -I${gtk}/lib/gtk-2.0/include
308             -I${gtk}/include/atk-1.0
309             -I${gtk}/include/pango-1.0
310             -I${gtk}/include/glib-2.0
311             -I${gtk}/lib/glib-2.0/include
312             <!-- OTHER -->
313             -I${gtk}/include/libxml2 
314             -I${gtk}/include/freetype2
315             -I${gtk}/include/cairo
316             -I${gtk}/include/poppler
317             -I${gtk}/include/gc
318             -I${gtk}/include/libwpg-0.1
319             -I${gtk}/include/libwpd-0.8
320             <!-- PERL -->
321             <!-- -Wno-comment -I${gtk}/perl/lib/CORE -->
322             <!-- PYTHON -->
323             -I${gtk}/python/include
324             <!-- JAVA -->
325             -I${src}/bind/javainc -I${src}/bind/javainc/win32
326         </includes>
327     </cc>
328   </target>
329   
331   <!--
332   ########################################################################
333   ## T A R G E T    :    L I B
334   ########################################################################
335   -->
336   <!-- set depends to "compile,java" if you want to test that -->
337   <target name="lib" depends="compile"
338       description="create a static library">
339     <staticlib command="${archutil}ar crsv"
340            file="${build}/libinkscape.a">
341        <fileset dir="${build}/obj">
342            <exclude name="main.o"/>
343            <exclude name="winmain.o"/>
344            <exclude name="inkview.o"/>
345        </fileset>
346     </staticlib>
347   </target>
351   <!--
352   ########################################################################
353   ## T A R G E T    :    I 1 8 N
354   ########################################################################
355   -->
356   <target name="i18n" depends="compile"
357       description="compile gettext .po files to .mo">
359     <msgfmt todir="${build}/locale" owndir="true"
360          out="LC_MESSAGES/inkscape.mo">
361        <fileset dir="po">
362        </fileset>
363     </msgfmt>
364   </target>
370   <!--
371   ########################################################################
372   ## T A R G E T    :    L I N K
373   ########################################################################
374   -->
375   <target name="link" depends="lib"
376       description="link objects and library to create executable">
378     <rc command="${archutil}windres" 
379         file="${src}/inkscape.rc"
380         out="${build}/inkres.o">
381         <flags>
382         --include-dir=${src}
383         </flags>
384     </rc>
385     <link command="${arch}g++" out="${build}/inkscape.exe"
386               strip="true" symfile="${build}/inkscape.dbg"
387               stripcommand="${archutil}strip"
388               objcopycommand="${archutil}objcopy">
389        <flags>
390            -mwindows
391        </flags>
392        <fileset dir="${build}">
393            <include name="inkres.o"/>
394            <include name="obj/main.o"/>
395            <include name="obj/winmain.o"/>
396            <include name="libinkscape.a"/>
397        </fileset>
398        <libs>
399            -L${gtk}/lib
400            -lpoppler-cairo -lpoppler-glib -lpoppler.dll 
401            -lgtkmm-2.4 -lgdkmm-2.4 -lglibmm-2.4 
402            -latkmm-1.6 -lpangomm-1.4 -lsigc-2.0
403            -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0
404            -lgdk_pixbuf-2.0
405            -lpangocairo-1.0 -lpangoft2-1.0 -lpangowin32-1.0 -lpango-1.0
406            -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0
407            -lgsl
408            <!-- PERL -->
409            -L${gtk}/perl/lib/CORE -lperl58
410            <!-- PYTHON -->
411            -L${gtk}/python/libs -lpython25
412            ${gtk}/bin/libxml2.dll
413            ${gtk}/bin/libxslt.dll
414            -lcairo.dll
415            -lcairomm-1.0.dll
416                    -lwpg-0.1.dll -lwpg-stream-0.1.dll
417            -lwpd-0.8.dll -lwpd-stream-0.8.dll
418            ${gtk}/lib/iconv.lib
419            -lMagick++ -lWand -lMagick
420            -lfreetype.dll -lfontconfig.dll
421            -lssl -lcrypto
422            -llcms.dll
423            -lpng -ljpeg.dll -ltiff.dll -lpopt ${gtk}/lib/zdll.lib
424            -lgc
425                    -lws2_32 -lintl -lgdi32 -lcomdlg32 -lm
426            <!-- 2geom -->
427            <!-- -l2geom -->
428        </libs>
429     </link>
430   </target>
431   
436   <!--
437   ########################################################################
438   ## T A R G E T    :    L I N K I N K V I E W
439   ########################################################################
440   -->
441   <target name="linkinkview" depends="lib"
442         description="link objects and library to create Inkview executable">
444     <rc command="${archutil}windres" 
445         file="${src}/inkview.rc"
446         out="${build}/inkviewres.o">
447         <flags>
448         --include-dir=${src}
449         </flags>
450     </rc>
451     <link command="${arch}g++" out="${build}/inkview.exe"
452               strip="true" symfile="${build}/inkview.dbg"
453               stripcommand="${archutil}strip"
454               objcopycommand="${archutil}objcopy">
455        <flags>
456        </flags>
457        <fileset dir="${build}">
458            <include name="inkviewres.o"/>
459            <include name="obj/inkview.o"/>
460            <include name="libinkscape.a"/>
461        </fileset>
462        <libs>
463            -L${gtk}/lib
464            -lpoppler-cairo -lpoppler-glib -lpoppler.dll 
465            -lgtkmm-2.4 -lgdkmm-2.4 -lglibmm-2.4
466            -latkmm-1.6 -lpangomm-1.4 -lsigc-2.0
467            -lgtk-win32-2.0 -lgdk-win32-2.0 -latk-1.0
468            -lgdk_pixbuf-2.0
469            -lpangocairo-1.0 -lpangoft2-1.0 -lpangowin32-1.0 -lpango-1.0
470            -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lcairo -lcairomm-1.0
471            <!-- PERL -->
472            -L${gtk}/perl/lib/CORE -lperl58
473            <!-- PYTHON -->
474            -L${gtk}/python/libs -lpython25
475            ${gtk}/bin/libxml2.dll
476            ${gtk}/bin/libxslt.dll
477            ${gtk}/lib/iconv.lib
478                    -lcairo.dll -lcairomm-1.0.dll
479            -lwpg-0.1.dll -lwpg-stream-0.1.dll
480            -lMagick++ -lWand -lMagick
481            -lfreetype.dll -lfontconfig.dll
482            -llcms.dll
483            -lssl -lcrypto
484            -lpng -ljpeg.dll -ltiff.dll -lpopt ${gtk}/lib/zdll.lib
485            -lgc -mwindows
486                    -lws2_32 -lintl -lgdi32 -lcomdlg32 -lm
487        </libs>
488     </link>
489   </target>
493   <!--
494   ########################################################################
495   ## T A R G E T    :    D I S T
496   ########################################################################
497   -->
498   <target name="dist" depends="link,i18n"
499       description="generate the distribution directory with all needed files">
501     <!-- Create the distribution directory -->
502     <copy file="${build}/inkscape.exe" todir="${dist}"/>
503         <copy file="${build}/inkscape.dbg" todir="${dist}"/>
504     <copy file="AUTHORS" todir="${dist}"/>
505     <copy file="COPYING" todir="${dist}"/>
506     <copy file="COPYING.LIB" todir="${dist}"/>
507     <copy file="NEWS" todir="${dist}"/>
508     <copy file="README" todir="${dist}"/>
509     <copy file="TRANSLATORS" todir="${dist}"/>
510     <copy file="${gtk}/bin/libatkmm-1.6-1.dll" todir="${dist}"/>
511     <copy file="${gtk}/bin/libglibmm-2.4-1.dll" todir="${dist}"/>
512     <copy file="${gtk}/bin/libgtkmm-2.4-1.dll" todir="${dist}"/>
513     <copy file="${gtk}/bin/libgdkmm-2.4-1.dll" todir="${dist}"/>
514     <copy file="${gtk}/bin/libpangomm-1.4-1.dll" todir="${dist}"/>
515     <copy file="${gtk}/bin/libcairomm-1.0-1.dll" todir="${dist}"/>
516     <copy file="${gtk}/bin/libsigc-2.0-0.dll" todir="${dist}"/>
517     <copy file="${gtk}/bin/freetype6.dll" todir="${dist}"/>
518     <copy file="${gtk}/bin/libatk-1.0-0.dll" todir="${dist}"/>
519     <copy file="${gtk}/bin/libgdk-win32-2.0-0.dll" todir="${dist}"/>
520     <copy file="${gtk}/bin/libgdk_pixbuf-2.0-0.dll" todir="${dist}"/>
521     <copy file="${gtk}/bin/libglib-2.0-0.dll" todir="${dist}"/>
522     <copy file="${gtk}/bin/libgmodule-2.0-0.dll" todir="${dist}"/>
523     <copy file="${gtk}/bin/libgobject-2.0-0.dll" todir="${dist}"/>
524     <copy file="${gtk}/bin/libgtk-win32-2.0-0.dll" todir="${dist}"/>
525     <copy file="${gtk}/bin/libgthread-2.0-0.dll" todir="${dist}"/>
526     <copy file="${gtk}/bin/libcairo-2.dll" todir="${dist}"/>
527     <copy file="${gtk}/bin/libpoppler-3.dll" todir="${dist}"/>
528     <copy file="${gtk}/bin/libpangocairo-1.0-0.dll" todir="${dist}"/>
529     <copy file="${gtk}/bin/libpango-1.0-0.dll" todir="${dist}"/>
530     <copy file="${gtk}/bin/libpangoft2-1.0-0.dll" todir="${dist}"/>
531     <copy file="${gtk}/bin/libpangowin32-1.0-0.dll" todir="${dist}"/>
532     <copy file="${gtk}/bin/freetype6.dll" todir="${dist}"/>
533     <copy file="${gtk}/bin/libfontconfig-1.dll" todir="${dist}"/>
534     <copy file="${gtk}/bin/libxml2.dll" todir="${dist}"/>
535     <copy file="${gtk}/bin/libxslt.dll" todir="${dist}"/>
536     <copy file="${gtk}/bin/libexpat.dll" todir="${dist}"/>
537     <!--<copy file="${gtk}/bin/libexpat.dll" tofile="${dist}/xmlparse.dll"/>-->
538     <copy file="${gtk}/bin/libwpg-0.1.dll" todir="${dist}"/>
539     <copy file="${gtk}/bin/libwpg-stream-0.1.dll" todir="${dist}"/>
540     <copy file="${gtk}/bin/libwpd-0.8.dll" todir="${dist}"/>
541     <copy file="${gtk}/bin/libwpd-stream-0.8.dll" todir="${dist}"/>
542     <copy file="${gtk}/bin/jpeg62.dll" todir="${dist}"/>
543     <copy file="${gtk}/bin/libpng13.dll" todir="${dist}"/>
544     <copy file="${gtk}/bin/libtiff3.dll" todir="${dist}"/>
545     <copy file="${gtk}/bin/msvcr70.dll" todir="${dist}"/>
546     <copy file="${gtk}/bin/msvcr71.dll" todir="${dist}"/>
547     <copy file="${gtk}/bin/zlib1.dll" todir="${dist}"/>
548     <copy file="${gtk}/bin/iconv.dll" todir="${dist}"/>
549     <copy file="${gtk}/bin/libpopt-0.dll" todir="${dist}"/>
550     <copy file="${gtk}/bin/liblcms-1.dll" todir="${dist}"/>
551     <copy file="${gtk}/bin/intl.dll" todir="${dist}"/>
552     <copy file="${gtk}/bin/intl.dll" tofile="${dist}/libintl-2.dll"/>
554     <!-- MSGFMT files -->
555     <copy todir="${dist}">
556         <fileset dir="${build}/locale">
557           <exclude name=".*\.am"/>
558         </fileset>
559     </copy>
561     <!-- GTK -->
562     <copy todir="${dist}"> <fileset dir="${gtk}/etc"/> </copy>
563     <copy todir="${dist}/lib"> <fileset dir="${gtk}/lib/gtk-2.0"/> </copy>
564     <copy todir="${dist}/lib"> <fileset dir="${gtk}/lib/glib-2.0"/> </copy>
565     <copy todir="${dist}/lib"> <fileset dir="${gtk}/lib/locale"/> </copy>
566     <copy todir="${dist}">
567         <fileset dir="share">
568           <exclude name=".*\.am"/>
569         </fileset>
570     </copy>
571     <copy todir="${dist}/share"> <fileset dir="${gtk}/share/themes"/> </copy>
572     <mkdir dir="${dist}/data"/>
573     <mkdir dir="${dist}/locale"/>
574     <mkdir dir="${dist}/modules"/>
575     <mkdir dir="${dist}/plugins"/>
576     <copy file="${gtk}/bin/gdb.exe" todir="${dist}"/>
578     <!-- Necessary to run extensions on windows if it is not in the path -->
579     <copy file="${gtk}/bin/gspawn-win32-helper.exe" todir="${dist}"/>
580     <copy file="${gtk}/bin/gspawn-win32-helper-console.exe" todir="${dist}"/>
582     <!-- PERL -->
583     <copy file="${gtk}/perl/bin/perl58.dll" todir="${dist}"/>
585     <!-- PYTHON -->
586     <copy file="${gtk}/python/python25.dll" todir="${dist}"/>
587     <copy file="${gtk}/python/python.exe" todir="${dist}/python"/>
588     <copy file="${gtk}/python/pythonw.exe" todir="${dist}/python"/>
589     <copy todir="${dist}/python"> <fileset dir="${gtk}/python/Lib"/> </copy>
590     <copy todir="${dist}/python"> <fileset dir="${gtk}/python/DLLs"/> </copy>
591     <copy todir="${dist}/python"> <fileset dir="${gtk}/python/Scripts"/> </copy>
593     <!--<copy file="${gtk}/share/themes/MS-Windows/gtk-2.0/gtkrc" todir="${dist}/etc/gtk-2.0"/>-->
594     <makefile file="${dist}/etc/gtk-2.0/gtkrc">
595     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"
596     gtk-toolbar-icon-size = small-toolbar
598     # disable images in buttons. i've only seen ugly delphi apps use this feature.
599     gtk-button-images = 0
601     # enable/disable images in menus. most "stock" microsoft apps don't use these, except sparingly.
602     # the office apps use them heavily, though.
603     gtk-menu-images = 1
605     # use the win32 button ordering instead of the GNOME HIG one, where applicable
606     gtk-alternative-button-order = 1
608     style "msw-default"
609     {
610       GtkWidget::interior-focus = 1
611       GtkOptionMenu::indicator-size = { 9, 5 }
612       GtkOptionMenu::indicator-spacing = { 7, 5, 2, 2 }
613       GtkSpinButton::shadow-type = in
615       # Owen and I disagree that these should be themable
616       #GtkUIManager::add-tearoffs = 0
617       #GtkComboBox::add-tearoffs = 0
619       GtkComboBox::appears-as-list = 1
620       GtkComboBox::focus-on-click = 0
622       GOComboBox::add_tearoffs = 0
624       GtkTreeView::allow-rules = 0
625       GtkTreeView::expander-size = 12
627       GtkExpander::expander-size = 12
629       GtkScrolledWindow::scrollbar_spacing = 1
631       GtkSeparatorMenuItem::horizontal-padding = 2
633       engine "wimp"
634       {
635       }
636     }
637     class "*" style "msw-default"
638     </makefile>
640   </target>
643   <!--
644   ########################################################################
645   ## T A R G E T    :    JAVAC
646   ########################################################################
647   -->
648   <target name="javac" depends="init"
649       description="compile java binding classes">
650     <javac srcdir="${src}/bind/java" destdir="${build}/java/classes"/>
651   </target>
654   <!--
655   ########################################################################
656   ## T A R G E T    :    JAR
657   ########################################################################
658   -->
659   <target name="jar" depends="javac"
660       description="pack java classes and resources into a jar file">
661     <copy todir="${build}/java/classes"> <fileset dir="${gtk}/bind/data"/> </copy>
662     <jar basedir="${build}/java/classes" destfile="${build}/java/lib/inkscape.jar"/>
663   </target>
665   <!--
666   ########################################################################
667   ## T A R G E T    :    BINDDIST
668   ########################################################################
669   -->
670   <target name="binddist" depends="jar"
671       description="pack java classes and resources into a jar file">
672     <copy todir="${dist}/share/bind"> <fileset dir="${gtk}/bind/java"/> </copy>
673     <copy todir="${dist}/share/bind/java"> <fileset dir="${build}/java/lib"/> </copy>
675   </target>
677   <!--
678   ########################################################################
679   ## T A R G E T    :    BINDCLEAN
680   ########################################################################
681   -->
682   <target name="bindclean" depends=""
683       description="clean up java binding classes">
684         <delete dir="${build}/java"/>
685   </target>
690   <!--
691   ########################################################################
692   ## T A R G E T    :    D I S T - A L L
693   ########################################################################
694   -->
695   <target name="dist-all" depends="dist"
696         description="generate the distribution, along with inkview" >
698     <copy file="${build}/inkview.exe" todir="${dist}"/>
699     <copy file="${build}/inkview.dbg" todir="${dist}"/>
700   </target>
706   <!--
707   ########################################################################
708   ## T A R G E T    :    C L E A N
709   ########################################################################
710   -->
711   <target name="clean" depends="bindclean"
712         description="clean up.  deleting build and distro dirs" >
714     <delete dir="${build}"/>
715     <delete dir="${dist}"/>
716     <delete file="build.dep"/>
717     <delete file="config.h"/>
719   </target>
723 </project>
724 <!--
725 ########################################################################
726 ## E N D
727 ########################################################################
728 -->