Browse Source

[kdegraphics] added cmake support for doc and kdvi

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1230812 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
tags/v3.5.13
samelian 9 years ago
parent
commit
7e5679fbd1
25 changed files with 296 additions and 14 deletions
  1. +5
    -0
      CMakeLists.txt
  2. +11
    -0
      ConfigureChecks.cmake
  3. +3
    -1
      config.h.cmake
  4. +12
    -0
      doc/CMakeLists.txt
  5. +12
    -0
      doc/kamera/CMakeLists.txt
  6. +12
    -0
      doc/kcoloredit/CMakeLists.txt
  7. +12
    -0
      doc/kdvi/CMakeLists.txt
  8. +12
    -0
      doc/kgamma/CMakeLists.txt
  9. +12
    -0
      doc/kghostview/CMakeLists.txt
  10. +12
    -0
      doc/kiconedit/CMakeLists.txt
  11. +12
    -0
      doc/kolourpaint/CMakeLists.txt
  12. +12
    -0
      doc/kooka/CMakeLists.txt
  13. +12
    -0
      doc/kpdf/CMakeLists.txt
  14. +12
    -0
      doc/kpovmodeler/CMakeLists.txt
  15. +12
    -0
      doc/kruler/CMakeLists.txt
  16. +12
    -0
      doc/ksnapshot/CMakeLists.txt
  17. +12
    -0
      doc/kuickshow/CMakeLists.txt
  18. +12
    -0
      doc/kview/CMakeLists.txt
  19. +80
    -0
      kdvi/CMakeLists.txt
  20. +1
    -0
      kdvi/dviRenderer_draw.cpp
  21. +1
    -0
      kdvi/dviRenderer_export.cpp
  22. +12
    -0
      kdvi/pix/CMakeLists.txt
  23. +2
    -0
      kdvi/util.cpp
  24. +0
    -8
      kpdf/xpdf/ConfigureChecks.cmake
  25. +1
    -5
      ksvg/ConfigureChecks.cmake

+ 5
- 0
CMakeLists.txt View File

@@ -48,9 +48,12 @@ option( WITH_LIBPAPER "Enable libpaper support" OFF )

##### user requested modules ####################


option( BUILD_ALL "Build all" OFF )
option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
option( BUILD_KAMERA "Build kamera" ${BUILD_ALL} )
option( BUILD_KCOLOREDIT "Build kcoloredit" ${BUILD_ALL} )
option( BUILD_KDVI "Build kdvi" ${BUILD_ALL} )
option( BUILD_KVIEW "Build kview" ${BUILD_ALL} )
option( BUILD_KRULER "Build kruler" ${BUILD_ALL} )
option( BUILD_KPDF "Build kpdf" ${BUILD_ALL} )
@@ -76,8 +79,10 @@ set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )

##### kdegraphics directories ###################

tde_conditional_add_subdirectory( BUILD_DOC doc )
tde_conditional_add_subdirectory( BUILD_KAMERA kamera )
tde_conditional_add_subdirectory( BUILD_KCOLOREDIT kcoloredit )
tde_conditional_add_subdirectory( BUILD_KDVI kdvi )
tde_conditional_add_subdirectory( BUILD_KVIEW kview )
tde_conditional_add_subdirectory( BUILD_KRULER kruler )
tde_conditional_add_subdirectory( BUILD_KPDF kpdf )


+ 11
- 0
ConfigureChecks.cmake View File

@@ -9,6 +9,17 @@
#
#################################################

# freetype2
if( BUILD_KDVI OR BUILD_KPDF OR BUILD_KSVG )
pkg_search_module( FREETYPE freetype2 )
if( FREETYPE_FOUND )
set( HAVE_FREETYPE 1 )
else( )
tde_message_fatal( "freetype2 is required, but was not found on your system" )
endif( )
endif( )


# required stuff
find_package( TQt )
find_package( TDE )

+ 3
- 1
config.h.cmake View File

