~ubuntu-branches/ubuntu/wily/scribus/wily-proposed

« 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_color.cpp
 
623
  util_file.cpp
 
624
  util_formats.cpp
 
625
  util_ghostscript.cpp
 
626
  util_icon.cpp
 
627
  util_math.cpp
 
628
  util_printer.cpp
 
629
  util_text.cpp
 
630
  vgradient.cpp
 
631
  vgradientex.cpp
 
632
  vruler.cpp
 
633
)
 
634
 
 
635
IF(NOT HAVE_HYPHEN)
 
636
  SET(SCRIBUS_SOURCES
 
637
    ${SCRIBUS_SOURCES}
 
638
    hnjalloc.c
 
639
    hyphen.c
 
640
  )
 
641
ENDIF(NOT HAVE_HYPHEN)
 
642
 
 
643
IF(WIN32)
 
644
  SET(SCRIBUS_MOC_WIN32_ONLY_CLASSES scprintengine_gdi.h)
 
645
  SET(SCRIBUS_WIN32_ONLY_SOURCES
 
646
      scpainterex_cairo.cpp
 
647
      scprintengine_gdi.cpp
 
648
      )
 
649
  SET(SCRIBUS_MAIN_CPP main_win32.cpp)
 
650
ELSE(WIN32)
 
651
  SET(SCRIBUS_MOC_WIN32_ONLY_CLASSES)
 
652
  SET(SCRIBUS_WIN32_ONLY_SOURCES)
 
653
  SET(SCRIBUS_MAIN_CPP main.cpp)
 
654
ENDIF(WIN32)
 
655
 
 
656
QT4_WRAP_UI(SCRIBUS_UI_SOURCES ${SCRIBUS_UI_SRC} )
 
657
 
 
658
QT4_WRAP_CPP(SCRIBUS_MOC_SOURCES
 
659
        ${SCRIBUS_MOC_CLASSES}
 
660
        ${SCRIBUS_MOC_WIN32_ONLY_CLASSES}
 
661
        )
 
662
 
 
663
LINK_DIRECTORIES(
 
664
  ${CMAKE_CURRENT_BINARY_DIR}/colormgmt
 
665
  ${CMAKE_CURRENT_BINARY_DIR}/desaxe
 
666
  ${CMAKE_CURRENT_BINARY_DIR}/text
 
667
  ${CMAKE_CURRENT_BINARY_DIR}/styles
 
668
  ${CMAKE_CURRENT_BINARY_DIR}/fonts
 
669
)
 
670
 
 
671
SET(SCRIBUS_COLORMGMT_LIB "scribus_colormgmt_lib")
 
672
SET(SCRIBUS_TEXT_LIB "scribus_text_lib")
 
673
SET(SCRIBUS_STYLES_LIB "scribus_styles_lib")
 
674
SET(SCRIBUS_FONTS_LIB "scribus_fonts_lib")
 
675
SET(SCRIBUS_DESAXE_LIB "scribus_desaxe_lib")
 
676
 
 
677
INCLUDE_DIRECTORIES(
 
678
  ${CMAKE_SOURCE_DIR}
 
679
  ${CMAKE_CURRENT_SOURCE_DIR}
 
680
  ${FREETYPE_INCLUDE_DIRS}
 
681
)
 
682
 
 
683
IF(HAVE_PODOFO)
 
684
  INCLUDE_DIRECTORIES(
 
685
    ${LIBPODOFO_INCLUDE_DIR}
 
686
    )
 
687
ENDIF(HAVE_PODOFO)
 
688
 
 
689
IF(GESTURE_FRAME_PREVIEW)
 
690
   MESSAGE(STATUS "Enable gesture frame preview [experimental]")
 
691
   SET(GESTURE_FRAME_PREVIEW_SOURCES  pageitempreview.cpp)
 
692
   ADD_DEFINITIONS(-DGESTURE_FRAME_PREVIEW)
 
693
ENDIF(GESTURE_FRAME_PREVIEW)
 
694
 
 
695
IF(APPLEBUNDLE)
 
696
  SET(EXE_NAME "Scribus${TAG_VERSION}" CACHE TYPE STRING)
 
697
ELSE(APPLEBUNDLE)
 
698
  SET(EXE_NAME "scribus${TAG_VERSION}" CACHE TYPE STRING)
 
699
ENDIF(APPLEBUNDLE)
 
700
 
 
701
IF(COMMAND cmake_policy)
 
702
  cmake_policy(SET CMP0003 OLD)
 
703
ENDIF(COMMAND cmake_policy)
 
