summaryrefslogtreecommitdiffstats
path: root/kcontrol/kfontinst
diff options
context:
space:
mode:
Diffstat (limited to 'kcontrol/kfontinst')
-rw-r--r--kcontrol/kfontinst/CMakeLists.txt20
-rw-r--r--kcontrol/kfontinst/kcmfontinst/CMakeLists.txt40
-rw-r--r--kcontrol/kfontinst/kfile-plugin/CMakeLists.txt36
-rw-r--r--kcontrol/kfontinst/kfontinst/CMakeLists.txt36
-rw-r--r--kcontrol/kfontinst/kio/CMakeLists.txt39
-rw-r--r--kcontrol/kfontinst/lib/CMakeLists.txt33
-rw-r--r--kcontrol/kfontinst/thumbnail/CMakeLists.txt35
-rw-r--r--kcontrol/kfontinst/viewpart/CMakeLists.txt55
8 files changed, 294 insertions, 0 deletions
diff --git a/kcontrol/kfontinst/CMakeLists.txt b/kcontrol/kfontinst/CMakeLists.txt
new file mode 100644
index 000000000..38056cd3c
--- /dev/null
+++ b/kcontrol/kfontinst/CMakeLists.txt
@@ -0,0 +1,20 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_subdirectory( lib )
+add_subdirectory( thumbnail )
+add_subdirectory( viewpart )
+add_subdirectory( kcmfontinst )
+add_subdirectory( kfile-plugin )
+add_subdirectory( kfontinst )
+add_subdirectory( kio )
+
+install( FILES installfont.desktop DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus )
diff --git a/kcontrol/kfontinst/kcmfontinst/CMakeLists.txt b/kcontrol/kfontinst/kcmfontinst/CMakeLists.txt
new file mode 100644
index 000000000..b5a0da812
--- /dev/null
+++ b/kcontrol/kfontinst/kcmfontinst/CMakeLists.txt
@@ -0,0 +1,40 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/kcontrol/kfontinst/lib
+ ${CMAKE_SOURCE_DIR}/kcontrol/kfontinst/viewpart
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+tde_install_icons()
+install( FILES kcmfontinst.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+
+
+##### kcm_fontinst (module) #####################
+
+tde_add_kpart( kcm_fontinst AUTOMOC
+ SOURCES
+ KCmFontInst.cpp KFileFontIconView.cpp KFileFontView.cpp
+ PrintDialog.cpp SettingsDialog.cpp
+ LINK kfontinstprint-static kfontinst-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kcontrol/kfontinst/kfile-plugin/CMakeLists.txt b/kcontrol/kfontinst/kfile-plugin/CMakeLists.txt
new file mode 100644
index 000000000..229c243d7
--- /dev/null
+++ b/kcontrol/kfontinst/kfile-plugin/CMakeLists.txt
@@ -0,0 +1,36 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/kcontrol/kfontinst/lib
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kfile_font.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### kfile_font (module) #######################
+
+tde_add_kpart( kfile_font
+ SOURCES KFileFont.cpp
+ LINK kfontinst-shared kio-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kcontrol/kfontinst/kfontinst/CMakeLists.txt b/kcontrol/kfontinst/kfontinst/CMakeLists.txt
new file mode 100644
index 000000000..f288ca5ea
--- /dev/null
+++ b/kcontrol/kfontinst/kfontinst/CMakeLists.txt
@@ -0,0 +1,36 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_definitions( -DOS_${CMAKE_SYSTEM_NAME} )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/kcontrol/kfontinst/lib
+ ${CMAKE_SOURCE_DIR}/kcontrol/fonts/
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${FREETYPE_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kfontinst (executable) ####################
+
+tde_add_executable( kfontinst
+ SOURCES
+ Main.cpp FontEngine.cpp Fontmap.cpp GetPid.c
+ XConfig.cpp
+ LINK kxftconfig-static kfontinst-shared kio-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/kcontrol/kfontinst/kio/CMakeLists.txt b/kcontrol/kfontinst/kio/CMakeLists.txt
new file mode 100644
index 000000000..abb65350b
--- /dev/null
+++ b/kcontrol/kfontinst/kio/CMakeLists.txt
@@ -0,0 +1,39 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/kcontrol/kfontinst/lib
+ ${CMAKE_SOURCE_DIR}/kcontrol/fonts
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES fonts.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
+install( FILES fonts.desktop DESTINATION ${DATA_INSTALL_DIR}/konqsidebartng/virtual_folders/services )
+install( FILES folder.desktop system-folder.desktop package.desktop DESTINATION ${MIME_INSTALL_DIR}/fonts )
+
+
+##### kio_fonts (module) #######################
+
+tde_add_kpart( kio_fonts AUTOMOC
+ SOURCES KioFonts.cpp
+ LINK kxftconfig-static kfontinst-shared kdesu-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kcontrol/kfontinst/lib/CMakeLists.txt b/kcontrol/kfontinst/lib/CMakeLists.txt
new file mode 100644
index 000000000..989d60810
--- /dev/null
+++ b/kcontrol/kfontinst/lib/CMakeLists.txt
@@ -0,0 +1,33 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+add_definitions( -D_LARGEFILE64_SOURCE )
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${FREETYPE_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### kfontinst (shared) ########################
+
+tde_add_library( kfontinst SHARED
+ SOURCES Misc.cpp FcEngine.cpp
+ VERSION 0.0.0
+ LINK kio-shared ${XFT_LIBRARIES}
+ DESTINATION ${LIB_INSTALL_DIR}
+)
diff --git a/kcontrol/kfontinst/thumbnail/CMakeLists.txt b/kcontrol/kfontinst/thumbnail/CMakeLists.txt
new file mode 100644
index 000000000..8d3c04b86
--- /dev/null
+++ b/kcontrol/kfontinst/thumbnail/CMakeLists.txt
@@ -0,0 +1,35 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/kcontrol/kfontinst/lib
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES fontthumbnail.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+##### fontthumbnail (module) ####################
+
+tde_add_kpart( fontthumbnail
+ SOURCES FontThumbnail.cpp
+ LINK kfontinst-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
diff --git a/kcontrol/kfontinst/viewpart/CMakeLists.txt b/kcontrol/kfontinst/viewpart/CMakeLists.txt
new file mode 100644
index 000000000..e58fb7cc6
--- /dev/null
+++ b/kcontrol/kfontinst/viewpart/CMakeLists.txt
@@ -0,0 +1,55 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/kcontrol/kfontinst/lib
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( FILES kfontviewpart.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
+install( FILES kfontview.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
+install( FILES kfontviewpart.rc kfontviewui.rc DESTINATION ${DATA_INSTALL_DIR}/kfontview )
+
+
+##### libkfontviewpart (module) #################
+
+tde_add_kpart( libkfontviewpart AUTOMOC
+ SOURCES FontViewPart.cpp FontViewPartFactory.cpp FontPreview.cpp
+ LINK kfontinstprint-static kfontinst-shared kparts-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kfontview (executable) ####################
+
+tde_add_executable( kfontview AUTOMOC
+ SOURCES FontViewerApp.cpp
+ LINK kparts-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### kfontinstprint (static) ###################
+
+tde_add_library( kfontinstprint STATIC_PIC
+ SOURCES KfiPrint.cpp
+ LINK kdeprint-shared
+)