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-all" basedir=".">
35 <description>
36 Build file for the Inkscape SVG editor. This file
37 was written for GTK-2.10 on Win32, but it should work
38 well for other types of builds with only minor adjustments.
39 Note that the default target is 'dist-all'. You can execute other
40 targets instead, by "btool {target}", like "btool compile", if
41 you want to save time, or "dist-inkscape" if you don't want inkview.
42 </description>
44 <!-- set global properties for this build -->
45 <property name="version" value="0.47+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="devlibs" location="${env.DEVLIBS_PATH}"/>
56 <property name="mingw" location="${env.MINGW_PATH}"/>
57 <property name="mingw_bin" location="${env.MINGW_PATH}/bin"/>
58 <property name="cxxtest" location="cxxtest"/>
59 <property name="python" location="${devlibs}/python/python.exe"/>
60 <!-- -->
62 <!-- Use these settings for the cross compiler -->
63 <!--
64 <property name="arch" value="i686-pc-mingw32-"/>
65 <property name="archutil" value="${arch}"/>
66 <property name="devlibs" location="/target"/>
67 <property name="mingw_bin" location="${env.MINGW_BIN}"/>
68 <property name="cxxtest" location="cxxtest"/>
69 <property name="python" location="python"/>
70 -->
72 <!-- Extra properties -->
73 <property name="refresh" value="false"/>
75 <!--
76 This is for package-config. With these two settings, pkg-config
77 queries can be as simple as ${pcc.packageName} for cflags, and
78 ${pcl.packageName} for libs. Dependencies are calculated automatically.
79 -->
80 <property name="pkg-config-path" location="${devlibs}/lib/pkgconfig"/>
81 <property name="pkg-config-prefix" location="${devlibs}"/>
84 <!--
85 ########################################################################
86 ## T A R G E T : I N I T
87 ########################################################################
88 -->
89 <target name="init"
90 description=
91 "Do all preparatory tasks, like make directories and copy files">
94 <mkdir dir="${build}"/>
95 <mkdir dir="${build}/java"/>
96 <mkdir dir="${build}/java/classes"/>
97 <mkdir dir="${build}/java/lib"/>
98 <mkdir dir="${dist}"/>
100 <copy file="${src}/helper/sp-marshal.h.mingw"
101 tofile="${src}/helper/sp-marshal.h"/>
102 <copy file="${src}/helper/sp-marshal.cpp.mingw"
103 tofile="${src}/helper/sp-marshal.cpp"/>
105 <!--makefile file="${src}/inkscape-version.cpp">
106 namespace Inkscape {
107 char const *version_string = "${version} ${svn.revision}";
108 }
109 </makefile-->
110 <makefile file="${src}/inkscape-version.cpp">
111 namespace Inkscape {
112 char const *version_string = "${version}";
113 }
114 </makefile>
115 <makefile file="config.h">
116 #ifndef _CONFIG_H_
117 #define _CONFIG_H_
119 #ifndef WIN32
120 #define WIN32
121 #endif
123 /*######################################
124 ## This is for require-config.h, whose
125 ## purpose I cannot fathom.
126 ######################################*/
128 #define PACKAGE_TARNAME
130 /*######################################
131 #### RESOURCE DIRECTORIES
132 ######################################*/
134 #define INKSCAPE_DATADIR "."
135 #define PACKAGE_LOCALE_DIR "locale"
138 /*######################################
139 #### OTHER DEFINITIONS
140 ######################################*/
142 #define GETTEXT_PACKAGE "inkscape"
144 #define PACKAGE_STRING VERSION
146 #define HAVE_GETOPT_H 1
147 #define HAVE_STRING_H 1
148 #define HAVE_LIBINTL_H 1
149 #define HAVE_MALLOC_H 1
150 #define HAVE_STDLIB_H 1
151 #define HAVE_SYS_STAT_H 1
152 #define HAVE_INTTYPES_H 1
153 #define HAVE_OPENMP 1
155 #define ENABLE_LCMS 1
157 #define ENABLE_NLS 1
158 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
160 /* keep binreloc off */
161 #define BR_PTHREADS 0
162 #undef ENABLE_BINRELOC
164 /* CairoPDF options */
165 #define HAVE_CAIRO_PDF 1
166 #define PANGO_ENABLE_ENGINE 1
167 #define RENDER_WITH_PANGO_CAIRO 1
169 #define HAVE_GTK_WINDOW_FULLSCREEN 1
171 /* internal interpreter */
172 #define WITH_PYTHON 1
174 /* shared whiteboard */
175 #undef WITH_INKBOARD
176 #undef HAVE_SSL
178 /* use poppler for pdf import? */
179 #define HAVE_POPPLER 1
180 #define HAVE_POPPLER_CAIRO 1
182 /* do we want bitmap manipulation? */
183 #define WITH_IMAGE_MAGICK 1
185 /* Allow reading WordPerfect? */
186 #define WITH_LIBWPG 1
188 /* Do we support SVG Fonts? */
189 #define ENABLE_SVG_FONTS 1
191 /* Do we want experimental, unsupported, unguaranteed, etc., LivePathEffects enabled? */
192 #define LPE_ENABLE_TEST_EFFECTS 1
194 #define HAVE_ASPELL 1
196 #endif /* _CONFIG_H_ */
197 </makefile>
198 </target>
200 <!--
201 ########################################################################
202 ## T A R G E T : C X X T E S T
203 ########################################################################
204 -->
205 <target name="cxxtest" depends="init"
206 description="generate test files" >
208 <!-- Generate CxxTest files -->
209 <cxxtestpart command="${python} ${cxxtest}/cxxtestgen.py --have-eh"
210 out="${src}/test-src.cpp">
211 <fileset dir="${src}">
212 <include name="attributes-test.h"/>
213 <include name="color-profile-test.h"/>
214 <include name="dir-util-test.h"/>
215 <include name="extract-uri-test.h"/>
216 <include name="marker-test.h"/>
217 <include name="mod360-test.h"/>
218 <include name="preferences-test.h"/>
219 <include name="round-test.h"/>
220 <include name="sp-gradient-test.h"/>
221 <include name="sp-style-elem-test.h"/>
222 <include name="syle-test.h"/>
223 <include name="test-helpers.h"/>
224 <include name="verbs-test.h"/>
225 </fileset>
226 </cxxtestpart>
227 <cxxtestpart command="${python} ${cxxtest}/cxxtestgen.py --have-eh"
228 out="${src}/display/test-display.cpp">
229 <fileset dir="${src}/display">
230 <include name="curve-test.h"/>
231 </fileset>
232 </cxxtestpart>
233 <cxxtestpart command="${python} ${cxxtest}/cxxtestgen.py --have-eh"
234 out="${src}/helper/test-helper.cpp">
235 <fileset dir="${src}/helper">
236 <include name="units-test.h"/>
237 </fileset>
238 </cxxtestpart>
239 <cxxtestpart command="${python} ${cxxtest}/cxxtestgen.py --have-eh"
240 out="${src}/libnr/test-nr.cpp">
241 <fileset dir="${src}/libnr">
242 <include name="nr-compose-test.h"/>
243 <include name="nr-types-test.h"/>
244 <include name="nr-translate-test.h"/>
245 <include name="nr-rotate-test.h"/>
246 <include name="nr-scale-test.h"/>
247 <include name="nr-point-fns-test.h"/>
248 <include name="nr-rotate-fns-test.h"/>
249 <include name="in-svg-plane-test.h"/>
250 <include name="nr-matrix-test.h"/>
251 </fileset>
252 </cxxtestpart>
253 <cxxtestpart command="${python} ${cxxtest}/cxxtestgen.py --have-eh"
254 out="${src}/svg/test-svg.cpp">
255 <fileset dir="${src}/svg">
256 <include name="css-ostringstream-test.h"/>
257 <include name="stringstream-test.h"/>
258 <include name="svg-affine-test.h"/>
259 <include name="svg-color-test.h"/>
260 <include name="svg-length-test.h"/>
261 <include name="svg-path-geom-test.h"/>
262 </fileset>
263 </cxxtestpart>
264 <cxxtestpart command="${python} ${cxxtest}/cxxtestgen.py --have-eh"
265 out="${src}/util/test-util.cpp">
266 <fileset dir="${src}/util">
267 <include name="list-container-test.h"/>
268 </fileset>
269 </cxxtestpart>
270 <cxxtestpart command="${python} ${cxxtest}/cxxtestgen.py --have-eh"
271 out="${src}/xml/test-xml.cpp">
272 <fileset dir="${src}/xml">
273 <include name="repr-action-test.h"/>
274 <include name="quote-test.h"/>
275 </fileset>
276 </cxxtestpart>
277 <cxxtestroot command="${python} ${cxxtest}/cxxtestgen.py"
278 out="${src}/test-main.cpp"
279 template="${src}/cxxtest-template.tpl">
280 <fileset dir="${src}">
281 <include name="MultiPrinter.h"/>
282 <include name="PylogFormatter.h"/>
283 <include name="TRPIFormatter.h"/>
284 </fileset>
285 </cxxtestroot>
286 </target>
289 <!--
290 ########################################################################
291 ## T A R G E T : C O M P I L E
292 ########################################################################
293 -->
294 <target name="compile" depends="cxxtest"
295 description="compile the source to .o" >
297 <!-- Compile from source to build -->
298 <cc cc="${arch}gcc" cxx="${arch}g++"
299 destdir="${build}/obj"
300 continueOnError="true"
301 refreshCache="${refresh}">
302 <fileset dir="${src}">
303 <!-- THINGS TO EXCLUDE -->
304 <exclude name="2geom/chebyshev.cpp"/>
305 <exclude name="ast/.*"/>
306 <exclude name="bonobo/.*"/>
307 <exclude name="deptool.cpp"/>
308 <exclude name="cxxtests.cpp"/>
309 <!--<exclude name="test-main.cpp"/>-->
310 <!--<exclude name="test-src.cpp"/>-->
311 <exclude name="display/test-display.cpp"/>
312 <exclude name="display/testnr.cpp"/>
313 <exclude name="dom/work/.*"/>
314 <exclude name="dom/odf/SvgOdg.cpp"/>
315 <exclude name="extension/api.cpp"/>
316 <exclude name="extension/dxf2svg/.*"/>
317 <exclude name="extension/implementation/plugin.cpp"/>
318 <exclude name="extension/script/bindtest.cpp"/>
319 <exclude name="extension/script/cpptest.cpp"/>
320 <exclude name="extension/plugin/.*"/>
321 <exclude name="extract-uri-test.cpp"/>
322 <exclude name="helper/units-test.cpp"/>
323 <!-- exclude name="inkview.cpp"/-->
324 <!--<exclude name="libnr/test-nr.cpp"/>-->
325 <exclude name="libnr/test-nr-main.cpp"/>
326 <exclude name="libnr/testnr.cpp"/>
327 <exclude name="libnr/in-svg-plane-test.cpp"/>
328 <exclude name="libnr/nr-matrix-test.cpp"/>
329 <exclude name="libnr/nr-point-fns-test.cpp"/>
330 <exclude name="libnr/nr-rotate-fns-test.cpp"/>
331 <exclude name="libnr/nr-rotate-test.cpp"/>
332 <exclude name="libnr/nr-scale-test.cpp"/>
333 <exclude name="libnr/nr-translate-test.cpp"/>
334 <exclude name="libnr/nr-types-test.cpp"/>
335 <exclude name="livarot/Path-test.cpp"/>
336 <exclude name="mod360-test.cpp"/>
337 <exclude name="trace/potrace/potest.cpp"/>
338 <exclude name="round-test.cpp"/>
339 <exclude name="sp-gradient-test.cpp"/>
340 <exclude name="style-test.cpp"/>
341 <exclude name="svg/ftos.cpp"/>
342 <!--<exclude name="svg/test-svg.cpp"/>-->
343 <exclude name="svg/test-svg-main.cpp"/>
344 <exclude name="util/list-container-test.cpp"/>
345 <exclude name="widgets/test-widgets.cpp"/>
346 <exclude name="xml/quote-test.cpp"/>
347 <exclude name="xml/repr-action-test.cpp"/>
348 <exclude name="xml/test-xml.cpp"/>
349 <!--<exclude name="xml/test-xml-main.cpp"/>-->
350 <exclude name="io/streamtest.cpp"/>
351 <!--JABBER-->
352 <exclude name="pedro/pedrogui.cpp"/>
353 <exclude name="pedro/pedrogui.h"/>
354 <exclude name="pedro/work/.*"/>
355 <!--WHITEBOARD-->
356 <exclude name="ui/dialog/session-player.cpp"/>
357 <exclude name="ui/dialog/whiteboard-connect.cpp"/>
358 <exclude name="ui/dialog/whiteboard-sharewithchat.cpp"/>
359 <exclude name="ui/dialog/whiteboard-sharewithuser.cpp"/>
360 <exclude name="dialogs/whiteboard-connect-dialog.cpp"/>
361 <exclude name="dialogs/whiteboard-common-dialog.cpp"/>
362 <exclude name="dialogs/whiteboard-sharewithchat-dialog.cpp"/>
363 <exclude name="dialogs/whiteboard-sharewithuser-dialog.cpp"/>
364 <exclude name="jabber_whiteboard/node-tracker.cpp"/>
365 <exclude name="jabber_whiteboard/node-utilities.cpp"/>
366 <!--OVERLAP-->
367 <exclude name="removeoverlap/placement_SolveVPSC.cpp"/>
368 <exclude name="removeoverlap/placement_SolveVPSC.h"/>
369 <exclude name="removeoverlap/test.cpp"/>
370 <exclude name="removeoverlap/remove_rectangle_overlap-test.cpp"/>
371 <exclude name="removeoverlap/remove_rectangle_overlap-test.h"/>
372 </fileset>
373 <excludeinc dir="${src}">
374 <file name="extension/param"/>
375 </excludeinc>
376 <flags>
377 -Wall -Wformat -Werror=format-security -W -Wpointer-arith -Wcast-align -Wsign-compare -Woverloaded-virtual -Wswitch
378 -O2
379 -mms-bitfields
380 -fopenmp
381 </flags>
382 <defines>
383 -DVERSION=\"${version}\"
384 -DHAVE_CONFIG_H
385 -D_INTL_REDIRECT_INLINE
386 -DHAVE_SSL
387 -DRELAYTOOL_SSL="static const int libssl_is_present=1; static int __attribute__((unused)) libssl_symbol_is_present(char *s){ return 1; }" <!-- inkboard -->
388 -DPOPPLER_NEW_GFXFONT <!-- poppler changed the api for 0.8.3 -->
389 </defines>
390 <includes>
391 -I${devlibs}/include
392 <!-- GTK / GTKMM -->
393 ${pcc.gtkmm-2.4}
394 <!-- OTHER -->
395 ${pcc.Magick++}
396 ${pcc.libxml-2.0}
397 ${pcc.freetype2}
398 ${pcc.cairo}
399 ${pcc.poppler}
400 -I${devlibs}/include/gc
401 ${pcc.libwpg-0.1} ${pcc.libwpg-stream-0.1}
402 -I${cxxtest}
403 <!-- PERL -->
404 <!-- -Wno-comment -I${devlibs}/perl/lib/CORE -->
405 <!-- PYTHON -->
406 -I${devlibs}/python/include
407 <!-- JAVA -->
408 -I${src}/bind/javainc -I${src}/bind/javainc/win32
409 </includes>
410 </cc>
411 </target>
414 <!--
415 ########################################################################
416 ## T A R G E T : L I B
417 ########################################################################
418 -->
419 <target name="lib" depends="compile"
420 description="create a static library">
421 <staticlib command="${archutil}ar crsv"
422 file="${build}/libinkscape.a">
423 <fileset dir="${build}/obj">
424 <exclude name="main.o"/>
425 <exclude name="winmain.o"/>
426 <exclude name="inkview.o"/>
427 <!-- CxxTest -->
428 <exclude name="test-main.o"/>
429 <exclude name="test-src.o"/>
430 <exclude name="display/test-display.o"/>
431 <exclude name="helper/test-helper.o"/>
432 <exclude name="libnr/nr-compose-reference.o"/>
433 <exclude name="libnr/test-nr.o"/>
434 <exclude name="svg/test-svg.o"/>
435 <exclude name="util/test-util.o"/>
436 <exclude name="xml/test-xml.o"/>
437 </fileset>
438 </staticlib>
439 </target>
443 <!--
444 ########################################################################
445 ## T A R G E T : I 1 8 N
446 ########################################################################
447 -->
448 <target name="i18n" depends="compile"
449 description="compile gettext .po files to .mo">
451 <msgfmt todir="${build}/locale" owndir="true"
452 out="LC_MESSAGES/inkscape.mo">
453 <fileset dir="po">
454 </fileset>
455 </msgfmt>
456 </target>
462 <!--
463 ########################################################################
464 ## T A R G E T : L I N K
465 ########################################################################
466 -->
467 <target name="link" depends="lib"
468 description="link objects and library to create executable">
470 <rc command="${archutil}windres"
471 file="${src}/inkscape.rc"
472 out="${build}/inkres.o">
473 <flags>
474 --include-dir=${src}
475 </flags>
476 </rc>
477 <link command="${arch}g++" out="${build}/inkscape.exe"
478 strip="true" symfile="${build}/inkscape.dbg"
479 stripcommand="${archutil}strip"
480 objcopycommand="${archutil}objcopy">
481 <flags>
482 -mconsole
483 -mthreads
484 </flags>
485 <fileset dir="${build}">
486 <include name="inkres.o"/>
487 <include name="obj/main.o"/>
488 <include name="obj/winmain.o"/>
489 <include name="libinkscape.a"/>
490 </fileset>
491 <!-- WARNING: If you change these libraries, don't forget to change them for inkview and cxxtests below as well! -->
492 <libs>
493 -L${devlibs}/lib
494 ${pcl.poppler-cairo} ${pcl.poppler-glib} ${pcl.poppler}
495 ${pcl.gtkmm-2.4} ${pcl.pangoft2} ${pcl.gthread-2.0}
496 ${devlibs}/bin/libxml2.dll
497 ${devlibs}/bin/libxslt.dll
498 ${pcl.cairo} ${pcl.cairomm-1.0}
499 ${pcl.libwpg-0.1} ${pcl.libwpg-stream-0.1}
500 -liconv
501 ${pcl.Magick++}
502 ${pcl.fontconfig} ${pcl.freetype2}
503 ${pcl.lcms}
504 ${pcl.gsl}
505 -lpng -ljpeg -ltiff -lpopt -lz
506 -lgc
507 -lws2_32 -lintl -lgdi32 -lcomdlg32 -lm
508 -lgomp -lpthreadGC2 -laspell
509 -lmscms <!-- required for color profiles -->
510 </libs>
511 </link>
512 </target>
518 <!--
519 ########################################################################
520 ## T A R G E T : L I N K I N K V I E W
521 ########################################################################
522 -->
523 <target name="linkinkview" depends="lib"
524 description="link objects and library to create Inkview executable">
526 <rc command="${archutil}windres"
527 file="${src}/inkview.rc"
528 out="${build}/inkviewres.o">
529 <flags>
530 --include-dir=${src}
531 </flags>
532 </rc>
533 <link command="${arch}g++" out="${build}/inkview.exe"
534 strip="true" symfile="${build}/inkview.dbg"
535 stripcommand="${archutil}strip"
536 objcopycommand="${archutil}objcopy">
537 <flags>
538 -mconsole
539 -mthreads
540 </flags>
541 <fileset dir="${build}">
542 <include name="inkviewres.o"/>
543 <include name="obj/inkview.o"/>
544 <include name="libinkscape.a"/>
545 </fileset>
546 <libs>
547 -L${devlibs}/lib
548 ${pcl.poppler-cairo} ${pcl.poppler-glib} ${pcl.poppler}
549 ${pcl.gtkmm-2.4} ${pcl.pangoft2} ${pcl.gthread-2.0}
550 ${devlibs}/bin/libxml2.dll
551 ${devlibs}/bin/libxslt.dll
552 ${pcl.cairo} ${pcl.cairomm-1.0}
553 ${pcl.libwpg-0.1} ${pcl.libwpg-stream-0.1}
554 -liconv
555 ${pcl.Magick++}
556 ${pcl.fontconfig} ${pcl.freetype2}
557 ${pcl.lcms}
558 ${pcl.gsl}
559 -lpng -ljpeg -ltiff -lpopt -lz
560 -lgc
561 -lws2_32 -lintl -lgdi32 -lcomdlg32 -lm
562 -lgomp -lpthreadGC2 -laspell
563 -lmscms <!-- required for color profiles -->
564 </libs>
565 </link>
566 </target>
570 <!--
571 ########################################################################
572 ## T A R G E T : L I N K C X X T E S T S
573 ########################################################################
574 -->
575 <target name="linkcxxtests" depends="lib"
576 description="link objects and library to create executable">
578 <link command="${arch}g++" out="${build}/cxxtests.exe"
579 strip="true" symfile="${build}/cxxtests.dbg"
580 stripcommand="${archutil}strip"
581 objcopycommand="${archutil}objcopy">
582 <flags>
583 -mthreads
584 </flags>
585 <fileset dir="${build}">
586 <include name="obj/test-main.o"/>
587 <include name="obj/test-src.o"/>
588 <include name="obj/display/test-display.o"/>
589 <include name="obj/helper/test-helper.o"/>
590 <include name="obj/libnr/nr-compose-reference.o"/>
591 <include name="obj/libnr/test-nr.o"/>
592 <include name="obj/svg/test-svg.o"/>
593 <include name="obj/util/test-util.o"/>
594 <include name="obj/xml/test-xml.o"/>
595 <include name="libinkscape.a"/>
596 </fileset>
597 <libs>
598 -L${devlibs}/lib
599 ${pcl.poppler-cairo} ${pcl.poppler-glib} ${pcl.poppler}
600 ${pcl.gtkmm-2.4} ${pcl.pangoft2} ${pcl.gthread-2.0}
601 ${devlibs}/bin/libxml2.dll
602 ${devlibs}/bin/libxslt.dll
603 ${pcl.cairo} ${pcl.cairomm-1.0}
604 ${pcl.libwpg-0.1} ${pcl.libwpg-stream-0.1}
605 -liconv
606 ${pcl.Magick++}
607 ${pcl.fontconfig} ${pcl.freetype2}
608 ${pcl.lcms}
609 ${pcl.gsl}
610 -lpng -ljpeg -ltiff -lpopt -lz
611 -lgc
612 -lws2_32 -lintl -lgdi32 -lcomdlg32 -lm
613 -lgomp -lpthreadGC2 -laspell
614 -lmscms <!-- required for color profiles -->
615 </libs>
616 </link>
617 </target>
620 <!--
621 ########################################################################
622 ## T A R G E T : D I S T B A S E
623 ########################################################################
624 -->
625 <target name="distbase" depends="i18n"
626 description="generate the distribution directory with all needed files">
628 <!-- Create the distribution directory -->
629 <copy todir="${dist}" file="AUTHORS"/>
630 <copy todir="${dist}" file="COPYING"/>
631 <copy todir="${dist}" file="COPYING.LIB"/>
632 <copy todir="${dist}" file="NEWS"/>
633 <copy todir="${dist}" file="README"/>
634 <copy todir="${dist}" file="TRANSLATORS"/>
635 <copy todir="${dist}" file="${devlibs}/bin/libatkmm-1.6-1.dll"/>
636 <copy todir="${dist}" file="${devlibs}/bin/libglibmm-2.4-1.dll"/>
637 <copy todir="${dist}" file="${devlibs}/bin/libgiomm-2.4-1.dll"/>
638 <copy todir="${dist}" file="${devlibs}/bin/libgtkmm-2.4-1.dll"/>
639 <copy todir="${dist}" file="${devlibs}/bin/libgdkmm-2.4-1.dll"/>
640 <copy todir="${dist}" file="${devlibs}/bin/libpangomm-1.4-1.dll"/>
641 <copy todir="${dist}" file="${devlibs}/bin/libcairomm-1.0-1.dll"/>
642 <copy todir="${dist}" file="${devlibs}/bin/libsigc-2.0-0.dll"/>
643 <copy todir="${dist}" file="${devlibs}/bin/freetype6.dll"/>
644 <copy todir="${dist}" file="${devlibs}/bin/libatk-1.0-0.dll"/>
645 <copy todir="${dist}" file="${devlibs}/bin/libgdk-win32-2.0-0.dll"/>
646 <copy todir="${dist}" file="${devlibs}/bin/libgdk_pixbuf-2.0-0.dll"/>
647 <copy todir="${dist}" file="${devlibs}/bin/libglib-2.0-0.dll"/>
648 <copy todir="${dist}" file="${devlibs}/bin/libgmodule-2.0-0.dll"/>
649 <copy todir="${dist}" file="${devlibs}/bin/libgobject-2.0-0.dll"/>
650 <copy todir="${dist}" file="${devlibs}/bin/libgtk-win32-2.0-0.dll"/>
651 <copy todir="${dist}" file="${devlibs}/bin/libgthread-2.0-0.dll"/>
652 <copy todir="${dist}" file="${devlibs}/bin/libgio-2.0-0.dll"/>
653 <copy todir="${dist}" file="${devlibs}/bin/libcairo-2.dll"/>
654 <copy todir="${dist}" file="${devlibs}/bin/libpoppler-5.dll"/>
655 <copy todir="${dist}" file="${devlibs}/bin/libpoppler-glib-4.dll"/>
656 <copy todir="${dist}" file="${devlibs}/bin/libpangocairo-1.0-0.dll"/>
657 <copy todir="${dist}" file="${devlibs}/bin/libpango-1.0-0.dll"/>
658 <copy todir="${dist}" file="${devlibs}/bin/libpangoft2-1.0-0.dll"/>
659 <copy todir="${dist}" file="${devlibs}/bin/libpangowin32-1.0-0.dll"/>
660 <copy todir="${dist}" file="${devlibs}/bin/freetype6.dll"/>
661 <copy todir="${dist}" file="${devlibs}/bin/libfontconfig-1.dll"/>
662 <copy todir="${dist}" file="${devlibs}/bin/libxml2.dll"/>
663 <copy todir="${dist}" file="${devlibs}/bin/libxslt.dll"/>
664 <copy todir="${dist}" file="${devlibs}/bin/libexpat-1.dll"/>
665 <copy todir="${dist}" file="${devlibs}/bin/libwpg-0.1.dll"/>
666 <copy todir="${dist}" file="${devlibs}/bin/libwpg-stream-0.1.dll"/>
667 <copy todir="${dist}" file="${devlibs}/bin/libwpd-0.8.dll"/>
668 <copy todir="${dist}" file="${devlibs}/bin/libwpd-stream-0.8.dll"/>
669 <copy todir="${dist}" file="${devlibs}/bin/libjpeg-7.dll"/>
670 <copy todir="${dist}" file="${devlibs}/bin/libpng12-0.dll"/>
671 <copy todir="${dist}" file="${devlibs}/bin/libtiff-3.dll"/>
672 <copy todir="${dist}" file="${devlibs}/bin/libopenjpeg-2.dll"/>
673 <copy todir="${dist}" file="${devlibs}/bin/msvcr70.dll"/>
674 <copy todir="${dist}" file="${devlibs}/bin/msvcr71.dll"/>
675 <copy todir="${dist}" file="${devlibs}/bin/zlib1.dll"/>
676 <copy todir="${dist}" file="${devlibs}/bin/bzip2.dll"/>
677 <copy todir="${dist}" file="${devlibs}/bin/iconv.dll"/>
678 <copy todir="${dist}" file="${devlibs}/bin/libpopt-0.dll"/>
679 <copy todir="${dist}" file="${devlibs}/bin/liblcms-1.dll"/>
680 <copy todir="${dist}" file="${devlibs}/bin/libMagick++-3.dll"/>
681 <copy todir="${dist}" file="${devlibs}/bin/libMagickCore-3.dll"/>
682 <copy todir="${dist}" file="${devlibs}/bin/libMagickWand-3.dll"/>
683 <copy todir="${dist}" file="${devlibs}/bin/intl.dll"/>
684 <copy todir="${dist}" file="${devlibs}/bin/pthreadGC2.dll"/>
685 <copy file="${devlibs}/bin/intl.dll" tofile="${dist}/libintl-2.dll"/>
686 <!-- MINGW support DLLs needed for openmp support -->
687 <copy todir="${dist}" file="${mingw_bin}/mingwm10.dll"/>
688 <copy todir="${dist}" file="${mingw}/lib/gcc/mingw32/bin/libgomp-1.dll"/>
690 <!-- MSGFMT files -->
691 <copy todir="${dist}">
692 <fileset dir="${build}/locale">
693 <exclude name=".*\.am"/>
694 </fileset>
695 </copy>
697 <mkdir dir="${dist}/data"/>
698 <mkdir dir="${dist}/locale"/>
699 <mkdir dir="${dist}/modules"/>
700 <mkdir dir="${dist}/plugins"/>
702 <!-- GTK -->
703 <copy todir="${dist}"> <fileset dir="${devlibs}/etc"/> </copy>
704 <copy todir="${dist}/lib"> <fileset dir="${devlibs}/lib/gtk-2.0"/> </copy>
705 <copy todir="${dist}/lib"> <fileset dir="${devlibs}/lib/glib-2.0"/> </copy>
706 <copy todir="${dist}">
707 <fileset dir="share">
708 <exclude name=".*\.am"/>
709 <exclude name=".*\.in"/>
710 <exclude name=".*\.sh"/>
711 </fileset>
712 </copy>
713 <copy todir="${dist}/share"> <fileset dir="${devlibs}/share/locale"/> </copy>
714 <copy todir="${dist}/share"> <fileset dir="${devlibs}/share/themes"/> </copy>
715 <copy todir="${dist}/share"> <fileset dir="${devlibs}/share/poppler"/> </copy>
716 <copy todir="${dist}" file="${devlibs}/bin/gdb.exe"/>
718 <!-- Aspell dictionaries -->
719 <copy todir="${dist}/lib"> <fileset dir="${devlibs}/lib/aspell-0.60"/> </copy>
721 <!-- Necessary to run extensions on windows if it is not in the path -->
722 <copy todir="${dist}" file="${devlibs}/bin/gspawn-win32-helper.exe"/>
723 <copy todir="${dist}" file="${devlibs}/bin/gspawn-win32-helper-console.exe"/>
725 <!-- PERL -->
726 <copy todir="${dist}" file="${devlibs}/perl/bin/perl58.dll"/>
728 <!-- PYTHON -->
729 <copy todir="${dist}" file="${devlibs}/python/python25.dll"/>
730 <copy todir="${dist}/python" file="${devlibs}/python/python.exe" />
731 <copy todir="${dist}/python" file="${devlibs}/python/pythonw.exe"/>
732 <copy todir="${dist}/python"> <fileset dir="${devlibs}/python/Lib"/> </copy>
733 <copy todir="${dist}/python"> <fileset dir="${devlibs}/python/DLLs"/> </copy>
734 <copy todir="${dist}/python"> <fileset dir="${devlibs}/python/Scripts"/> </copy>
736 <!--<copy file="${devlibs}/share/themes/MS-Windows/gtk-2.0/gtkrc" todir="${dist}/etc/gtk-2.0"/>-->
737 <makefile file="${dist}/etc/gtk-2.0/gtkrc">
738 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"
739 gtk-toolbar-icon-size = small-toolbar
741 # disable images in buttons. i've only seen ugly delphi apps use this feature.
742 gtk-button-images = 0
744 # disable the annoying beep in editable controls
745 gtk-error-bell = 0
747 # enable/disable images in menus. most "stock" microsoft apps don't use these, except sparingly.
748 # the office apps use them heavily, though.
749 gtk-menu-images = 1
751 # use the win32 button ordering instead of the GNOME HIG one, where applicable
752 gtk-alternative-button-order = 1
754 style "msw-default"
755 {
756 GtkWidget::interior-focus = 1
757 GtkOptionMenu::indicator-size = { 9, 5 }
758 GtkOptionMenu::indicator-spacing = { 7, 5, 2, 2 }
759 GtkSpinButton::shadow-type = in
761 # Owen and I disagree that these should be themable
762 #GtkUIManager::add-tearoffs = 0
763 #GtkComboBox::add-tearoffs = 0
765 GtkComboBox::appears-as-list = 1
766 GtkComboBox::focus-on-click = 0
768 GOComboBox::add_tearoffs = 0
770 GtkTreeView::allow-rules = 0
771 GtkTreeView::expander-size = 12
773 GtkExpander::expander-size = 12
775 GtkScrolledWindow::scrollbar_spacing = 1
777 GtkSeparatorMenuItem::horizontal-padding = 2
779 engine "wimp"
780 {
781 }
782 }
783 class "*" style "msw-default"
784 </makefile>
786 </target>
789 <!--
790 ########################################################################
791 ## T A R G E T : D I S T - I N K S C A P E
792 ########################################################################
793 -->
794 <target name="dist-inkscape" depends="link,distbase"
795 description="copy inkscape to the distribution directory">
797 <!-- Create the distribution directory -->
798 <copy todir="${dist}" file="${build}/inkscape.exe"/>
799 <copy todir="${dist}" file="${build}/inkscape.dbg"/>
800 </target>
803 <!--
804 ########################################################################
805 ## T A R G E T : D I S T - I N K V I E W
806 ########################################################################
807 -->
808 <target name="dist-inkview" depends="linkinkview,distbase"
809 description="copy inkview to the distribution directory">
811 <!-- Create the distribution directory -->
812 <copy todir="${dist}" file="${build}/inkview.exe"/>
813 <copy todir="${dist}" file="${build}/inkview.dbg"/>
814 </target>
817 <!--
818 ########################################################################
819 ## T A R G E T : C H E C K
820 ########################################################################
821 -->
822 <target name="check" depends="linkcxxtests,distbase"
823 description="perform unit tests">
824 <cxxtestrun command="${build}/cxxtests" workingdir="${dist}" />
825 </target>
828 <!--
829 ########################################################################
830 ## T A R G E T : JAVAC
831 ########################################################################
832 -->
833 <target name="javac" depends="init"
834 description="compile java binding classes">
835 <javac srcdir="${src}/bind/java" destdir="${build}/java/classes"/>
836 </target>
839 <!--
840 ########################################################################
841 ## T A R G E T : JAR
842 ########################################################################
843 -->
844 <target name="jar" depends="javac"
845 description="pack java classes and resources into a jar file">
846 <copy todir="${build}/java/classes"> <fileset dir="${devlibs}/bind/data"/> </copy>
847 <jar basedir="${build}/java/classes" destfile="${build}/java/lib/inkscape.jar"/>
848 </target>
850 <!--
851 ########################################################################
852 ## T A R G E T : BINDDIST
853 ########################################################################
854 -->
855 <target name="binddist" depends="jar"
856 description="pack java classes and resources into a jar file">
857 <copy todir="${dist}/share/bind"> <fileset dir="${devlibs}/bind/java"/> </copy>
858 <copy todir="${dist}/share/bind/java"> <fileset dir="${build}/java/lib"/> </copy>
860 </target>
862 <!--
863 ########################################################################
864 ## T A R G E T : BINDCLEAN
865 ########################################################################
866 -->
867 <target name="bindclean" depends=""
868 description="clean up java binding classes">
869 <delete dir="${build}/java"/>
870 </target>
875 <!--
876 ########################################################################
877 ## T A R G E T : D I S T - A L L
878 ########################################################################
879 -->
880 <target name="dist-all" depends="dist-inkscape,dist-inkview"
881 description="generate the distribution, along with inkview" >
882 </target>
887 <!--
888 ########################################################################
889 ## T A R G E T : D I S T - A L L - C H E C K
890 ########################################################################
891 -->
892 <target name="dist-all-check" depends="dist-all,check"
893 description="generate the distribution, along with inkview and run cxxtests" >
894 </target>
900 <!--
901 ########################################################################
902 ## T A R G E T : C L E A N
903 ########################################################################
904 -->
905 <target name="clean" depends="bindclean"
906 description="clean up. deleting build and distro dirs" >
908 <delete dir="${build}"/>
909 <delete dir="${dist}"/>
910 <delete file="build.dep"/>
911 <delete file="config.h"/>
912 <delete file="${src}/inkscape-version.cpp"/>
913 <delete file="${src}/test-main.cpp"/>
914 <delete file="${src}/test-src.cpp"/>
915 <delete file="${src}/display/test-display.cpp"/>
916 <delete file="${src}/helper/test-helper.cpp"/>
917 <delete file="${src}/libnr/test-nr.cpp"/>
918 <delete file="${src}/svg/test-svg.cpp"/>
919 <delete file="${src}/util/test-util.cpp"/>
920 <delete file="${src}/xml/test-xml.cpp"/>
922 </target>
926 </project>
927 <!--
928 ########################################################################
929 ## E N D
930 ########################################################################
931 -->