@@ -1,7 +1,9 @@
#cmakedefine VERSION "@VERSION@"

// kpdf
// kpdf, kdvi
#cmakedefine HAVE_FREETYPE 1

// kpdf
#cmakedefine HAVE_DIRENT_H 1
#cmakedefine HAVE_SYS_NDIR_H 1
#cmakedefine HAVE_SYS_DIR_H 1


+ 12
- 0
doc/CMakeLists.txt View File

@@ -0,0 +1,12 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################

tde_auto_add_subdirectories( )

+ 12
- 0
doc/kamera/CMakeLists.txt View File

@@ -0,0 +1,12 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################

tde_create_handbook( DESTINATION kamera )

+ 12
- 0
doc/kcoloredit/CMakeLists.txt View File

@@ -0,0 +1,12 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################

tde_create_handbook( DESTINATION kcoloredit )

+ 12
- 0
doc/kdvi/CMakeLists.txt View File

@@ -0,0 +1,12 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################

tde_create_handbook( DESTINATION kdvi )

+ 12
- 0
doc/kgamma/CMakeLists.txt View File

@@ -0,0 +1,12 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################

tde_create_handbook( DESTINATION kgamma )

+ 12
- 0
doc/kghostview/CMakeLists.txt View File

@@ -0,0 +1,12 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################

tde_create_handbook( DESTINATION kghostview )

+ 12
- 0
doc/kiconedit/CMakeLists.txt View File

@@ -0,0 +1,12 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################

tde_create_handbook( DESTINATION kiconedit )

+ 12
- 0
doc/kolourpaint/CMakeLists.txt View File

@@ -0,0 +1,12 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################

tde_create_handbook( DESTINATION kolourpaint )

+ 12
- 0
doc/kooka/CMakeLists.txt View File

@@ -0,0 +1,12 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################

tde_create_handbook( DESTINATION kooka )

+ 12
- 0
doc/kpdf/CMakeLists.txt View File

@@ -0,0 +1,12 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################

tde_create_handbook( DESTINATION kpdf )

+ 12
- 0
doc/kpovmodeler/CMakeLists.txt View File

@@ -0,0 +1,12 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################

tde_create_handbook( DESTINATION kpovmodeler )

+ 12
- 0
doc/kruler/CMakeLists.txt View File

@@ -0,0 +1,12 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################

tde_create_handbook( DESTINATION kruler )

+ 12
- 0
doc/ksnapshot/CMakeLists.txt View File

@@ -0,0 +1,12 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################

tde_create_handbook( DESTINATION ksnapshot )

+ 12
- 0
doc/kuickshow/CMakeLists.txt View File

@@ -0,0 +1,12 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################

tde_create_handbook( DESTINATION kuickshow )

+ 12
- 0
doc/kview/CMakeLists.txt View File

@@ -0,0 +1,12 @@
#################################################
#
# (C) 2010-2011 Serghei Amelian
# serghei (DOT) amelian (AT) gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################

tde_create_handbook( DESTINATION kview )

+ 80
- 0
kdvi/CMakeLists.txt View File

@@ -0,0 +1,80 @@
#################################################
#
# (C) 2010-2011 Calvin Morrison
# mutantturkey@gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################

tde_import( kviewshell )

include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/kviewshell
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
${FREETYPE_INCLUDE_DIRS}
)

link_directories(
${TQT_LIBRARY_DIRS}
)


#### other data #################################

install( FILES
kdvi.desktop
DESTINATION ${XDG_APPS_INSTALL_DIR} )

install( FILES
kdvimultipage.desktop
DESTINATION ${SERVICES_INSTALL_DIR} )

install( FILES
kdvi.kcfg
DESTINATION ${KCFG_INSTALL_DIR} )

install( FILES
tips kdvi_part.rc
${CMAKE_SOURCE_DIR}/kviewshell/kviewshell.rc
DESTINATION ${DATA_INSTALL_DIR}/kdvi )