704
 
 
705
ADD_EXECUTABLE(${EXE_NAME}
 
706
  ${SCRIBUS_MOC_SOURCES}
 
707
  ${SCRIBUS_SOURCES}
 
708
  ${SCRIBUS_MAIN_CPP}
 
709
  ${SCRIBUS_UI_SOURCES}
 
710
  ${SCRIBUS_TEXT_SOURCES}
 
711
  ${SCRIBUS_STYLES_SOURCES}
 
712
  ${SCRIBUS_COLORMGMT_SOURCES}
 
713
  ${SCRIBUS_FONTS_SOURCES}
 
714
  ${SCRIBUS_DESAXE_SOURCES}
 
715
  ${SCRIBUS_WIN32_ONLY_SOURCES}
 
716
  ${GESTURE_FRAME_PREVIEW_SOURCES}
 
717
)
 
718
 
 
719
IF(WIN32)
 
720
  SET_TARGET_PROPERTIES(${EXE_NAME}
 
721
        PROPERTIES
 
722
        COMPILE_FLAGS -DCOMPILE_SCRIBUS_MAIN_APP
 
723
        ENABLE_EXPORTS TRUE
 
724
        )
 
725
  SET(WIN32_ONLY_LIBS mscms.lib)
 
726
ELSE(WIN32)
 
727
  SET(WIN32_ONLY_LIBS)
 
728
ENDIF(WIN32)
 
729
 
 
730
##TEST FIX FOR 6897
 
