Code

Replace isspace() with isWhitespace(). Use pure unicode character classes.
[inkscape.git] / src / Makefile_insert
1 ## Makefile.am fragment, included by src/Makefile.am.
4 # ################################################
5 #
6 #  E X T R A 
7 #
8 # ################################################
10 if OS_WIN32
11 win32_sources = winmain.cpp
12 win32ldflags = -lcomdlg32
13 endif 
15 if INKJAR
16 inkjar_dir = inkjar
17 inkjar_libs = inkjar/libinkjar.a
18 endif
21 # ################################################
22 #
23 #  I N K S C A P E
24 #
25 # ################################################
27 # libinkpre.a: any object that's sharable between inkscape & inkview,
28 # and isn't needed by object files in subdirectories (i.e. libinkpre.a
29 # comes before subdirectory libraries on the link line).
30 #
31 # Excludes winmain.cpp (a gui wrapper around main): I'm guessing that
32 # it needs to be explicitly listed as a source of each graphical
33 # binary: it isn't (to my knowledge) called by main (whether directly
34 # or indirectly), so I don't think that putting it in a library will
35 # suffice to get it linked in.  Windows devel please confirm.  -- pjrm.
37 libinkpre_a_SOURCES =   \
38         algorithms/find-last-if.h       \
39         algorithms/longest-common-suffix.h      \
40         approx-equal.h remove-last.h    \
41         arc-context.cpp arc-context.h   \
42         attributes.cpp attributes.h     \
43         bad-uri-exception.h     \
44         brokenimage.xpm \
45         color-rgba.h    \
46         conn-avoid-ref.cpp conn-avoid-ref.h     \
47         connector-context.cpp connector-context.h       \
48         context-fns.cpp context-fns.h \
49         desktop-affine.cpp desktop-affine.h     \
50         desktop-events.cpp desktop-events.h     \
51         desktop-handles.cpp desktop-handles.h   \
52         desktop-style.cpp desktop-style.h       \
53         desktop.cpp desktop.h   \
54         document-undo.cpp       \
55         document.cpp document.h document-private.h      \
56         doxygen-main.cpp \
57         draw-anchor.cpp \
58         draw-anchor.h   \
59         draw-context.cpp draw-context.h \
60         dropper-context.cpp dropper-context.h   \
61         dyna-draw-context.cpp dyna-draw-context.h       \
62         enums.h \
63         event-context.cpp event-context.h       \
64         extract-uri.cpp extract-uri.h   \
65         file.cpp file.h \
66         fontsize-expansion.cpp fontsize-expansion.h     \
67         forward.h       \
68         geom.cpp geom.h \
69         gnuc-attribute.h        \
70         gradient-context.cpp gradient-context.h \
71         gradient-drag.cpp gradient-drag.h \
72         help.cpp help.h \
73         inkscape-stock.cpp inkscape-stock.h\
74         inkscape.cpp inkscape.h inkscape-private.h      \
75         interface.cpp interface.h       \
76         isnan.h \
77         knot-enums.h    \
78         knot-holder-entity.h    \
79         knot.cpp knot.h \
80         knotholder.cpp knotholder.h     \
81         layer-fns.cpp layer-fns.h       \
82         macros.h        \
83         marker-status.cpp marker-status.h       \
84         media.cpp media.h       \
85         message-context.cpp message-context.h \
86         message-stack.cpp message-stack.h \
87         message.h \
88         mod360.cpp mod360.h     \
89         modifier-fns.h  \
90         node-context.cpp node-context.h \
91         nodepath.cpp nodepath.h \
92         object-edit.cpp object-edit.h   \
93         object-hierarchy.cpp object-hierarchy.h \
94         object-ui.cpp object-ui.h       \
95         path-chemistry.cpp path-chemistry.h     \
96         path-prefix.h   \
97         pen-context.cpp \
98         pen-context.h   \
99         pencil-context.cpp      \
100         pencil-context.h        \
101         preferences.cpp preferences.h \
102         preferences-skeleton.h  \
103         menus-skeleton.h        \
104         prefix.cpp      \
105         prefix.h        \
106         prefs-utils.cpp \
107         prefs-utils.h   \
108         print.cpp print.h       \
109         rect-context.cpp rect-context.h \
110         require-config.h \
111         rubberband.cpp rubberband.h     \
112         satisfied-guide-cns.cpp satisfied-guide-cns.h   \
113         selcue.cpp selcue.h \
114         select-context.cpp select-context.h     \
115         selection-chemistry.cpp selection-chemistry.h   \
116         selection-describer.cpp selection-describer.h   \
117         selection.cpp selection.h       \
118         seltrans-handles.cpp seltrans-handles.h \
119         seltrans.cpp seltrans.h \
120         shortcuts-default-xml.cpp       \
121         shortcuts.cpp shortcuts.h       \
122         slideshow.cpp slideshow.h       \
123         snap.cpp snap.h \
124         snapped-point.cpp snapped-point.h \
125         snapper.cpp snapper.h \
126         line-snapper.cpp line-snapper.h \
127         grid-snapper.cpp grid-snapper.h \
128         guide-snapper.cpp guide-snapper.h \
129         object-snapper.cpp object-snapper.h \
130         sp-anchor.cpp sp-anchor.h       \
131         sp-clippath.cpp sp-clippath.h   \
132         sp-conn-end-pair.cpp sp-conn-end-pair.h \
133         sp-conn-end.cpp sp-conn-end.h   \
134         sp-cursor.cpp sp-cursor.h       \
135         sp-defs.cpp sp-defs.h   \
136         sp-ellipse.cpp sp-ellipse.h     \
137         sp-flowdiv.h sp-flowdiv.cpp \
138         sp-flowregion.h sp-flowregion.cpp \
139         sp-flowtext.h sp-flowtext.cpp \
140         sp-gradient-fns.h       \
141         sp-gradient-reference.cpp       \
142         sp-gradient-reference.h \
143         sp-gradient-spread.h    \
144         sp-gradient-units.h     \
145         sp-gradient-vector.h    \
146         sp-gradient.cpp sp-gradient.h   \
147         sp-guide-attachment.h   \
148         sp-guide-constraint.h   \
149         sp-guide.cpp sp-guide.h \
150         sp-image.cpp sp-image.h \
151         sp-item-group.cpp sp-item-group.h       \
152         sp-item-notify-moveto.cpp sp-item-notify-moveto.h       \
153         sp-item-rm-unsatisfied-cns.cpp sp-item-rm-unsatisfied-cns.h     \
154         sp-item-transform.cpp sp-item-transform.h       \
155         sp-item-update-cns.cpp sp-item-update-cns.h     \
156         sp-item.cpp sp-item.h   \
157         sp-line.cpp sp-line.h   \
158         sp-linear-gradient-fns.h        \
159         sp-linear-gradient.h    \
160         sp-marker-loc.h \
161         sp-marker.cpp sp-marker.h       \
162         sp-mask.cpp sp-mask.h   \
163         sp-metadata.cpp sp-metadata.h   \
164         sp-metric.h     \
165         sp-metrics.cpp sp-metrics.h     \
166         sp-namedview.cpp sp-namedview.h \
167         sp-object-group.cpp sp-object-group.h   \
168         sp-object-repr.cpp sp-object-repr.h     \
169         sp-object.cpp sp-object.h       \
170         sp-offset.cpp sp-offset.h       \
171         sp-paint-server.cpp sp-paint-server.h   \
172         sp-path.cpp sp-path.h   \
173         sp-pattern.cpp sp-pattern.h     \
174         sp-polygon.cpp sp-polygon.h     \
175         sp-polyline.cpp sp-polyline.h   \
176         sp-radial-gradient-fns.h        \
177         sp-radial-gradient.h    \
178         sp-rect.cpp sp-rect.h   \
179         sp-root.cpp sp-root.h   \
180         sp-shape.cpp sp-shape.h \
181         sp-spiral.cpp sp-spiral.h       \
182         sp-star.cpp sp-star.h   \
183         sp-stop-fns.h   \
184         sp-stop.h       \
185         sp-string.cpp sp-string.h       \
186         sp-symbol.cpp sp-symbol.h       \
187         sp-text.cpp sp-text.h   \
188         sp-textpath.h   \
189         sp-tspan.cpp sp-tspan.h \
190         sp-use-reference.cpp sp-use-reference.h \
191         sp-use.cpp sp-use.h     \
192         spiral-context.cpp spiral-context.h     \
193         splivarot.cpp splivarot.h       \
194         star-context.cpp star-context.h \
195         streams-gzip.h streams-gzip.cpp \
196         streams-handles.h streams-handles.cpp   \
197         streams-jar.h streams-jar.cpp   \
198         streams-zlib.h streams-zlib.cpp \
199         style.cpp style.h       \
200         sp-style-elem.cpp sp-style-elem.h       \
201         svg-profile.h \
202         svg-view.cpp svg-view.h \
203         svg-view-widget.cpp svg-view-widget.h   \
204         text-chemistry.cpp text-chemistry.h     \
205         text-context.cpp text-context.h \
206         text-editing.cpp text-editing.h \
207         text-tag-attributes.h   \
208         tools-switch.cpp tools-switch.h\
209         uri-references.cpp uri-references.h     \
210         verbs.cpp verbs.h       \
211         version.cpp version.h   \
212         zoom-context.cpp zoom-context.h
214 # Force libinkpost.a to be rebuilt if we add files to libinkpost_a_SOURCES.
215 libinkpost_a_DEPENDENCIES = Makefile_insert
217 # libinkpost.a: Any object file that needs to be near the end of the link line.
218 # gradient-chemistry.o is called by some things in display/.
219 libinkpost_a_SOURCES =  \
220         color.cpp color.h       \
221         decimal-round.h \
222         dir-util.cpp dir-util.h \
223         fill-or-stroke.h        \
224         fixes.cpp \
225         gc-alloc.h      \
226         gc-anchored.h gc-anchored.cpp   \
227         gc-core.h       \
228         gc-finalized.h  \
229         gc-managed.h    \
230         gc.cpp  \
231         gradient-chemistry.cpp gradient-chemistry.h     \
232         memeq.h \
233         round.h \
234         streq.h \
235         strneq.h        \
236         composite-undo-stack-observer.h \
237         composite-undo-stack-observer.cpp \
238         undo-stack-observer.h \
239         unit-constants.h        \
240         uri.cpp uri.h
242 inkscape_private_libs = \
243         libinkpre.a             \
244         application/libinkapp.a \
245         ui/dialog/libuidialog.a \
246         dialogs/libspdialogs.a  \
247         dom/libdom.a            \
248         jabber_whiteboard/libjabber_whiteboard.a \
249         trace/libtrace.a        \
250         svg/libspsvg.a          \
251         widgets/libspwidgets.a  \
252         display/libspdisplay.a  \
253         helper/libspchelp.a     \
254         libcroco/libcroco.a     \
255         libnrtype/libnrtype.a   \
256         libnr/libnr.a           \
257         libavoid/libavoid.a     \
258         livarot/libvarot.a      \
259         ui/view/libuiview.a     \
260         ui/libui.a              \
261         ui/widget/libuiwidget.a \
262         graphlayout/libgraphlayout.a    \
263         removeoverlap/libremoveoverlap.a                \
264         extension/libextension.a        \
265         extension/implementation/libimplementation.a    \
266         extension/internal/libinternal.a        \
267         extension/script/libscript.a    \
268         xml/libspxml.a          \
269         util/libinkutil.a       \
270         io/libio.a              \
271         $(inkjar_libs)          \
272         libinkpost.a            \
273         debug/libinkdebug.a
275 all_libs =                      \
276         $(inkscape_private_libs)        \
277         $(INKSCAPE_LIBS)        \
278         $(GNOME_PRINT_LIBS)     \
279         $(GNOME_VFS_LIBS)       \
280         $(XFT_LIBS)             \
281         $(FREETYPE_LIBS)        \
282         $(kdeldadd)             \
283         $(win32ldflags)         \
284         $(PERL_LIBS)            \
285         $(PYTHON_LIBS)  \
286         $(LIBLOUDMOUTH_LIBS) 
288 desktop.$(OBJEXT): helper/sp-marshal.h
289 document.$(OBJEXT): helper/sp-marshal.h inkscape_version.h
290 extension/internal/latex-pstricks.$(OBJEXT): inkscape_version.h
291 extension/internal/ps.$(OBJEXT): inkscape_version.h
292 inkscape.$(OBJEXT): helper/sp-marshal.h inkscape_version.h
293 knot.$(OBJEXT): helper/sp-marshal.h
294 main.$(OBJEXT): inkscape_version.h
295 selection.$(OBJEXT): helper/sp-marshal.h
296 sp-object.$(OBJEXT): helper/sp-marshal.h
297 sp-root.$(OBJEXT): inkscape_version.h
298 view.$(OBJEXT): helper/sp-marshal.h
299 help.$(OBJEXT): inkscape_version.h
302 # ################################################
304 #  B I N A R I E S
306 # ################################################
309 inkscape_SOURCES = main.cpp $(win32_sources)
310 inkscape_LDADD = $(all_libs)
311 inkscape_LDFLAGS = --export-dynamic $(kdeldflags)
313 inkview_SOURCES = inkview.cpp $(win32_sources)
314 inkview_LDADD = $(all_libs)
316 attributes_test_SOURCES = attributes-test.cpp
317 attributes_test_LDADD = attributes.$(OBJEXT) -lglib-2.0
319 dir_util_test_SOURCES = dir-util-test.cpp utest/test-2ary-cases.h
320 dir_util_test_LDADD = dir-util.$(OBJEXT) -lglib-2.0
322 mod360_test_SOURCES = mod360-test.cpp
323 mod360_test_LDADD = libinkpre.a -lglib-2.0
325 extract_uri_test_SOURCES = extract-uri-test.cpp
326 extract_uri_test_LDADD = libinkpre.a -lglib-2.0
328 round_test_SOURCES = round-test.cpp
329 round_test_LDADD = libinkpost.a
331 sp_gradient_test_SOURCES = sp-gradient-test.cpp
332 sp_gradient_test_LDADD = $(all_libs) 
334 sp_style_elem_test_SOURCES = sp-style-elem-test.cpp
335 sp_style_elem_test_LDADD = $(all_libs)
337 style_test_SOURCES = style-test.cpp
338 style_test_LDADD = $(all_libs)
340 inkscape_version.h: ../configure.ac
341         echo '#define INKSCAPE_VERSION "$(VERSION)"' > inkscape_version.h