1 ## Makefile.am fragment, included by src/Makefile.am.
4 # ################################################
5 #
6 # I N K S C A P E
7 #
8 # ################################################
10 # libinkpre.a: any object that's sharable between inkscape & inkview,
11 # and isn't needed by object files in subdirectories (i.e. libinkpre.a
12 # comes before subdirectory libraries on the link line).
13 #
14 # Excludes winmain.cpp (a gui wrapper around main): I'm guessing that
15 # it needs to be explicitly listed as a source of each graphical
16 # binary: it isn't (to my knowledge) called by main (whether directly
17 # or indirectly), so I don't think that putting it in a library will
18 # suffice to get it linked in. Windows devel please confirm. -- pjrm.
20 ink_common_sources += \
21 algorithms/find-last-if.h \
22 algorithms/longest-common-suffix.h \
23 approx-equal.h remove-last.h \
24 arc-context.cpp arc-context.h \
25 attributes.cpp attributes.h \
26 axis-manip.cpp axis-manip.h \
27 bad-uri-exception.h \
28 box3d-context.cpp box3d-context.h \
29 box3d.cpp box3d.h \
30 box3d-side.cpp box3d-side.h \
31 brokenimage.xpm \
32 color.cpp color.h \
33 color-profile.cpp color-profile.h \
34 color-profile-fns.h \
35 color-rgba.h \
36 common-context.cpp common-context.h \
37 composite-undo-stack-observer.cpp \
38 composite-undo-stack-observer.h \
39 conditions.cpp conditions.h \
40 conn-avoid-ref.cpp conn-avoid-ref.h \
41 connection-pool.h \
42 connector-context.cpp connector-context.h \
43 console-output-undo-observer.h console-output-undo-observer.cpp \
44 context-fns.cpp context-fns.h \
45 decimal-round.h \
46 desktop-affine.h \
47 desktop.cpp desktop.h \
48 desktop-events.cpp desktop-events.h \
49 desktop-handles.cpp desktop-handles.h \
50 desktop-style.cpp desktop-style.h \
51 device-manager.cpp device-manager.h \
52 dir-util.cpp dir-util.h \
53 document.cpp document.h document-private.h \
54 document-subset.cpp document-subset.h \
55 document-undo.cpp \
56 doxygen-main.cpp \
57 draw-anchor.cpp draw-anchor.h \
58 draw-context.cpp draw-context.h \
59 dropper-context.cpp dropper-context.h \
60 dyna-draw-context.cpp dyna-draw-context.h \
61 ege-adjustment-action.cpp ege-adjustment-action.h \
62 ege-color-prof-tracker.cpp ege-color-prof-tracker.h \
63 ege-output-action.cpp ege-output-action.h \
64 ege-select-one-action.cpp ege-select-one-action.h \
65 enums.h \
66 eraser-context.cpp eraser-context.h \
67 event-context.cpp event-context.h \
68 event-log.cpp event-log.h event.h \
69 extract-uri.cpp extract-uri.h \
70 file.cpp file.h \
71 fill-or-stroke.h \
72 filter-chemistry.cpp filter-chemistry.h \
73 filter-enums.cpp filter-enums.h \
74 fixes.cpp \
75 flood-context.cpp flood-context.h \
76 forward.h \
77 gc-allocator.h \
78 gc-alloc.h \
79 gc-anchored.h gc-anchored.cpp \
80 gc-core.h \
81 gc.cpp \
82 gc-finalized.h gc-finalized.cpp \
83 gc-managed.h \
84 gc-soft-ptr.h \
85 gradient-chemistry.cpp gradient-chemistry.h \
86 gradient-context.cpp gradient-context.h \
87 gradient-drag.cpp gradient-drag.h \
88 guide-snapper.cpp guide-snapper.h \
89 help.cpp help.h \
90 helper-fns.h \
91 helper/pixbuf-ops.cpp \
92 helper/pixbuf-ops.h \
93 icon-size.h \
94 id-clash.cpp id-clash.h \
95 ige-mac-menu.h ige-mac-menu.c \
96 ink-action.cpp \
97 ink-action.h \
98 inkscape.cpp inkscape.h inkscape-private.h \
99 interface.cpp interface.h \
100 isinf.h \
101 isnormal.h \
102 knot.cpp knot.h \
103 knot-enums.h \
104 knotholder.cpp knotholder.h \
105 knot-holder-entity.h knot-holder-entity.cpp \
106 layer-fns.cpp layer-fns.h \
107 layer-manager.cpp layer-manager.h \
108 line-geometry.cpp line-geometry.h \
109 line-snapper.cpp line-snapper.h \
110 lpe-tool-context.cpp lpe-tool-context.h \
111 macros.h \
112 main-cmdlineact.cpp main-cmdlineact.h \
113 marker.cpp marker.h \
114 media.cpp media.h \
115 memeq.h \
116 menus-skeleton.h \
117 message-context.cpp message-context.h \
118 message.h \
119 message-stack.cpp message-stack.h \
120 mod360.cpp mod360.h \
121 modifier-fns.h \
122 node-context.cpp node-context.h \
123 nodepath.cpp nodepath.h \
124 object-edit.cpp object-edit.h \
125 object-hierarchy.cpp object-hierarchy.h \
126 object-snapper.cpp object-snapper.h \
127 path-chemistry.cpp path-chemistry.h \
128 path-prefix.h \
129 pencil-context.cpp pencil-context.h \
130 pen-context.cpp pen-context.h \
131 persp3d.cpp persp3d.h \
132 persp3d-reference.cpp persp3d-reference.h \
133 perspective-line.cpp perspective-line.h \
134 preferences.cpp preferences.h \
135 preferences-skeleton.h \
136 prefix.cpp prefix.h \
137 print.cpp print.h \
138 profile-manager.cpp profile-manager.h \
139 proj_pt.cpp proj_pt.h \
140 rect-context.cpp rect-context.h \
141 require-config.h \
142 round.h \
143 rubberband.cpp rubberband.h \
144 satisfied-guide-cns.cpp satisfied-guide-cns.h \
145 selcue.cpp selcue.h \
146 select-context.cpp select-context.h \
147 selection-chemistry.cpp selection-chemistry.h \
148 selection.cpp selection.h \
149 selection-describer.cpp selection-describer.h \
150 seltrans.cpp seltrans.h \
151 seltrans-handles.cpp seltrans-handles.h \
152 shape-editor.cpp shape-editor.h \
153 shortcuts.cpp shortcuts.h \
154 snap.cpp snap.h \
155 snapped-curve.cpp snapped-curve.h \
156 snapped-line.cpp snapped-line.h \
157 snapped-point.cpp snapped-point.h \
158 snapper.cpp snapper.h \
159 snap-preferences.cpp snap-preferences.h \
160 sp-anchor.cpp sp-anchor.h \
161 sp-clippath.cpp sp-clippath.h \
162 sp-conn-end.cpp sp-conn-end.h \
163 sp-conn-end-pair.cpp sp-conn-end-pair.h \
164 sp-cursor.cpp sp-cursor.h \
165 sp-defs.cpp sp-defs.h \
166 sp-desc.cpp sp-desc.h \
167 sp-ellipse.cpp sp-ellipse.h \
168 sp-filter.cpp sp-filter.h number-opt-number.h \
169 sp-filter-fns.h \
170 sp-filter-primitive.cpp sp-filter-primitive.h \
171 sp-filter-reference.cpp sp-filter-reference.h \
172 sp-filter-units.h \
173 sp-flowdiv.h sp-flowdiv.cpp \
174 sp-flowregion.h sp-flowregion.cpp \
175 sp-flowtext.h sp-flowtext.cpp \
176 sp-font.cpp sp-font.h \
177 sp-font-face.cpp sp-font-face.h \
178 sp-gaussian-blur.cpp sp-gaussian-blur.h \
179 sp-gaussian-blur-fns.h \
180 sp-glyph.cpp sp-glyph.h \
181 sp-glyph-kerning.cpp sp-glyph-kerning.h \
182 sp-gradient.cpp sp-gradient.h \
183 sp-gradient-fns.h \
184 sp-gradient-reference.cpp sp-gradient-reference.h \
185 sp-gradient-spread.h \
186 sp-gradient-units.h \
187 sp-gradient-vector.h \
188 sp-guide-attachment.h \
189 sp-guide-constraint.h \
190 sp-guide.cpp sp-guide.h \
191 sp-image.cpp sp-image.h \
192 spiral-context.cpp spiral-context.h \
193 sp-item.cpp sp-item.h \
194 sp-item-group.cpp sp-item-group.h \
195 sp-item-notify-moveto.cpp sp-item-notify-moveto.h \
196 sp-item-rm-unsatisfied-cns.cpp sp-item-rm-unsatisfied-cns.h \
197 sp-item-transform.cpp sp-item-transform.h \
198 sp-item-update-cns.cpp sp-item-update-cns.h \
199 sp-linear-gradient-fns.h \
200 sp-linear-gradient.h \
201 sp-line.cpp sp-line.h \
202 splivarot.cpp splivarot.h \
203 sp-lpe-item.cpp sp-lpe-item.h \
204 sp-marker-loc.h \
205 sp-mask.cpp sp-mask.h \
206 sp-metadata.cpp sp-metadata.h \
207 sp-metric.h \
208 sp-metrics.cpp sp-metrics.h \
209 sp-missing-glyph.cpp sp-missing-glyph.h \
210 sp-namedview.cpp sp-namedview.h \
211 sp-object.cpp sp-object.h \
212 sp-object-group.cpp sp-object-group.h \
213 sp-object-repr.cpp sp-object-repr.h \
214 sp-offset.cpp sp-offset.h \
215 sp-paint-server.cpp sp-paint-server.h \
216 sp-path.cpp sp-path.h \
217 sp-pattern.cpp sp-pattern.h \
218 sp-polygon.cpp sp-polygon.h \
219 sp-polyline.cpp sp-polyline.h \
220 sp-radial-gradient-fns.h \
221 sp-radial-gradient.h \
222 sp-rect.cpp sp-rect.h \
223 sp-root.cpp sp-root.h \
224 sp-script.cpp sp-script.h \
225 sp-shape.cpp sp-shape.h \
226 sp-spiral.cpp sp-spiral.h \
227 sp-star.cpp sp-star.h \
228 sp-stop-fns.h \
229 sp-stop.h \
230 sp-string.cpp sp-string.h \
231 sp-style-elem.cpp sp-style-elem.h \
232 sp-switch.cpp sp-switch.h \
233 sp-symbol.cpp sp-symbol.h \
234 sp-text.cpp sp-text.h \
235 sp-textpath.h \
236 sp-title.cpp sp-title.h \
237 sp-tref.cpp sp-tref.h \
238 sp-tref-reference.cpp sp-tref-reference.h \
239 sp-tspan.cpp sp-tspan.h \
240 sp-use.cpp sp-use.h \
241 sp-use-reference.cpp sp-use-reference.h \
242 star-context.cpp star-context.h \
243 streq.h \
244 strneq.h \
245 style.cpp style.h \
246 svg-profile.h \
247 svg-view.cpp svg-view.h \
248 svg-view-widget.cpp svg-view-widget.h \
249 syseq.h \
250 text-chemistry.cpp text-chemistry.h \
251 text-context.cpp text-context.h \
252 text-editing.cpp text-editing.h \
253 text-tag-attributes.h \
254 tools-switch.cpp tools-switch.h \
255 transf_mat_3x4.cpp transf_mat_3x4.h \
256 tweak-context.h tweak-context.cpp \
257 ui/context-menu.cpp \
258 ui/context-menu.h \
259 undo-stack-observer.h \
260 unicoderange.cpp unicoderange.h \
261 unit-constants.h \
262 uri.cpp uri.h \
263 uri-references.cpp uri-references.h \
264 vanishing-point.cpp vanishing-point.h \
265 verbs.cpp verbs.h \
266 version.cpp version.h \
267 zoom-context.cpp zoom-context.h
269 # Additional dependencies
271 desktop.$(OBJEXT): helper/sp-marshal.h
272 document.$(OBJEXT): helper/sp-marshal.h
273 inkscape.$(OBJEXT): helper/sp-marshal.h
274 knot.$(OBJEXT): helper/sp-marshal.h
275 selection.$(OBJEXT): helper/sp-marshal.h
276 sp-object.$(OBJEXT): helper/sp-marshal.h
277 view.$(OBJEXT): helper/sp-marshal.h
279 libinkversion_a_SOURCES = inkscape-version.cpp inkscape-version.h
281 if USE_SVN_VERSION
282 inkscape_version_deps = $(top_srcdir)/.svn/entries
283 endif
285 # If this is an SVN snapshot build, regenerate this file every time
286 # someone updates the SVN working directory.
287 inkscape-version.cpp: $(inkscape_version_deps)
288 VER_PREFIX="$(VERSION)"; \
289 if test -x "$(srcdir)/.svn" -a ! -z `which svn`; then \
290 VER_SVNREV=" r`svn info $(srcdir) | sed -n -e '/^Revision:/s/Revision: \(.*\)/\1/p'`"; \
291 if test ! -z "`svn status -q $(srcdir)`"; then \
292 VER_CUSTOM=" custom"; \
293 fi; \
294 fi; \
295 VERSION="$$VER_PREFIX$$VER_SVNREV$$VER_CUSTOM"; \
296 echo "namespace Inkscape { " \
297 "char const *version_string = \"$$VERSION\"; " \
298 "}" > inkscape-version.new.cpp; \
299 if cmp -s inkscape-version.new.cpp inkscape-version.cpp; then \
300 rm inkscape-version.new.cpp; \
301 else \
302 mv inkscape-version.new.cpp inkscape-version.cpp; \
303 fi; \
304 echo $$VERSION
306 # ######################
307 # ### CxxTest stuff ####
308 # ######################
309 CXXTEST_TESTSUITES += \
310 $(srcdir)/MultiPrinter.h \
311 $(srcdir)/TRPIFormatter.h \
312 $(srcdir)/PylogFormatter.h \
313 $(srcdir)/attributes-test.h \
314 $(srcdir)/color-profile-test.h \
315 $(srcdir)/dir-util-test.h \
316 $(srcdir)/extract-uri-test.h \
317 $(srcdir)/mod360-test.h \
318 $(srcdir)/round-test.h \
319 $(srcdir)/preferences-test.h \
320 $(srcdir)/sp-gradient-test.h \
321 $(srcdir)/sp-style-elem-test.h \
322 $(srcdir)/style-test.h \
323 $(srcdir)/test-helpers.h \
324 $(srcdir)/verbs-test.h