731
IF (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" OR CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
 
732
# Use the -E / --export-dynamic flag to ensure that symbols in the Scribus
 
733
# binary are in the public symbol table for plugins. The symbols must also
 
734
# be set as SCRIBUS_API if we're building with -fvisibility=hidden .
 
735
# Should fix bug 6897 .
 
736
  SET_TARGET_PROPERTIES(${EXE_NAME} PROPERTIES LINK_FLAGS -Wl,-E)
 
737
ENDIF (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" OR CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
 
738
IF (GCC AND NOT WIN32)
 
739
# Use the -E / --export-dynamic flag to ensure that symbols in the Scribus
 
740
# binary are in the public symbol table for plugins. The symbols must also
 
741
# be set as SCRIBUS_API if we're building with -fvisibility=hidden .
 
742
# Should fix bug 6897 .
 
743
  SET_TARGET_PROPERTIES(${EXE_NAME} PROPERTIES LINK_FLAGS -Wl,-E)
 
744
ENDIF (GCC AND NOT WIN32)
 
745
##
 
746
 
 
747
#Set up libraries to link with all found packages
 
748
 
 
749
#Select Libart_LGPL or Cairo
 
750
IF(RENDER_LIB STREQUAL "CAIRO")
 
751
  INCLUDE_DIRECTORIES(${CAIRO_INCLUDE_DIR})
 
752
  TARGET_LINK_LIBRARIES(${EXE_NAME} ${CAIRO_LIBRARIES})
 
753
  LINK_DIRECTORIES(${PREFIX_CAIRO_LIB})
 
754
  SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_RPATH};${PREFIX_CAIRO_LIB}")
 
755
ENDIF(RENDER_LIB STREQUAL "CAIRO")
 
756
 
 
757
MESSAGE("RPATH: ${CMAKE_INSTALL_RPATH}")
 
758
 
 
759
TARGET_LINK_LIBRARIES(${EXE_NAME}
 
760
  ${QT_LIBRARIES}
 
761
  ${CUPS_LIBRARIES}
 
762
  ${FREETYPE_LIBRARIES}
 
763
  ${FONTCONFIG_LIBRARIES}
 
764
  ${LIBXML2_LIBRARIES}
 
765
  ${PYTHON_LIBRARIES}
 
766
  ${TIFF_LIBRARIES}
 
767
  ${JPEG_LIBRARIES}
 
768
  ${ZLIB_LIBRARIES}
 
769
  ${WIN32_ONLY_LIBS}
 
770
)
 
771
 
 
772
# required to resolve symbols from libdl when ld is called with --no-add-needed
 
773
# #9310 for the OpenBSD addition
 
774
IF(UNIX AND NOT CMAKE_SYSTEM_NAME STREQUAL "OpenBSD" AND NOT CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
 
775
  TARGET_LINK_LIBRARIES(${EXE_NAME} dl)
 
776
ENDIF(UNIX AND NOT CMAKE_SYSTEM_NAME STREQUAL "OpenBSD" AND NOT CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
 
777
 
 
778
# #9311 for the OpenBSD addition
 
779
IF(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD" OR CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
 
780
  TARGET_LINK_LIBRARIES(${EXE_NAME} util execinfo)
 
781
ENDIF(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD" OR CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
 
782
 
 
783
IF(WIN32)
 
784
  TARGET_LINK_LIBRARIES(${EXE_NAME} ${QT_QTMAIN_LIBRARY})
 
785
ENDIF(WIN32)
 
786
 
 
787
IF(APPLE)
 
788
  TARGET_LINK_LIBRARIES(${EXE_NAME}
 
789
    "-undefined dynamic_lookup"
 
790
    "-framework CoreFoundation" )
 
791
ENDIF(APPLE)
 
792
 
 
793
TARGET_LINK_LIBRARIES(${EXE_NAME}
 
794
  ${SCRIBUS_COLORMGMT_LIB}
 
795
  ${SCRIBUS_DESAXE_LIB}
 
796
  ${SCRIBUS_TEXT_LIB}
 
797
  ${SCRIBUS_STYLES_LIB}
 
798
  ${SCRIBUS_FONTS_LIB}
 
799
  ${LCMS_LIBRARIES}
 
800
)
 
801
 
 
802
IF(HAVE_PODOFO)
 
803
  TARGET_LINK_LIBRARIES(${EXE_NAME}
 
804
    ${LIBPODOFO_LIBRARY}
 
805
  )
 
806
ENDIF(HAVE_PODOFO)
 
807
 
 
808
IF(HAVE_HYPHEN)
 
809
  TARGET_LINK_LIBRARIES(${EXE_NAME}
 
810
    ${HYPHEN_LIBRARY}
 
811
  )
 
812
ENDIF(HAVE_HYPHEN)
 
813
 
 
814
# Now build plugins
 
815
SET(PLUGIN_LIBRARIES
 
816
  ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTXML_LIBRARY}
 
817
  ${LIBXML2_LIBRARIES}
 
818
  ${ZLIB_LIBRARIES}
 
819
)
 
820
IF(WIN32)
 
821
  # IF your plugin needs more than this, please link them privately
 
822
  # in the CMakeLists.txt for your plugin.
 
823
  SET(PLUGIN_LIBRARIES
 
824
#    ${QT_LIBRARIES} part of #7210
 
825
    ${PLUGIN_LIBRARIES}
 
826
    ${EXE_NAME}
 
827
    )
 
828
ENDIF(WIN32)
 
829
IF(APPLE)
 
830
  SET(PLUGIN_LIBRARIES
 
831
    ${PLUGIN_LIBRARIES}
 
832
    "-undefined dynamic_lookup"
 
833
  )
 
834
ENDIF(APPLE)
 
835
 
 
836
ADD_SUBDIRECTORY(plugins)
 
837
 
 
838
#do we want a lib suffix on osx? doubt it
 
839
IF(APPLEBUNDLE)
 
840
  INSTALL(DIRECTORY DESTINATION MacOS)
 
841
  INSTALL(TARGETS ${EXE_NAME}
 
842
    RUNTIME DESTINATION MacOS
 
843
    LIBRARY DESTINATION lib
 
844
    )
 
845
#  ADD_CUSTOM_COMMAND(TARGET ${EXE_NAME} POST_BUILD
 
846
#       COMMAND ${CMAKE_COMMAND} ARGS -Dinput_file=${CMAKE_CURRENT_BINARY_DIR}/${EXE_NAME}.app/Contents/MacOS/${EXE_NAME} -P ${CMAKE_MODULE_PATH}/ScribusIngestOSXBundleLibraries.cmake
 
847
#  )
 
848
 
 
849
#  INSTALL(
 
850
#       CODE "SET(input_file ${CMAKE_INSTALL_PREFIX}/MacOS/${EXE_NAME})"  
 
851
#       SCRIPT ${CMAKE_MODULE_PATH}/ScribusIngestOSXBundleLibraries.cmake )
 
852
ELSE(APPLEBUNDLE)
 
853
  IF(WIN32)
 
854
    INSTALL(TARGETS ${EXE_NAME}
 
855
      RUNTIME DESTINATION .
 
856
      LIBRARY DESTINATION ${LIB_DIR_NAME}
 
857
      )
 
858
  ELSE(WIN32)
 
859
    INSTALL(TARGETS ${EXE_NAME}
 
860
      RUNTIME DESTINATION bin
 
861
      LIBRARY DESTINATION ${LIB_DIR_NAME}
 
862
      )
 
863
  ENDIF(WIN32)
 
864
ENDIF(APPLEBUNDLE)
 
865
 
 
866
#Install our header files, selected from all existing dirs, excluding unwanted directories and svn files
 
867
IF(NOT WANT_NOHEADERINSTALL)
 
868
  MESSAGE(STATUS "Source header files will be installed")
 
869
  INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ DESTINATION ${INCLUDEDIR} 
 
870
    FILES_MATCHING 
 
871
    PATTERN "*.h"
 
872
    PATTERN "dicts" EXCLUDE
 
873
    PATTERN "doc" EXCLUDE
 
874
    PATTERN "dtd" EXCLUDE
 
875
    PATTERN "editorconfig" EXCLUDE
 
876
    PATTERN "icon*" EXCLUDE
 
877
    PATTERN "manpages" EXCLUDE
 
878
    PATTERN "old" EXCLUDE
 
879
    PATTERN ".svn" EXCLUDE 
 
880
  )
 
881
ELSE(NOT WANT_NOHEADERINSTALL)
 
882
  MESSAGE(STATUS "No source header files will be installed")
 
883
ENDIF(NOT WANT_NOHEADERINSTALL)