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 -->
29 <!--
30 ########################################################################
31 ## P R O J E C T : I N K S C A P E
32 ########################################################################
33 -->
34 <project name="Inkscape" default="dist" basedir=".">
35 <description>
36 Build file for the Inkscape SVG editor. This version
37 is configured for Unix/Linux, but hopefully we can merge
38 in the future.
39 </description>
41 <!-- set global properties for this build -->
42 <property name="version" value="0.46+devel"/>
43 <property name="src" location="src"/>
44 <property name="lib" location="lib"/>
45 <property name="build" location="build"/>
46 <property name="dist" location="inkscape"/>
48 <!-- Use these settings for Unix -->
49 <!-- -->
50 <property name="arch" value=""/>
51 <property name="archutil" value=""/>
52 <property name="devlibs" location="/usr"/>
53 <!-- -->
55 <!-- Use these settings for the MinGW native compiler -->
56 <!--
57 <property name="arch" value="mingw32-"/>
58 <property name="archutil" value=""/>
59 <property name="devlibs" location="c:/devlibs"/>
60 -->
62 <!-- Use these settings for the MinGW cross compiler -->
63 <!--
64 <property name="arch" value="i686-pc-mingw32-"/>
65 <property name="archutil" value="${arch}"/>
66 <property name="gtk" location="/target"/>
67 -->
69 <!-- Extra properties -->
70 <property name="refresh" value="false"/>
72 <!--
73 This is for package-config. With these two settings, pkg-config
74 queries can be as simple as ${pcc.packageName} for cflags, and
75 ${pcl.packageName} for libs. Dependencies are calculated automatically.
76 -->
77 <property name="pkg-config-path" location="${devlibs}/lib/pkgconfig"/>
78 <property name="pkg-config-prefix" location="${devlibs}"/>
81 <!--
82 ########################################################################
83 ## T A R G E T : I N I T
84 ########################################################################
85 -->
86 <target name="init"
87 description=
88 "Do all preparatory tasks, like make directories and copy files">
91 <mkdir dir="${build}"/>
92 <mkdir dir="${build}/java"/>
93 <mkdir dir="${build}/java/classes"/>
94 <mkdir dir="${build}/java/lib"/>
96 <mkdir dir="${build}"/>
97 <mkdir dir="${dist}"/>
98 <copy file="${src}/helper/sp-marshal.h.mingw"
99 tofile="${src}/helper/sp-marshal.h"/>
100 <copy file="${src}/helper/sp-marshal.cpp.mingw"
101 tofile="${src}/helper/sp-marshal.cpp"/>
102 <makefile file="inkscape_version.h">
103 #define INKSCAPE_VERSION "${version}"
104 </makefile>
105 <makefile file="config.h">
106 #ifndef _CONFIG_H_
107 #define _CONFIG_H_
109 /*######################################
110 ## This is for require-config.h, whose
111 ## purpose I cannot fathom.
112 ######################################*/
114 #define PACKAGE_TARNAME
116 /*######################################
117 #### RESOURCE DIRECTORIES
118 ######################################*/
120 #define INKSCAPE_DATADIR "."
121 #define PACKAGE_LOCALE_DIR "locale"
124 /*######################################
125 #### OTHER DEFINITIONS
126 ######################################*/
128 #define GETTEXT_PACKAGE "inkscape"
130 #define PACKAGE_STRING VERSION
132 #define HAVE_GETOPT_H 1
133 #define HAVE_STRING_H 1
134 #define HAVE_LIBINTL_H 1
135 #define HAVE_MALLOC_H 1
136 #define HAVE_STDLIB_H 1
137 #define HAVE_SYS_STAT_H 1
138 #define HAVE_INTTYPES_H 1
139 #define HAVE_ZLIB_H 1
141 #define ENABLE_LCMS 1
143 #define ENABLE_NLS 1
144 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
146 /* make us relocatable */
147 #define BR_PTHREADS 1
148 #define ENABLE_BINRELOC 1
150 /* CairoPDF options */
151 #define HAVE_CAIRO_PDF 1
152 #define PANGO_ENABLE_ENGINE 1
153 #define RENDER_WITH_PANGO_CAIRO 1
155 #define HAVE_GTK_WINDOW_FULLSCREEN 1
157 /* internal interpreter */
158 #define WITH_PYTHON 1
160 /* shared whiteboard */
161 #define WITH_INKBOARD 1
162 #define HAVE_SSL 1
164 /* use poppler for pdf import? */
165 #define HAVE_POPPLER 1
166 #define HAVE_POPPLER_CAIRO 1
168 /* do we want bitmap manipulation? */
169 #define WITH_IMAGE_MAGICK 1
171 /* Allow reading WordPerfect? */
172 #define WITH_LIBWPG 1
174 #endif /* _CONFIG_H_ */
175 </makefile>
176 </target>
180 <!--
181 ########################################################################
182 ## T A R G E T : T O U C H A B O U T
183 ########################################################################
184 -->
185 <target name="touchabout"
186 description="update the modification time of aboutdialog.cpp">
187 <!-- not good <touch file="${src}/ui/dialog/aboutdialog.cpp"/> -->
188 <!-- better -->
189 <delete file="${build}/obj/ui/dialog/aboutdialog.o"/>
190 </target>
193 <!--
194 ########################################################################
195 ## T A R G E T : C O M P I L E
196 ########################################################################
197 -->
198 <target name="compile" depends="init"
199 description="compile the source to .o" >
201 <!-- Compile from source to build -->
202 <cc cc="${arch}gcc" cxx="${arch}g++"
203 destdir="${build}/obj"
204 continueOnError="false"
205 refreshCache="${refresh}">
206 <fileset dir="${src}">
207 <!-- THINGS TO EXCLUDE -->
208 <exclude name="2geom/chebyshev.cpp"/>
209 <exclude name="ast/.*"/>
210 <exclude name="bonobo/.*"/>
211 <exclude name="deptool.cpp"/>
212 <exclude name="test-all.cpp"/>
213 <exclude name="display/testnr.cpp"/>
214 <exclude name="display/bezier-utils-test.cpp"/>
215 <exclude name="dom/work/.*"/>
216 <exclude name="dom/odf/SvgOdg.cpp"/>
217 <exclude name="extension/api.cpp"/>
218 <exclude name="extension/dxf2svg/.*"/>
219 <exclude name="extension/implementation/plugin.cpp"/>
220 <exclude name="extension/script/bindtest.cpp"/>
221 <exclude name="extension/script/cpptest.cpp"/>
222 <exclude name="extension/plugin/.*"/>
223 <exclude name="extract-uri-test.cpp"/>
224 <exclude name="helper/units-test.cpp"/>
225 <!-- exclude name="inkview.cpp"/-->
226 <exclude name="libnr/test-nr.cpp"/>
227 <exclude name="libnr/test-nr-main.cpp"/>
228 <exclude name="libnr/testnr.cpp"/>
229 <exclude name="libnr/in-svg-plane-test.cpp"/>
230 <exclude name="libnr/nr-compose-reference.cpp"/>
231 <exclude name="libnr/nr-compose-test.cpp"/>
232 <exclude name="libnr/nr-matrix-test.cpp"/>
233 <exclude name="libnr/nr-point-fns-test.cpp"/>
234 <exclude name="libnr/nr-rotate-fns-test.cpp"/>
235 <exclude name="libnr/nr-rotate-test.cpp"/>
236 <exclude name="libnr/nr-scale-test.cpp"/>
237 <exclude name="libnr/nr-translate-test.cpp"/>
238 <exclude name="libnr/nr-types-test.cpp"/>
239 <exclude name="livarot/Path-test.cpp"/>
240 <exclude name="mod360-test.cpp"/>
241 <exclude name="trace/potrace/potest.cpp"/>
242 <exclude name="round-test.cpp"/>
243 <exclude name="sp-gradient-test.cpp"/>
244 <exclude name="svg/ftos.cpp"/>
245 <exclude name="svg/test-svg.cpp"/>
246 <exclude name="svg/test-svg-main.cpp"/>
247 <exclude name="utest/.*"/>
248 <exclude name="widgets/test-widgets.cpp"/>
249 <exclude name="xml/quote-test.cpp"/>
250 <exclude name="xml/repr-action-test.cpp"/>
251 <exclude name="xml/test-xml.cpp"/>
252 <exclude name="xml/test-xml-main.cpp"/>
253 <exclude name="io/streamtest.cpp"/>
254 <!--JABBER-->
255 <exclude name="pedro/pedrogui.cpp"/>
256 <exclude name="pedro/pedrogui.h"/>
257 <exclude name="pedro/work/.*"/>
258 <!--WHITEBOARD-->
259 <exclude name="ui/dialog/session-player.cpp"/>
260 <exclude name="ui/dialog/whiteboard-connect.cpp"/>
261 <exclude name="ui/dialog/whiteboard-sharewithchat.cpp"/>
262 <exclude name="ui/dialog/whiteboard-sharewithuser.cpp"/>
263 <exclude name="dialogs/whiteboard-connect-dialog.cpp"/>
264 <exclude name="dialogs/whiteboard-common-dialog.cpp"/>
265 <exclude name="dialogs/whiteboard-sharewithchat-dialog.cpp"/>
266 <exclude name="dialogs/whiteboard-sharewithuser-dialog.cpp"/>
267 <exclude name="jabber_whiteboard/node-tracker.cpp"/>
268 <exclude name="jabber_whiteboard/node-utilities.cpp"/>
269 <!--OVERLAP-->
270 <exclude name="removeoverlap/placement_SolveVPSC.cpp"/>
271 <exclude name="removeoverlap/placement_SolveVPSC.h"/>
272 <exclude name="removeoverlap/test.cpp"/>
273 <exclude name="removeoverlap/remove_rectangle_overlap-test.cpp"/>
274 <exclude name="removeoverlap/remove_rectangle_overlap-test.h"/>
275 <!--WIN32 -->
276 <exclude name="registrytool.cpp"/>
277 <exclude name="extension/internal/win32.cpp"/>
278 <exclude name="libgdl/gdl-win32.c"/>
279 </fileset>
280 <excludeinc dir="${src}">
281 <file name="extension/param"/>
282 </excludeinc>
283 <flags>
284 -Wall -Wformat -Werror=format-security -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch
285 -O2
286 -mms-bitfields
287 </flags>
288 <defines>
289 -DVERSION=\"${version}\"
290 -DHAVE_CONFIG_H
291 -D_INTL_REDIRECT_INLINE
292 -DHAVE_SSL
293 -DRELAYTOOL_SSL="static const int libssl_is_present=1; static int __attribute__((unused)) libssl_symbol_is_present(char *s){ return 1; }" <!-- inkboard -->
294 </defines>
295 <includes>
296 -I${devlibs}/include
297 <!-- GTK / GTKMM -->
298 ${pcc.gtkmm-2.4}
299 <!-- OTHER -->
300 -I${devlibs}/include/libxml2
301 -I${devlibs}/include/freetype2
302 -I${devlibs}/include/cairo
303 -I${devlibs}/include/poppler
304 -I${devlibs}/include/gc
305 -I${devlibs}/include/libwpg-0.1
306 -I${devlibs}/include/libwpd-0.8
307 <!-- PERL -->
308 <!-- -Wno-comment -I${devlibs}/perl/lib/CORE -->
309 <!-- PYTHON -->
310 -I${devlibs}/python/include
311 <!-- JAVA -->
312 -I${src}/bind/javainc -I${src}/bind/javainc/linux
313 </includes>
314 </cc>
315 </target>
318 <!--
319 ########################################################################
320 ## T A R G E T : L I B
321 ########################################################################
322 -->
323 <target name="lib" depends="compile"
324 description="create a static library">
325 <staticlib command="${archutil}ar crsv"
326 file="${build}/libinkscape.a">
327 <fileset dir="${build}/obj">
328 <exclude name="main.o"/>
329 <exclude name="winmain.o"/>
330 <exclude name="inkview.o"/>
331 </fileset>
332 </staticlib>
333 </target>
337 <!--
338 ########################################################################
339 ## T A R G E T : I 1 8 N
340 ########################################################################
341 -->
342 <target name="i18n" depends="compile"
343 description="compile gettext .po files to .mo">
345 <msgfmt todir="${build}/locale" owndir="true"
346 out="LC_MESSAGES/inkscape.mo">
347 <fileset dir="po">
348 </fileset>
349 </msgfmt>
350 </target>
356 <!--
357 ########################################################################
358 ## T A R G E T : L I N K
359 ########################################################################
360 -->
361 <target name="link" depends="lib"
362 description="link objects and library to create executable">
364 <link command="${arch}g++" out="${build}/inkscape"
365 strip="true" symfile="${build}/inkscape.dbg"
366 stripcommand="${archutil}strip"
367 objcopycommand="${archutil}objcopy">
368 <flags>
369 </flags>
370 <fileset dir="${build}">
371 <include name="obj/main.o"/>
372 <include name="libinkscape.a"/>
373 </fileset>
374 <libs>
375 -L${devlibs}/lib
376 ${pcl.poppler} ${pcl.poppler-cairo} ${pcl.poppler-glib}
377 ${pcl.gtkmm-2.4}
378 ${pcl.cairo} ${pcl.cairomm-1.0}
379 ${pcl.gthread-2.0}
380 -lxml2 -lxslt
381 -lwpg-0.1 -lwpg-stream-0.1
382 ${pcl.ImageMagick++}
383 ${pcl.fontconfig} ${pcl.freetype2}
384 ${pcl.lcms}
385 ${pcl.gsl}
386 -lssl -lcrypto
387 -lpng -ljpeg -ltiff -lpopt -lz
388 -lgc
389 -lm
390 <!-- 2geom -->
391 <!-- -l2geom -->
392 </libs>
393 </link>
394 </target>
400 <!--
401 ########################################################################
402 ## T A R G E T : L I N K I N K V I E W
403 ########################################################################
404 -->
405 <target name="linkinkview" depends="lib"
406 description="link objects and library to create Inkview executable">
408 <link command="${arch}g++" out="${build}/inkview"
409 strip="true" symfile="${build}/inkview.dbg"
410 stripcommand="${archutil}strip"
411 objcopycommand="${archutil}objcopy">
412 <flags>
413 </flags>
414 <fileset dir="${build}">
415 <include name="obj/inkview.o"/>
416 <include name="libinkscape.a"/>
417 </fileset>
418 <libs>
419 -L${devlibs}/lib
420 ${pcl.poppler}
421 ${pcl.gtkmm-2.4}
422 ${pcl.cairo} ${pcl.cairomm-1.0}
423 <!-- PERL -->
424 -L${devlibs}/perl/lib/CORE -lperl58
425 <!-- PYTHON -->
426 -L${devlibs}/python/libs -lpython25
427 -lxml2 -lxslt
428 -lwpg-0.1 -lwpg-stream-0.1
429 ${pcl.ImageMagick++}
430 ${pcl.fontconfig} ${pcl.freetype2}
431 ${pcl.lcms}
432 -lssl -lcrypto
433 -lpng -ljpeg -ltiff -lpopt -lz
434 -lgc
435 -lintl -liconv -lm
436 </libs>
437 </link>
438 </target>
442 <!--
443 ########################################################################
444 ## T A R G E T : D I S T
445 ########################################################################
446 -->
447 <target name="dist" depends="link,i18n"
448 description="generate the distribution directory with all needed files">
450 <!-- Create the distribution directory -->
451 <copy file="${build}/inkscape" todir="${dist}"/>
452 <copy file="${build}/inkscape.dbg" todir="${dist}"/>
453 <copy file="AUTHORS" todir="${dist}"/>
454 <copy file="COPYING" todir="${dist}"/>
455 <copy file="COPYING.LIB" todir="${dist}"/>
456 <copy file="NEWS" todir="${dist}"/>
457 <copy file="README" todir="${dist}"/>
458 <copy file="TRANSLATORS" todir="${dist}"/>
459 <copy file="${devlibs}/bin/libatkmm-1.6-1.dll" todir="${dist}"/>
460 <copy file="${devlibs}/bin/libglibmm-2.4-1.dll" todir="${dist}"/>
461 <copy file="${devlibs}/bin/libgtkmm-2.4-1.dll" todir="${dist}"/>
462 <copy file="${devlibs}/bin/libgdkmm-2.4-1.dll" todir="${dist}"/>
463 <copy file="${devlibs}/bin/libpangomm-1.4-1.dll" todir="${dist}"/>
464 <copy file="${devlibs}/bin/libcairomm-1.0-1.dll" todir="${dist}"/>
465 <copy file="${devlibs}/bin/libsigc-2.0-0.dll" todir="${dist}"/>
466 <copy file="${devlibs}/bin/freetype6.dll" todir="${dist}"/>
467 <copy file="${devlibs}/bin/libatk-1.0-0.dll" todir="${dist}"/>
468 <copy file="${devlibs}/bin/libgdk-win32-2.0-0.dll" todir="${dist}"/>
469 <copy file="${devlibs}/bin/libgdk_pixbuf-2.0-0.dll" todir="${dist}"/>
470 <copy file="${devlibs}/bin/libglib-2.0-0.dll" todir="${dist}"/>
471 <copy file="${devlibs}/bin/libgmodule-2.0-0.dll" todir="${dist}"/>
472 <copy file="${devlibs}/bin/libgobject-2.0-0.dll" todir="${dist}"/>
473 <copy file="${devlibs}/bin/libgtk-win32-2.0-0.dll" todir="${dist}"/>
474 <copy file="${devlibs}/bin/libgthread-2.0-0.dll" todir="${dist}"/>
475 <copy file="${devlibs}/bin/libcairo-2.dll" todir="${dist}"/>
476 <copy file="${devlibs}/bin/libpoppler-3.dll" todir="${dist}"/>
477 <copy file="${devlibs}/bin/libpangocairo-1.0-0.dll" todir="${dist}"/>
478 <copy file="${devlibs}/bin/libpango-1.0-0.dll" todir="${dist}"/>
479 <copy file="${devlibs}/bin/libpangoft2-1.0-0.dll" todir="${dist}"/>
480 <copy file="${devlibs}/bin/libpangowin32-1.0-0.dll" todir="${dist}"/>
481 <copy file="${devlibs}/bin/freetype6.dll" todir="${dist}"/>
482 <copy file="${devlibs}/bin/libfontconfig-1.dll" todir="${dist}"/>
483 <copy file="${devlibs}/bin/libxml2.dll" todir="${dist}"/>
484 <copy file="${devlibs}/bin/libxslt.dll" todir="${dist}"/>
485 <copy file="${devlibs}/bin/libexpat.dll" todir="${dist}"/>
486 <!--<copy file="${devlibs}/bin/libexpat.dll" tofile="${dist}/xmlparse.dll"/>-->
487 <copy file="${devlibs}/bin/libwpg-0.1.dll" todir="${dist}"/>
488 <copy file="${devlibs}/bin/libwpg-stream-0.1.dll" todir="${dist}"/>
489 <copy file="${devlibs}/bin/libwpd-0.8.dll" todir="${dist}"/>
490 <copy file="${devlibs}/bin/libwpd-stream-0.8.dll" todir="${dist}"/>
491 <copy file="${devlibs}/bin/jpeg62.dll" todir="${dist}"/>
492 <copy file="${devlibs}/bin/libpng13.dll" todir="${dist}"/>
493 <!-- GTK changed their dep file name for PNG! :-( -->
494 <copy file="${devlibs}/bin/libpng13.dll" tofile="${dist}/libpng12-0.dll"/>
495 <copy file="${devlibs}/bin/libtiff3.dll" todir="${dist}"/>
496 <copy file="${devlibs}/bin/msvcr70.dll" todir="${dist}"/>
497 <copy file="${devlibs}/bin/msvcr71.dll" todir="${dist}"/>
498 <copy file="${devlibs}/bin/zlib1.dll" todir="${dist}"/>
499 <copy file="${devlibs}/bin/iconv.dll" todir="${dist}"/>
500 <copy file="${devlibs}/bin/libpopt-0.dll" todir="${dist}"/>
501 <copy file="${devlibs}/bin/liblcms-1.dll" todir="${dist}"/>
502 <copy file="${devlibs}/bin/intl.dll" todir="${dist}"/>
503 <copy file="${devlibs}/bin/intl.dll" tofile="${dist}/libintl-2.dll"/>
505 <!-- MSGFMT files -->
506 <copy todir="${dist}">
507 <fileset dir="${build}/locale">
508 <exclude name=".*\.am"/>
509 </fileset>
510 </copy>
512 <!-- GTK -->
513 <copy todir="${dist}"> <fileset dir="${devlibs}/etc"/> </copy>
514 <copy todir="${dist}/lib"> <fileset dir="${devlibs}/lib/gtk-2.0"/> </copy>
515 <copy todir="${dist}/lib"> <fileset dir="${devlibs}/lib/glib-2.0"/> </copy>
516 <copy todir="${dist}/lib"> <fileset dir="${devlibs}/lib/locale"/> </copy>
517 <copy todir="${dist}">
518 <fileset dir="share">
519 <exclude name=".*\.am"/>
520 </fileset>
521 </copy>
522 <copy todir="${dist}/share"> <fileset dir="${devlibs}/share/themes"/> </copy>
523 <copy todir="${dist}/share"> <fileset dir="${devlibs}/share/poppler"/> </copy>
524 <mkdir dir="${dist}/data"/>
525 <mkdir dir="${dist}/locale"/>
526 <mkdir dir="${dist}/modules"/>
527 <mkdir dir="${dist}/plugins"/>
528 <copy file="${devlibs}/bin/gdb.exe" todir="${dist}"/>
530 <!-- Necessary to run extensions on windows if it is not in the path -->
531 <copy file="${devlibs}/bin/gspawn-win32-helper.exe" todir="${dist}"/>
532 <copy file="${devlibs}/bin/gspawn-win32-helper-console.exe" todir="${dist}"/>
534 <!-- PERL -->
535 <copy file="${devlibs}/perl/bin/perl58.dll" todir="${dist}"/>
537 <!-- PYTHON -->
538 <copy file="${devlibs}/python/python25.dll" todir="${dist}"/>
539 <copy file="${devlibs}/python/python.exe" todir="${dist}/python"/>
540 <copy file="${devlibs}/python/pythonw.exe" todir="${dist}/python"/>
541 <copy todir="${dist}/python"> <fileset dir="${devlibs}/python/Lib"/> </copy>
542 <copy todir="${dist}/python"> <fileset dir="${devlibs}/python/DLLs"/> </copy>
543 <copy todir="${dist}/python"> <fileset dir="${devlibs}/python/Scripts"/> </copy>
545 <!--<copy file="${devlibs}/share/themes/MS-Windows/gtk-2.0/gtkrc" todir="${dist}/etc/gtk-2.0"/>-->
546 <makefile file="${dist}/etc/gtk-2.0/gtkrc">
547 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"
548 gtk-toolbar-icon-size = small-toolbar
550 # disable images in buttons. i've only seen ugly delphi apps use this feature.
551 gtk-button-images = 0
553 # enable/disable images in menus. most "stock" microsoft apps don't use these, except sparingly.
554 # the office apps use them heavily, though.
555 gtk-menu-images = 1
557 # use the win32 button ordering instead of the GNOME HIG one, where applicable
558 gtk-alternative-button-order = 1
560 style "msw-default"
561 {
562 GtkWidget::interior-focus = 1
563 GtkOptionMenu::indicator-size = { 9, 5 }
564 GtkOptionMenu::indicator-spacing = { 7, 5, 2, 2 }
565 GtkSpinButton::shadow-type = in
567 # Owen and I disagree that these should be themable
568 #GtkUIManager::add-tearoffs = 0
569 #GtkComboBox::add-tearoffs = 0
571 GtkComboBox::appears-as-list = 1
572 GtkComboBox::focus-on-click = 0
574 GOComboBox::add_tearoffs = 0
576 GtkTreeView::allow-rules = 0
577 GtkTreeView::expander-size = 12
579 GtkExpander::expander-size = 12
581 GtkScrolledWindow::scrollbar_spacing = 1
583 GtkSeparatorMenuItem::horizontal-padding = 2
585 engine "wimp"
586 {
587 }
588 }
589 class "*" style "msw-default"
590 </makefile>
592 </target>
595 <!--
596 ########################################################################
597 ## T A R G E T : JAVAC
598 ########################################################################
599 -->
600 <target name="javac" depends="init"
601 description="compile java binding classes">
602 <javac srcdir="${src}/bind/java" destdir="${build}/java/classes"/>
603 </target>
606 <!--
607 ########################################################################
608 ## T A R G E T : JAR
609 ########################################################################
610 -->
611 <target name="jar" depends="javac"
612 description="pack java classes and resources into a jar file">
613 <copy todir="${build}/java/classes"> <fileset dir="${devlibs}/bind/data"/> </copy>
614 <jar basedir="${build}/java/classes" destfile="${build}/java/lib/inkscape.jar"/>
615 </target>
617 <!--
618 ########################################################################
619 ## T A R G E T : BINDDIST
620 ########################################################################
621 -->
622 <target name="binddist" depends="jar"
623 description="pack java classes and resources into a jar file">
624 <copy todir="${dist}/share/bind"> <fileset dir="${devlibs}/bind/java"/> </copy>
625 <copy todir="${dist}/share/bind/java"> <fileset dir="${build}/java/lib"/> </copy>
627 </target>
629 <!--
630 ########################################################################
631 ## T A R G E T : BINDCLEAN
632 ########################################################################
633 -->
634 <target name="bindclean" depends=""
635 description="clean up java binding classes">
636 <delete dir="${build}/java"/>
637 </target>
642 <!--
643 ########################################################################
644 ## T A R G E T : D I S T - A L L
645 ########################################################################
646 -->
647 <target name="dist-all" depends="dist"
648 description="generate the distribution, along with inkview" >
650 <copy file="${build}/inkview.exe" todir="${dist}"/>
651 <copy file="${build}/inkview.dbg" todir="${dist}"/>
652 </target>
658 <!--
659 ########################################################################
660 ## T A R G E T : C L E A N
661 ########################################################################
662 -->
663 <target name="clean" depends="bindclean"
664 description="clean up. deleting build and distro dirs" >
666 <delete dir="${build}"/>
667 <delete dir="${dist}"/>
668 <delete file="build.dep"/>
669 <delete file="config.h"/>
671 </target>
675 </project>
676 <!--
677 ########################################################################
678 ## E N D
679 ########################################################################
680 -->