~ubuntu-branches/debian/sid/scribus/sid

« back to all changes in this revision

Viewing changes to .pc/scribus_CMakeLists.patch/scribus/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Oleksandr Moskalenko
  • Date: 2012-02-09 21:50:56 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120209215056-2wrx1ara0jbm7fi5
Tags: 1.4.0.dfsg+r17287-1
* New upstream stable release upload into Debian (Closes: #654703).
* Applied the Ubuntu armel patch.
* Removed non-free color swatches from resources.
* debian/control:
  - Moved icc-profiles from Recommends to Suggests (Closes: #655885).
  - Updated Standards-Version to 3.9.2.
  - Updated extended description per lintian warning.
* debian/rules:
  - Update mailcap (Closes: #630751). A request for mime.types update has
    been sent to the mime-support maintainer.
  - Added build-arch and build-indep targets per lintian warning.
* debian/patches:
  - top_cmakelists.patch - don't copy extra docs and changelogs.
  - scribus_cmakelists.patch - don't copy extra docs and changelogs.
  - scribus_cmakelists.patch - don't install the non-free "doc" dir.
  - profiles_cmakelists.patch - don't install non-free sRGB profile.
* debian/copyright: 
  - Converted to the DEP5 machine readable foramt.
  - Added licenses for free color swatches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
IF(WIN32)
2
 
  ADD_DEFINITIONS(-DQT_DLL)
3
 
ENDIF(WIN32)
4
 
 
5
 
ADD_SUBDIRECTORY(doc)
6
 
ADD_SUBDIRECTORY(dtd)
7
 
ADD_SUBDIRECTORY(manpages)
8
 
ADD_SUBDIRECTORY(colormgmt)
9
 
ADD_SUBDIRECTORY(profiles)
10
 
ADD_SUBDIRECTORY(styles)
11
 
ADD_SUBDIRECTORY(text)
12
 
ADD_SUBDIRECTORY(fonts)
13
 
ADD_SUBDIRECTORY(desaxe)
14
 
ADD_SUBDIRECTORY(unicodemap)
15
 
IF (WANT_DESIGNER)
16
 
  ADD_SUBDIRECTORY(designer)
17
 
ENDIF (WANT_DESIGNER)
18
 
 
19
 
SET(SCRIBUS_UI_SRC
20
 
  aboutplugins.ui
21
 
  aligndistribute.ui
22
 
  charselect.ui
23
 
  charselectenhanced.ui
24
 
  cmsprefsbase.ui
25
 
  docitemattrprefs.ui
26
 
  docsections.ui
27
 
  gtfiledialog.ui
28
 
  guidemanager.ui
29
 
  hysettingsBase.ui
30
 
  insertaframe.ui
31
 
  latexeditor.ui
32
 
  measurementsbase.ui
33
 
  multipleduplicate.ui
34
 
  multiprogressdialog.ui
35
 
  nftdialog.ui
36
 
  nftwidget.ui
37
 
  pageitemattributes.ui
38
 
  patterndialog.ui
39
 
  picsearch.ui
40
 
  picsearchoptions.ui
41
 
  picstatus.ui
42
 
  pluginmanagerprefsgui.ui
43
 
  polygonwidgetbase.ui
44
 
  printdialogbase.ui
45
 
  replacecolors.ui
46
 
  replaceonecolor.ui
47
 
  selectobjects.ui
48
 
  shortcutwidget.ui
49
 
  smcstylewidget.ui
50
 
  smlinestylewidget.ui
51
 
  smpstylewidget.ui
52
 
  smreplacedia.ui
53
 
  smstyleimport.ui
54
 
  stylemanager.ui
55
 
  tabdisplay.ui
56
 
  tabexternaltoolswidget.ui
57
 
  tabgeneral.ui
58
 
  tabkeyboardshortcutswidget.ui
59
 
  tabmiscellaneous.ui
60
 
  tabprinter.ui
61
 
  tabscrapbook.ui
62
 
  tocindexprefs.ui
63
 
  ui/copypagetomasterpage.ui
64
 
  ui/createrange.ui
65
 
  ui/helpbrowser.ui
66
 
  unicodesearch.ui
67
 
  useprintermarginsdialog.ui
68
 
)
69
 
 
70
 
SET(SCRIBUS_MOC_CLASSES
71
 
  about.h
72
 
  aboutplugins.h
73
 
  actionmanager.h
74
 
  adjustcmsdialog.h
75
 
  aligndistribute.h
76
 
  alignselect.h
77
 
  annot.h
78
 
  annota.h
79
 
  applytemplatedialog.h
80
 
  arrowchooser.h
81
 
  autoform.h
82
 
  autoformbuttongroup.h
83
 
  basepointwidget.h
84
 
  bookmarkpalette.h
85
 
  bookmwin.h
86
 
  buttonicon.h
87
 
  canvas.h
88
 
  canvasgesture_rulermove.h
89
 
  canvasmode.h
90
 
  canvasmode_edit.h
91
 
  canvasmode_legacy.h
92
 
  canvasmode_measurements.h
93
 
  canvasmode_normal.h
94
 
  charselect.h
95
 
  charselectenhanced.h
96
 
  chartablemodel.h
97
 
  chartableview.h
98
 
  charzoom.h
99
 
  checkDocument.h
100
 
  cmsprefs.h
101
 
  cmykfw.h
102
 
  collect4output.h
103
 
  colorblind.h
104
 
  colorchart.h
105
 
  colorcombo.h
106
 
  colorlistbox.h
107
 
  colorm.h
108
 
  commonstrings.h
109
 
  contextmenu.h
110
 
  cpalette.h
111
 
  cupsoptions.h
112
 
  curvewidget.h
113
 
  customfdialog.h
114
 
  dasheditor.h
115
 
  dcolor.h
116
 
  deferredtask.h
117
 
  delpages.h
118
 
  docinfo.h
119
 
  docitemattrprefs.h
120
 
  docsections.h
121
 
  editor.h
122
 
  effectsdialog.h
123
 
  extimageprops.h
124
 
  fileloader.h
125
 
  filesearch.h
126
 
  filewatcher.h
127
 
  fontcombo.h
128
 
  fontlistmodel.h
129
 
  fontlistview.h
130
 
  fontprefs.h
131
 
  fontreplacedialog.h
132
 
  gradienteditor.h
133
 
  gtdialogs.h
134
 
  gtfiledialog.h
135
 
  guidemanager.h
136
 
  guidesdelegate.h
137
 
  guidesmodel.h
138
 
  helpbrowser.h
139
 
  hruler.h
140
 
  hyask.h
141
 
  hyphenator.h
142
 
  hysettings.h
143
 
  imageinfodialog.h
144
 
  insertTable.h
145
 
  insertaframe.h
146
 
  inspage.h
147
 
  javadocs.h
148
 
  latexeditor.h
149
 
  latexhelpers.h
150
 
  layers.h
151
 
  loadsaveplugin.h
152
 
  loremipsum.h
153
 
  marginwidget.h
154
 
  margindialog.h
155
 
  masterpagepalette.h
156
 
  measurements.h
157
 
  menumanager.h
158
 
  mergedoc.h
159
 
  missing.h
160
 
  movepage.h
161
 
  multipleduplicate.h
162
 
  multiprogressdialog.h
163
 
  navigator.h
164
 
  newfile.h
165
 
  newtemp.h
166
 
  nftdialog.h
167
 
  nftwidget.h
168
 
  nodeeditpalette.h
169
 
  observable.h
170
 
  oneclick.h
171
 
  outlinepalette.h
172
 
  pageitem.h
173
 
  pageitem_imageframe.h
174
 
  pageitem_latexframe.h
175
 
  pageitem_line.h
176
 
  pageitem_pathtext.h
177
 
  pageitem_polygon.h
178
 
  pageitem_polyline.h
179
 
  pageitem_textframe.h
180
 
  pageitemattributes.h
181
 
  pageitempointer.h
182
 
  pagelayout.h
183
 
  pagepalette.h
184
 
  pageselector.h
185
 
  patterndialog.h
186
 
  pdflib.h
187
 
  pdflib_core.h
188
 
  pdfopts.h
189
 
  picsearch.h
190
 
  picsearchoptions.h
191
 
  picstatus.h
192
 
  pluginmanager.h
193
 
  pluginmanagerprefsgui.h
194
 
  polygonwidget.h
195
 
  polyprops.h
196
 
  prefs.h
197
 
  prefsdialogbase.h
198
 
  prefsmanager.h
199
 
  prefspanel.h
200
 
  preview.h
201
 
  printdialog.h
202
 
  propertiespalette.h
203
 
  pslib.h
204
 
  query.h
205
 
  reformdoc.h
206
 
  replacecolors.h
207
 
  replaceonecolor.h
208
 
  rulermover.h
209
 
  sampleitem.h
210
 
  scfilewidget.h
211
 
  scgtplugin.h
212
 
  schelptreemodel.h
213
 
  scinputdialog.h
214
 
  scmenu.h
215
 
  scmessagebox.h
216
 
  scplugin.h
217
 
  scprintengine.h
218
 
  scraction.h
219
 
  scrapbookpalette.h
220
 
  scribus.h
221
 
  scribusapp.h
222
 
  scribuscore.h
223
 
  scribusdoc.h
224
 
  scribusview.h
225
 
  scribuswin.h
226
 
  scrpalettebase.h
227
 
  scrspinbox.h
228
 
  sctablewidget.h
229
 
  sctextbrowser.h
230
 
  sctoolbar.h
231
 
  sctreewidget.h
232
 
  search.h
233
 
  selection.h
234
 
  selectobjects.h
235
 
  selfield.h
236
 
  shadebutton.h
237
 
  shortcutwidget.h
238
 
  smalignselect.h
239
 
  smcheckbox.h
240
 
  smcolorcombo.h
241
 
  smcstylewidget.h
242
 
  smfontcomboh.h
243
 
  smlinestyle.h
244
 
  smlinestylewidget.h
245
 
  smpstylewidget.h
246
 
  smreplacedia.h
247
 
  smsccombobox.h
248
 
  smscrspinbox.h
249
 
  smshadebutton.h
250
 
  smspinbox.h
251
 
  smstyleimport.h
252
 
  smstyleselect.h
253
 
  smtabruler.h
254
 
  smtextstyles.h
255
 
  spalette.h
256
 
  storyeditor.h
257
 
  styleitem.h
258
 
  stylemanager.h
259
 
  styleselect.h
260
 
  styleview.h
261
 
  tabcheckdoc.h
262
 
  tabdisplay.h
263
 
  tabdocument.h
264
 
  tabexternaltoolswidget.h
265
 
  tabgeneral.h
266
 
  tabguides.h
267
 
  tabkeyboardshortcutswidget.h
268
 
  tabmanager.h
269
 
  tabmiscellaneous.h
270
 
  tabpdfoptions.h
271
 
  tabprinter.h
272
 
  tabruler.h
273
 
  tabscrapbook.h
274
 
  tabtools.h
275
 
  tabtypography.h
276
 
  tocgenerator.h
277
 
  tocindexprefs.h
278
 
  tt/simpletreemodel/treemodel.h
279
 
  ui/copypagetomasterpagedialog.h
280
 
  ui/createrange.h
281
 
  ui/edittoolbar.h
282
 
  ui/filetoolbar.h  
283
 
  ui/modetoolbar.h
284
 
  ui/pdftoolbar.h
285
 
  undogui.h
286
 
  undomanager.h
287
 
  unicodesearch.h
288
 
  upgradechecker.h
289
 
  urllauncher.h
290
 
  useprintermarginsdialog.h
291
 
  vruler.h
292
 
)
293
 
 
294
 
SET(SCRIBUS_SOURCES
295
 
  about.cpp
296
 
  aboutplugins.cpp
297
 
  actionmanager.cpp
298
 
  adjustcmsdialog.cpp
299
 
  aligndistribute.cpp
300
 
  alignselect.cpp
301
 
  annot.cpp
302
 
  annota.cpp
303
 
  annotation.cpp
304
 
  applytemplatedialog.cpp
305
 
  arrowchooser.cpp
306
 
  autoform.cpp
307
 
  autoformbuttongroup.cpp
308
 
  basepointwidget.cpp
309
 
  bookmarkpalette.cpp
310
 
  bookmwin.cpp
311
 
  buttonicon.cpp
312
 
  canvas.cpp
313
 
  canvasgesture_linemove.cpp
314
 
  canvasgesture_pan.cpp
315
 
  canvasgesture_rectselect.cpp
316
 
  canvasgesture_resize.cpp
317
 
  canvasgesture_rulermove.cpp
318
 
  canvasmode.cpp
319
 
  canvasmode_copyproperties.cpp
320
 
  canvasmode_create.cpp
321
 
  canvasmode_drawbezier.cpp
322
 
  canvasmode_drawfreehand.cpp
323
 
  canvasmode_eyedropper.cpp
324
 
  canvasmode_framelinks.cpp
325
 
  canvasmode_edit.cpp
326
 
  canvasmode_editgradient.cpp
327
 
  canvasmode_legacy.cpp
328
 
  canvasmode_magnifier.cpp
329
 
  canvasmode_measurements.cpp
330
 
  canvasmode_nodeedit.cpp
331
 
  canvasmode_normal.cpp
332
 
  canvasmode_objimport.cpp
333
 
  canvasmode_panning.cpp
334
 
  canvasmode_rotate.cpp
335
 
  charselect.cpp
336
 
  charselectenhanced.cpp
337
 
  chartablemodel.cpp
338
 
  chartableview.cpp
339
 
  charzoom.cpp
340
 
  checkDocument.cpp
341
 
  cmserrorhandling.cpp
342
 
  cmsettings.cpp
343
 
  cmsprefs.cpp
344
 
  cmykfw.cpp
345
 
  collect4output.cpp
346
 
  colorblind.cpp
347
 
  colorchart.cpp
348
 
  colorcombo.cpp
349
 
  colorlistbox.cpp
350
 
  colorm.cpp
351
 
  colorsetmanager.cpp
352
 
  commonstrings.cpp
353
 
  contextmenu.cpp
354
 
  cpalette.cpp
355
 
  cupsoptions.cpp
356
 
  curvewidget.cpp
357
 
  customfdialog.cpp
358
 
  dasheditor.cpp
359
 
  dcolor.cpp
360
 
  deferredtask.cpp
361
 
  delpages.cpp
362
 
  docinfo.cpp
363
 
  docitemattrprefs.cpp
364
 
  docsections.cpp
365
 
  documentchecker.cpp
366
 
  documentinformation.cpp
367
 
  editor.cpp
368
 
  effectsdialog.cpp
369
 
  exif.cpp
370
 
  extimageprops.cpp
371
 
  fileloader.cpp
372
 
  filesearch.cpp
373
 
  fileunzip.cpp
374
 
  filewatcher.cpp
375
 
  fontcombo.cpp
376
 
  fontlistmodel.cpp
377
 
  fontlistview.cpp
378
 
  fontprefs.cpp
379
 
  fontreplacedialog.cpp
380
 
  fparser.cpp
381
 
  fpoint.cpp
382
 
  fpointarray.cpp
383
 
  fpoptimizer.cpp
384
 
  gradienteditor.cpp
385
 
  gtaction.cpp
386
 
  gtdialogs.cpp
387
 
  gtfiledialog.cpp
388
 
  gtfont.cpp
389
 
  gtframestyle.cpp
390
 
  gtgettext.cpp
391
 
  gtmeasure.cpp
392
 
  gtparagraphstyle.cpp
393
 
  gtstyle.cpp
394
 
  gtwriter.cpp
395
 
  guidemanager.cpp
396
 
  guidemanagercore.cpp
397
 
  guidesdelegate.cpp
398
 
  guidesmodel.cpp
399
 
  helpbrowser.cpp
400
 
  hruler.cpp
401
 
  hyask.cpp
402
 
  hyphenator.cpp
403
 
  hysettings.cpp
404
 
  imageinfodialog.cpp
405
 
  insertTable.cpp
406
 
  insertaframe.cpp
407
 
  inspage.cpp
408
 
  ioapi.c
409
 
  javadocs.cpp
410
 
  KarbonCurveFit.cpp
411
 
  langmgr.cpp
412
 
  latexeditor.cpp
413
 
  latexhelpers.cpp
414
 
  layers.cpp
415
 
  linecombo.cpp
416
 
  linkbutton.cpp
417
 
  loadsaveplugin.cpp
418
 
  loremipsum.cpp
419
 
  marginwidget.cpp
420
 
  margindialog.cpp
421
 
  masterpagepalette.cpp
422
 
  measurements.cpp
423
 
  menumanager.cpp
424
 
  mergedoc.cpp
425
 
  missing.cpp
426
 
  movepage.cpp
427
 
  multipleduplicate.cpp
428
 
  multiprogressdialog.cpp
429
 
  navigator.cpp
430
 
  newfile.cpp
431
 
  newtemp.cpp
432
 
  nftdialog.cpp
433
 
  nftwidget.cpp
434
 
  nftrcreader.cpp
435
 
  nftsettings.cpp
436
 
  nfttemplate.cpp
437
 
  nodeeditpalette.cpp
438
 
  observable.cpp
439
 
  oneclick.cpp
440
 
  outlinepalette.cpp
441
 
  page.cpp
442
 
  pageitem.cpp
443
 
  pageitem_desaxe.cpp
444
 
  pageitem_imageframe.cpp
445
 
  pageitem_latexframe.cpp
446
 
  pageitem_line.cpp
447
 
  pageitem_pathtext.cpp
448
 
  pageitem_polygon.cpp
449
 
  pageitem_polyline.cpp
450
 
  pageitem_textframe.cpp
451
 
  pageitemattributes.cpp
452
 
  pageitempointer.cpp
453
 
  pagelayout.cpp
454
 
  pagepalette.cpp
455
 
  pageselector.cpp
456
 
  pagesize.cpp
457
 
  patterndialog.cpp
458
 
  pdflib.cpp
459
 
  pdflib_core.cpp
460
 
  pdfoptions.cpp
461
 
  pdfoptionsio.cpp
462
 
  pdfopts.cpp
463
 
  picsearch.cpp
464
 
  picsearchoptions.cpp
465
 
  picstatus.cpp
466
 
  pluginmanager.cpp
467
 
  pluginmanagerprefsgui.cpp
468
 
  polygonwidget.cpp
469
 
  polyprops.cpp
470
 
  prefs.cpp
471
 
  prefscontext.cpp
472
 
  prefsdialogbase.cpp
473
 
  prefsfile.cpp
474
 
  prefsmanager.cpp
475
 
  prefspanel.cpp
476
 
  prefsreader.cpp
477
 
  prefstable.cpp
478
 
  preview.cpp
479
 
  printdialog.cpp
480
 
  propertiespalette.cpp
481
 
  pslib.cpp
482
 
  query.cpp
483
 
  rawimage.cpp
484
 
  rc4.c
485
 
  reformdoc.cpp
486
 
  replacecolors.cpp
487
 
  replaceonecolor.cpp
488
 
  rulermover.cpp
489
 
  sampleitem.cpp
490
 
  scclocale.cpp
491
 
  sccolor.cpp
492
 
  sccolorengine.cpp
493
 
  sccolorshade.cpp
494
 
  sccombobox.cpp
495
 
  scdocoutput.cpp
496
 
  scdocoutput_ps2.cpp
497
 
  scfilewidget.cpp
498
 
  scfonts.cpp
499
 
  scgtplugin.cpp
500
 
  scgzfile.cpp
501
 
  schelptreemodel.cpp
502
 
  scimage.cpp
503
 
  scimagestructs.cpp
504
 
  scimgdataloader.cpp
505
 
  scimgdataloader_gimp.cpp
506
 
  scimgdataloader_jpeg.cpp
507
 
  scimgdataloader_pdf.cpp
508
 
  scimgdataloader_ps.cpp
509
 
  scimgdataloader_psd.cpp
510
 
  scimgdataloader_qt.cpp
511
 
  scimgdataloader_tiff.cpp
512
 
  scinputdialog.cpp
513
 
  sclayer.cpp
514
 
  scmenu.cpp
515
 
  scmessagebox.cpp
516
 
  scmimedata.cpp
517
 
  scpageoutput.cpp
518
 
  scpageoutput_ps2.cpp
519
 
  scpainter.cpp
520
 
  scpainterex_ps2.cpp
521
 
  scpainterexbase.cpp
522
 
  scpaths.cpp
523
 
  scpattern.cpp
524
 
  scplugin.cpp
525
 
  scpreview.cpp
526
 
  scprintengine_ps.cpp
527
 
  scraction.cpp
528
 
  scrapbookpalette.cpp
529
 
  scresizecursor.cpp
530
 
  scribus.cpp
531
 
  scribusXml.cpp
532
 
  scribusapp.cpp
533
 
  scribuscore.cpp
534
 
  scribusdoc.cpp
535
 
  scribusview.cpp
536
 
  scribuswin.cpp
537
 
  scrpalettebase.cpp
538
 
  scrspinbox.cpp
539
 
  scslainforeader.cpp
540
 
  scstreamfilter.cpp
541
 
  scstreamfilter_ascii85.cpp
542
 
  scstreamfilter_flate.cpp
543
 
  scstreamfilter_rc4.cpp
544
 
  sctablewidget.cpp
545
 
  sctextbrowser.cpp
546
 
  sctextstream.cpp
547
 
  sctextstruct.cpp
548
 
  sctoolbar.cpp
549
 
  sctreewidget.cpp
550
 
  search.cpp
551
 
  selection.cpp
552
 
  selectobjects.cpp
553
 
  selfield.cpp
554
 
  serializer.cpp
555
 
  shadebutton.cpp
556
 
  shortcutwidget.cpp
557
 
  smalignselect.cpp
558
 
  smcheckbox.cpp
559
 
  smcolorcombo.cpp
560
 
  smcstylewidget.cpp
561
 
  smfontcomboh.cpp
562
 
  smlinestyle.cpp
563
 
  smlinestylewidget.cpp
564
 
  smpstylewidget.cpp
565
 
  smradiobutton.cpp
566
 
  smreplacedia.cpp
567
 
  smsccombobox.cpp
568
 
  smscrspinbox.cpp
569
 
  smshadebutton.cpp
570
 
  smspinbox.cpp
571
 
  smstyleimport.cpp
572
 
  smstyleselect.cpp
573
 
  smtabruler.cpp
574
 
  smtextstyles.cpp
575
 
  spalette.cpp
576
 
  splash.cpp
577
 
  stencilreader.cpp
578
 
  storyeditor.cpp
579
 
  styleitem.cpp
580
 
  stylemanager.cpp
581
 
  styleselect.cpp
582
 
  styleview.cpp
583
 
  tabcheckdoc.cpp
584
 
  tabdisplay.cpp
585
 
  tabdocument.cpp
586
 
  tabexternaltoolswidget.cpp
587
 
  tabgeneral.cpp
588
 
  tabguides.cpp
589
 
  tabkeyboardshortcutswidget.cpp
590
 
  tabmanager.cpp
591
 
  tabmiscellaneous.cpp
592
 
  tabpdfoptions.cpp
593
 
  tabprinter.cpp
594
 
  tabruler.cpp
595
 
  tabscrapbook.cpp
596
 
  tabtools.cpp
597
 
  tabtypography.cpp
598
 
  tocgenerator.cpp
599
 
  tocindexprefs.cpp
600
 
  transaction.cpp
601
 
  tt/simpletreemodel/treeitem.cpp
602
 
  tt/simpletreemodel/treemodel.cpp
603
 
  ui/copypagetomasterpagedialog.cpp
604
 
  ui/createrange.cpp
605
 
  ui/edittoolbar.cpp
606
 
  ui/filetoolbar.cpp
607
 
  ui/modetoolbar.cpp
608
 
  ui/pdftoolbar.cpp
609
 
  undogui.cpp
610
 
  undomanager.cpp
611
 
  undoobject.cpp
612
 
  undostack.cpp
613
 
  undostate.cpp
614
 
  unicodesearch.cpp
615
 
  units.cpp
616
 
  unzip.c
617
 
  updatemanager.cpp
618
 
  upgradechecker.cpp
619
 
  urllauncher.cpp
620
 
  useprintermarginsdialog.cpp
621
 
  util.cpp
622
 
  util_cms.cpp
623
 
  util_color.cpp
624
 
  util_file.cpp
625
 
  util_formats.cpp
626
 
  util_ghostscript.cpp
627
 
  util_icon.cpp
628
 
  util_math.cpp
629
 
  util_printer.cpp
630
 
  util_text.cpp
631
 
  vgradient.cpp
632
 
  vgradientex.cpp
633
 
  vruler.cpp
634
 
)
635
 
 
636
 
IF(NOT HAVE_HYPHEN)
637
 
  SET(SCRIBUS_SOURCES
638
 
    ${SCRIBUS_SOURCES}
639
 
    hnjalloc.c
640
 
    hyphen.c
641
 
  )
642
 
ENDIF(NOT HAVE_HYPHEN)
643
 
 
644
 
IF(WIN32)
645
 
  SET(SCRIBUS_MOC_WIN32_ONLY_CLASSES scprintengine_gdi.h)
646
 
  SET(SCRIBUS_WIN32_ONLY_SOURCES
647
 
      scpainterex_cairo.cpp
648
 
      scprintengine_gdi.cpp
649
 
      )
650
 
  SET(SCRIBUS_MAIN_CPP main_win32.cpp)
651
 
ELSE(WIN32)
652
 
  SET(SCRIBUS_MOC_WIN32_ONLY_CLASSES)
653
 
  SET(SCRIBUS_WIN32_ONLY_SOURCES)
654
 
  SET(SCRIBUS_MAIN_CPP main.cpp)
655
 
ENDIF(WIN32)
656
 
 
657
 
QT4_WRAP_UI(SCRIBUS_UI_SOURCES ${SCRIBUS_UI_SRC} )
658
 
 
659
 
QT4_WRAP_CPP(SCRIBUS_MOC_SOURCES
660
 
        ${SCRIBUS_MOC_CLASSES}
661
 
        ${SCRIBUS_MOC_WIN32_ONLY_CLASSES}
662
 
        )
663
 
 
664
 
LINK_DIRECTORIES(
665
 
  ${CMAKE_CURRENT_BINARY_DIR}/colormgmt
666
 
  ${CMAKE_CURRENT_BINARY_DIR}/desaxe
667
 
  ${CMAKE_CURRENT_BINARY_DIR}/text
668
 
  ${CMAKE_CURRENT_BINARY_DIR}/styles
669
 
  ${CMAKE_CURRENT_BINARY_DIR}/fonts
670
 
)
671
 
 
672
 
SET(SCRIBUS_COLORMGMT_LIB "scribus_colormgmt_lib")
673
 
SET(SCRIBUS_TEXT_LIB "scribus_text_lib")
674
 
SET(SCRIBUS_STYLES_LIB "scribus_styles_lib")
675
 
SET(SCRIBUS_FONTS_LIB "scribus_fonts_lib")
676
 
SET(SCRIBUS_DESAXE_LIB "scribus_desaxe_lib")
677
 
 
678
 
INCLUDE_DIRECTORIES(
679
 
  ${CMAKE_SOURCE_DIR}
680
 
  ${CMAKE_CURRENT_SOURCE_DIR}
681
 
  ${FREETYPE_INCLUDE_DIRS}
682
 
)
683
 
 
684
 
IF(HAVE_PODOFO)
685
 
  INCLUDE_DIRECTORIES(
686
 
    ${LIBPODOFO_INCLUDE_DIR}
687
 
    )
688
 
ENDIF(HAVE_PODOFO)
689
 
 
690
 
IF(GESTURE_FRAME_PREVIEW)
691
 
   MESSAGE(STATUS "Enable gesture frame preview [experimental]")
692
 
   SET(GESTURE_FRAME_PREVIEW_SOURCES  pageitempreview.cpp)
693
 
   ADD_DEFINITIONS(-DGESTURE_FRAME_PREVIEW)
694
 
ENDIF(GESTURE_FRAME_PREVIEW)
695
 
 
696
 
IF(APPLEBUNDLE)
697
 
  SET(EXE_NAME "Scribus${TAG_VERSION}" CACHE TYPE STRING)
698
 
ELSE(APPLEBUNDLE)
699
 
  SET(EXE_NAME "scribus${TAG_VERSION}" CACHE TYPE STRING)
700
 
ENDIF(APPLEBUNDLE)
701
 
 
702
 
IF(COMMAND cmake_policy)
703
 
  cmake_policy(SET CMP0003 OLD)
704
 
ENDIF(COMMAND cmake_policy)
705
 
 
706
 
ADD_EXECUTABLE(${EXE_NAME}
707
 
  ${SCRIBUS_MOC_SOURCES}
708
 
  ${SCRIBUS_SOURCES}
709
 
  ${SCRIBUS_MAIN_CPP}
710
 
  ${SCRIBUS_UI_SOURCES}
711
 
  ${SCRIBUS_TEXT_SOURCES}
712
 
  ${SCRIBUS_STYLES_SOURCES}
713
 
  ${SCRIBUS_COLORMGMT_SOURCES}
714
 
  ${SCRIBUS_FONTS_SOURCES}
715
 
  ${SCRIBUS_DESAXE_SOURCES}
716
 
  ${SCRIBUS_WIN32_ONLY_SOURCES}
717
 
  ${GESTURE_FRAME_PREVIEW_SOURCES}
718
 
)
719
 
 
720
 
IF(WIN32)
721
 
  SET_TARGET_PROPERTIES(${EXE_NAME}
722
 
        PROPERTIES
723
 
        COMPILE_FLAGS -DCOMPILE_SCRIBUS_MAIN_APP
724
 
        ENABLE_EXPORTS TRUE
725
 
        )
726
 
  SET(WIN32_ONLY_LIBS mscms.lib)
727
 
ELSE(WIN32)
728
 
  SET(WIN32_ONLY_LIBS)
729
 
ENDIF(WIN32)
730
 
 
731
 
##TEST FIX FOR 6897
732
 
IF (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" OR CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
733
 
# Use the -E / --export-dynamic flag to ensure that symbols in the Scribus
734
 
# binary are in the public symbol table for plugins. The symbols must also
735
 
# be set as SCRIBUS_API if we're building with -fvisibility=hidden .
736
 
# Should fix bug 6897 .
737
 
  SET_TARGET_PROPERTIES(${EXE_NAME} PROPERTIES LINK_FLAGS -Wl,-E)
738
 
ENDIF (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" OR CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
739
 
IF (GCC AND NOT WIN32)
740
 
# Use the -E / --export-dynamic flag to ensure that symbols in the Scribus
741
 
# binary are in the public symbol table for plugins. The symbols must also
742
 
# be set as SCRIBUS_API if we're building with -fvisibility=hidden .
743
 
# Should fix bug 6897 .
744
 
  SET_TARGET_PROPERTIES(${EXE_NAME} PROPERTIES LINK_FLAGS -Wl,-E)
745
 
ENDIF (GCC AND NOT WIN32)
746
 
##
747
 
 
748
 
#Set up libraries to link with all found packages
749
 
 
750
 
#Select Libart_LGPL or Cairo
751
 
IF(RENDER_LIB STREQUAL "CAIRO")
752
 
  INCLUDE_DIRECTORIES(${CAIRO_INCLUDE_DIR})
753
 
  TARGET_LINK_LIBRARIES(${EXE_NAME} ${CAIRO_LIBRARIES})
754
 
  LINK_DIRECTORIES(${PREFIX_CAIRO_LIB})
755
 
  SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_RPATH};${PREFIX_CAIRO_LIB}")
756
 
ENDIF(RENDER_LIB STREQUAL "CAIRO")
757
 
 
758
 
MESSAGE("RPATH: ${CMAKE_INSTALL_RPATH}")
759
 
 
760
 
TARGET_LINK_LIBRARIES(${EXE_NAME}
761
 
  ${QT_LIBRARIES}
762
 
  ${CUPS_LIBRARIES}
763
 
  ${FREETYPE_LIBRARIES}
764
 
  ${FONTCONFIG_LIBRARIES}
765
 
  ${LIBXML2_LIBRARIES}
766
 
  ${PYTHON_LIBRARIES}
767
 
  ${TIFF_LIBRARIES}
768
 
  ${JPEG_LIBRARIES}
769
 
  ${ZLIB_LIBRARIES}
770
 
  ${WIN32_ONLY_LIBS}
771
 
)
772
 
 
773
 
# required to resolve symbols from libdl when ld is called with --no-add-needed
774
 
# #9310 for the OpenBSD addition
775
 
IF(UNIX AND NOT CMAKE_SYSTEM_NAME STREQUAL "OpenBSD" AND NOT CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
776
 
  TARGET_LINK_LIBRARIES(${EXE_NAME} dl)
777
 
ENDIF(UNIX AND NOT CMAKE_SYSTEM_NAME STREQUAL "OpenBSD" AND NOT CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
778
 
 
779
 
# #9311 for the OpenBSD addition
780
 
IF(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD" OR CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
781
 
  TARGET_LINK_LIBRARIES(${EXE_NAME} util execinfo)
782
 
ENDIF(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD" OR CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
783
 
 
784
 
IF(WIN32)
785
 
  TARGET_LINK_LIBRARIES(${EXE_NAME} ${QT_QTMAIN_LIBRARY})
786
 
ENDIF(WIN32)
787
 
 
788
 
IF(APPLE)
789
 
  TARGET_LINK_LIBRARIES(${EXE_NAME}
790
 
    "-undefined dynamic_lookup"
791
 
    "-framework CoreFoundation" )
792
 
ENDIF(APPLE)
793
 
 
794
 
TARGET_LINK_LIBRARIES(${EXE_NAME}
795
 
  ${SCRIBUS_COLORMGMT_LIB}
796
 
  ${SCRIBUS_DESAXE_LIB}
797
 
  ${SCRIBUS_TEXT_LIB}
798
 
  ${SCRIBUS_STYLES_LIB}
799
 
  ${SCRIBUS_FONTS_LIB}
800
 
  ${LCMS_LIBRARIES}
801
 
)
802
 
 
803
 
IF(HAVE_PODOFO)
804
 
  TARGET_LINK_LIBRARIES(${EXE_NAME}
805
 
    ${LIBPODOFO_LIBRARY}
806
 
  )
807
 
ENDIF(HAVE_PODOFO)
808
 
 
809
 
IF(HAVE_HYPHEN)
810
 
  TARGET_LINK_LIBRARIES(${EXE_NAME}
811
 
    ${HYPHEN_LIBRARY}
812
 
  )
813
 
ENDIF(HAVE_HYPHEN)
814
 
 
815
 
# Now build plugins
816
 
SET(PLUGIN_LIBRARIES
817
 
  ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTXML_LIBRARY}
818
 
  ${LIBXML2_LIBRARIES}
819
 
  ${ZLIB_LIBRARIES}
820
 
)
821
 
IF(WIN32)
822
 
  # IF your plugin needs more than this, please link them privately
823
 
  # in the CMakeLists.txt for your plugin.
824
 
  SET(PLUGIN_LIBRARIES
825
 
#    ${QT_LIBRARIES} part of #7210
826
 
    ${PLUGIN_LIBRARIES}
827
 
    ${EXE_NAME}
828
 
    )
829
 
ENDIF(WIN32)
830
 
IF(APPLE)
831
 
  SET(PLUGIN_LIBRARIES
832
 
    ${PLUGIN_LIBRARIES}
833
 
    "-undefined dynamic_lookup"
834
 
  )
835
 
ENDIF(APPLE)
836
 
 
837
 
ADD_SUBDIRECTORY(plugins)
838
 
 
839
 
#do we want a lib suffix on osx? doubt it
840
 
IF(APPLEBUNDLE)
841
 
  INSTALL(DIRECTORY DESTINATION MacOS)
842
 
  INSTALL(TARGETS ${EXE_NAME}
843
 
    RUNTIME DESTINATION MacOS
844
 
    LIBRARY DESTINATION lib
845
 
    )
846
 
#  ADD_CUSTOM_COMMAND(TARGET ${EXE_NAME} POST_BUILD
847
 
#       COMMAND ${CMAKE_COMMAND} ARGS -Dinput_file=${CMAKE_CURRENT_BINARY_DIR}/${EXE_NAME}.app/Contents/MacOS/${EXE_NAME} -P ${CMAKE_MODULE_PATH}/ScribusIngestOSXBundleLibraries.cmake
848
 
#  )
849
 
 
850
 
#  INSTALL(
851
 
#       CODE "SET(input_file ${CMAKE_INSTALL_PREFIX}/MacOS/${EXE_NAME})"  
852
 
#       SCRIPT ${CMAKE_MODULE_PATH}/ScribusIngestOSXBundleLibraries.cmake )
853
 
ELSE(APPLEBUNDLE)
854
 
  IF(WIN32)
855
 
    INSTALL(TARGETS ${EXE_NAME}
856
 
      RUNTIME DESTINATION .
857
 
      LIBRARY DESTINATION ${LIB_DIR_NAME}
858
 
      )
859
 
  ELSE(WIN32)
860
 
    INSTALL(TARGETS ${EXE_NAME}
861
 
      RUNTIME DESTINATION bin
862
 
      LIBRARY DESTINATION ${LIB_DIR_NAME}
863
 
      )
864
 
  ENDIF(WIN32)
865
 
ENDIF(APPLEBUNDLE)
866
 
 
867
 
#Install our header files, selected from all existing dirs, excluding unwanted directories and svn files
868
 
IF(NOT WANT_NOHEADERINSTALL)
869
 
  MESSAGE(STATUS "Source header files will be installed")
870
 
  INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ DESTINATION ${INCLUDEDIR} 
871
 
    FILES_MATCHING 
872
 
    PATTERN "*.h"
873
 
    PATTERN "dicts" EXCLUDE
874
 
    PATTERN "doc" EXCLUDE
875
 
    PATTERN "dtd" EXCLUDE
876
 
    PATTERN "editorconfig" EXCLUDE
877
 
    PATTERN "icon*" EXCLUDE
878
 
    PATTERN "manpages" EXCLUDE
879
 
    PATTERN "old" EXCLUDE
880
 
    PATTERN ".svn" EXCLUDE 
881
 
  )
882
 
ELSE(NOT WANT_NOHEADERINSTALL)
883
 
  MESSAGE(STATUS "No source header files will be installed")
884
 
ENDIF(NOT WANT_NOHEADERINSTALL)