#### squeeze psheader.txt #######################

tde_add_executable( squeeze
SOURCES squeeze.c
)

add_custom_command(
OUTPUT psheader.c
COMMAND squeeze ${CMAKE_CURRENT_SOURCE_DIR}/psheader.txt psheader.c
DEPENDS psheader.txt squeeze
)


#### kdvipart (module) ##########################

tde_add_kpart( kdvipart AUTOMOC
SOURCES
renderedDviPagePixmap.cpp dviPageCache.cpp
kdvi_multipage.cpp kdvi_multipage_texthandling.cpp dviRenderer.cpp
bigEndianByteReader.cpp infodialog.cpp psheader.c
dviRenderer_draw.cpp dviRenderer_prescan.cpp
dviRenderer_export.cpp dviFile.cpp fontpool.cpp fontprogress.cpp
psgs.cpp fontMap.cpp fontEncoding.cpp fontEncodingPool.cpp
special.cpp util.cpp vf.cpp glyph.cpp optionDialogFontsWidget.cpp
optionDialogFontsWidget_base.ui optionDialogSpecialWidget.cpp
optionDialogSpecialWidget_base.ui TeXFont.cpp TeXFont_PK.cpp
TeXFont_PFB.cpp TeXFont_TFM.cpp TeXFontDefinition.cpp
dviWidget.cpp dvisourcesplitter.cpp prefs.kcfgc
LINK
kmultipage-shared kdeprint-shared kparts-shared ${FREETYPE_LIBRARIES}
DESTINATION ${PLUGIN_INSTALL_DIR}
)

+ 1
- 0
kdvi/dviRenderer_draw.cpp View File

@@ -66,6 +66,7 @@
#include "textBox.h"
#include "xdvi.h"

#include <stdlib.h>
#include <kdebug.h>
#include <klocale.h>
#include <kmessagebox.h>


+ 1
- 0
kdvi/dviRenderer_export.cpp View File

@@ -26,6 +26,7 @@

#include <config.h>

#include <stdlib.h>
#include <kapplication.h>
#include <kmessagebox.h>
#include <kdebug.h>


+ 12
- 0
kdvi/pix/CMakeLists.txt View File

@@ -0,0 +1,12 @@
#################################################
#
# (C) 2010-2011 Calvin Morrison
# mutantturkey@gmail.com
#
# Improvements and feedback are welcome
#
# This file is released under GPL >= 2
#
#################################################

tde_install_icons( kdvi )

+ 2
- 0
kdvi/util.cpp View File

@@ -51,6 +51,8 @@

#include <config.h>

#include <stdlib.h>

#include <kdebug.h>
#include <kmessagebox.h>
#include <klocale.h>


+ 0
- 8
kpdf/xpdf/ConfigureChecks.cmake View File

@@ -9,14 +9,6 @@
#
#################################################

pkg_search_module( FREETYPE freetype2 )
if( FREETYPE_FOUND )
set( HAVE_FREETYPE 1 CACHE INTERNAL "" FORCE )
else( )
tde_message_fatal( "freetype2 is required, but was not found on your system" )
endif( )


pkg_search_module( XFT xft )
if( NOT XFT_FOUND )
tde_message_fatal( "Xft is required, but was not found on your system" )


+ 1
- 5
ksvg/ConfigureChecks.cmake View File

@@ -31,11 +31,7 @@ if( NOT ART_FOUND )
endif( )


# freetype2
pkg_search_module( FREETYPE freetype2 )
if( NOT FREETYPE_FOUND )
tde_message_fatal( "freetype2 is required, but was not found on your system" )
endif( )
# freetype2 2.2.x
if( NOT ${FREETYPE_VERSION} VERSION_LESS "2.2" )
set( HAVE_FREETYPE_2_2_x 1 CACHE INTERNAL "" FORCE )
endif( )


Loading…
Cancel
Save