[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
v3.5.13-sru
samelian 14 years ago
parent 6a17a99e1c
commit 7e5679fbd1

@ -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 )

@ -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 )

@ -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

@ -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( )

@ -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 )

@ -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 )

@ -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 )

@ -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 )

@ -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 )

@ -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 )

@ -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 )

@ -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 )

@ -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 )

@ -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 )

@ -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 )

@ -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 )

@ -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 )

@ -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 )

@ -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}
)

@ -66,6 +66,7 @@
#include "textBox.h"
#include "xdvi.h"
#include <stdlib.h>
#include <kdebug.h>
#include <klocale.h>
#include <kmessagebox.h>

@ -26,6 +26,7 @@
#include <config.h>
#include <stdlib.h>
#include <kapplication.h>
#include <kmessagebox.h>
#include <kdebug.h>

@ -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 )

@ -51,6 +51,8 @@
#include <config.h>
#include <stdlib.h>
#include <kdebug.h>
#include <kmessagebox.h>
#include <klocale.h>

@ -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" )

@ -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