summaryrefslogtreecommitdiffstats
path: root/konsole
diff options
context:
space:
mode:
authorsamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-23 23:42:11 +0000
committersamelian <samelian@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-23 23:42:11 +0000
commitb6fc43ccd522dfbc1e215b12adb8208c156bbd31 (patch)
treeb6d14378dd6c3d2f74ea8acf515cef7f4a024cb2 /konsole
parentd53bf360906757a36588588fb0286d3b4784ffcb (diff)
downloadtdebase-b6fc43ccd522dfbc1e215b12adb8208c156bbd31.tar.gz
tdebase-b6fc43ccd522dfbc1e215b12adb8208c156bbd31.zip
[kdebase] initial cmake support
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1216551 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'konsole')
-rw-r--r--konsole/CMakeLists.txt57
-rw-r--r--konsole/ConfigureChecks.cmake14
-rw-r--r--konsole/fonts/CMakeLists.txt30
-rw-r--r--konsole/konsole/CMakeLists.txt78
-rw-r--r--konsole/other/CMakeLists.txt33
-rw-r--r--konsole/other/icons/CMakeLists.txt12
-rw-r--r--konsole/other/wallpapers/CMakeLists.txt14
7 files changed, 238 insertions, 0 deletions
diff --git a/konsole/CMakeLists.txt b/konsole/CMakeLists.txt
new file mode 100644
index 000000000..6f0900d3c
--- /dev/null
+++ b/konsole/CMakeLists.txt
@@ -0,0 +1,57 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+include( ConfigureChecks.cmake )
+
+add_subdirectory( konsole )
+add_subdirectory( other )
+# add_subdirectory( doc )
+add_subdirectory( fonts )
+
+
+install( FILES
+ konsole.desktop konsolesu.desktop
+ DESTINATION ${XDG_APPS_INSTALL_DIR} )
+
+
+install( FILES
+ konsolepart.desktop kwrited.desktop konsole-script.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR} )
+
+
+install( FILES
+ terminalemulator.desktop
+ DESTINATION ${SERVICETYPES_INSTALL_DIR} )
+
+
+install( FILES
+ konsole.upd
+ DESTINATION ${DATA_INSTALL_DIR}/kconf_update )
+
+
+install( PROGRAMS
+ schemaStrip.pl
+ DESTINATION ${DATA_INSTALL_DIR}/kconf_update )
+
+
+install( FILES
+ kwrited.desktop
+ DESTINATION ${SERVICES_INSTALL_DIR}/kded )
+
+
+install( FILES
+ konsolehere.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus )
+
+
+install( FILES
+ eventsrc tips
+ DESTINATION ${DATA_INSTALL_DIR}/konsole )
diff --git a/konsole/ConfigureChecks.cmake b/konsole/ConfigureChecks.cmake
new file mode 100644
index 000000000..5362adb8b
--- /dev/null
+++ b/konsole/ConfigureChecks.cmake
@@ -0,0 +1,14 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+if( ${CMAKE_SYSTEM_NAME} MATCHES "Linux" )
+ set( HAVE_PROC_CWD 1 CACHE INTERNAL "" FORCE )
+endif()
diff --git a/konsole/fonts/CMakeLists.txt b/konsole/fonts/CMakeLists.txt
new file mode 100644
index 000000000..e3353a783
--- /dev/null
+++ b/konsole/fonts/CMakeLists.txt
@@ -0,0 +1,30 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES
+ ${CMAKE_CURRENT_BINARY_DIR}/console8x16.pcf.gz
+ ${CMAKE_CURRENT_BINARY_DIR}/9x15.pcf.gz
+ DESTINATION ${DATA_INSTALL_DIR}/konsole/fonts )
+
+
+# FIXME generating fonts can be improved
+
+add_custom_target( console8x16.pcf.gz ALL )
+add_custom_command( TARGET console8x16.pcf.gz
+ COMMAND bdftopcf -o console8x16.pcf ${CMAKE_CURRENT_SOURCE_DIR}/console8x16.bdf
+ COMMAND gzip -f --best console8x16.pcf
+ DEPENDS console8x16.bdf )
+
+add_custom_target( 9x15.pcf.gz ALL )
+add_custom_command( TARGET 9x15.pcf.gz
+ COMMAND bdftopcf -o 9x15.pcf ${CMAKE_CURRENT_SOURCE_DIR}/9x15.bdf
+ COMMAND gzip -f --best 9x15.pcf
+ DEPENDS 9x15.bdf )
diff --git a/konsole/konsole/CMakeLists.txt b/konsole/konsole/CMakeLists.txt
new file mode 100644
index 000000000..9308ff64d
--- /dev/null
+++ b/konsole/konsole/CMakeLists.txt
@@ -0,0 +1,78 @@
+#################################################
+#
+# (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_CURRENT_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+##### other data ################################
+
+install( FILES x-konsole.desktop DESTINATION ${MIME_INSTALL_DIR}/application )
+
+
+##### libkonsolepart (module) ###################
+
+set( target libkonsolepart )
+
+set( ${target}_SRCS
+ TEPty.cpp BlockArray.cpp konsole_part.cpp schema.cpp
+ session.cpp zmodem_dialog.cpp TEWidget.cpp TEmuVt102.cpp
+ TEScreen.cpp konsole_wcwidth.cpp TEmulation.cpp
+ TEHistory.cpp keytrans.cpp konsoleiface.skel sessioniface.skel
+)
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES ${${target}_SRCS}
+ LINK kparts-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### kded_kwrited (module) #####################
+
+set( target kded_kwrited )
+
+set( ${target}_SRCS
+ kwrited.cpp TEPty.cpp kwrited.skel
+)
+
+tde_add_kpart( ${target} AUTOMOC
+ SOURCES ${${target}_SRCS}
+ LINK kdeinit_kded-shared
+ DESTINATION ${PLUGIN_INSTALL_DIR}
+)
+
+
+##### konsole (kdeinit) #########################
+
+set( target konsole )
+
+set( ${target}_SRCS
+ TEPty.cpp BlockArray.cpp main.cpp konsole.cpp
+ schema.cpp session.cpp TEWidget.cpp TEmuVt102.cpp
+ TEScreen.cpp TEmulation.cpp TEHistory.cpp keytrans.cpp
+ konsoleiface.skel sessioniface.skel konsole_wcwidth.cpp
+ konsolebookmarkhandler.cpp konsolebookmarkmenu.cpp
+ zmodem_dialog.cpp printsettings.cpp
+)
+
+tde_add_kdeinit_executable( ${target} AUTOMOC
+ SOURCES ${${target}_SRCS}
+ LINK kdeprint-shared kio-shared ${XRENDER_LIBRARIES} dl
+)
diff --git a/konsole/other/CMakeLists.txt b/konsole/other/CMakeLists.txt
new file mode 100644
index 000000000..2dc3214b4
--- /dev/null
+++ b/konsole/other/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_subdirectory( icons )
+add_subdirectory( wallpapers )
+
+tde_install_icons( )
+
+install( FILES
+ BlackOnLightColor.schema BlackOnLightYellow.schema
+ BlackOnWhite.schema Example.Schema GreenOnBlack.schema
+ WhiteOnBlack.schema README.default.Schema syscolor.schema
+ Linux.schema XTerm.schema vim.schema DarkPicture.schema
+ LightPicture.schema Transparent.schema GreenTint.schema
+ Transparent_MC.schema GreenTint_MC.schema Transparent_lightbg.schema
+ Transparent_darkbg.schema LightPaper.schema linux.desktop
+ mc.desktop shell.desktop su.desktop sumc.desktop
+ linux.keytab vt100.keytab vt420pc.keytab x11r5.keytab
+ solaris.keytab README.Schema README.KeyTab README.default.Keytab
+ screen.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/konsole )
+
+install( FILES
+ 2shells 3shells 4shells 5shells
+ DESTINATION ${DATA_INSTALL_DIR}/konsole/profiles )
diff --git a/konsole/other/icons/CMakeLists.txt b/konsole/other/icons/CMakeLists.txt
new file mode 100644
index 000000000..a4f71c5ff
--- /dev/null
+++ b/konsole/other/icons/CMakeLists.txt
@@ -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_install_icons( DESTINATION ${DATA_INSTALL_DIR}/konsole/icons )
diff --git a/konsole/other/wallpapers/CMakeLists.txt b/konsole/other/wallpapers/CMakeLists.txt
new file mode 100644
index 000000000..709e996a4
--- /dev/null
+++ b/konsole/other/wallpapers/CMakeLists.txt
@@ -0,0 +1,14 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+install( FILES
+ Paper01.jpg Blkmarble.jpg gray02.jpg Metric-Monospace-14.png
+ DESTINATION ${DATA_INSTALL_DIR}/konsole/wallpapers )