summaryrefslogtreecommitdiffstats
path: root/kdm/kfrontend
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 /kdm/kfrontend
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 'kdm/kfrontend')
-rw-r--r--kdm/kfrontend/CMakeLists.txt94
-rw-r--r--kdm/kfrontend/pics/CMakeLists.txt18
-rw-r--r--kdm/kfrontend/sessions/CMakeLists.txt29
-rw-r--r--kdm/kfrontend/sessions/kde.desktop.cmake45
-rw-r--r--kdm/kfrontend/themer/CMakeLists.txt41
-rw-r--r--kdm/kfrontend/themes/CMakeLists.txt13
-rw-r--r--kdm/kfrontend/themes/circles/CMakeLists.txt15
-rw-r--r--kdm/kfrontend/themes/o2_enterprise/CMakeLists.txt16
8 files changed, 271 insertions, 0 deletions
diff --git a/kdm/kfrontend/CMakeLists.txt b/kdm/kfrontend/CMakeLists.txt
new file mode 100644
index 000000000..122f8c84e
--- /dev/null
+++ b/kdm/kfrontend/CMakeLists.txt
@@ -0,0 +1,94 @@
+#################################################
+#
+# (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( themer )
+add_subdirectory( themes )
+add_subdirectory( pics )
+add_subdirectory( sessions )
+
+include_directories(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_SOURCE_DIR}/kdm/backend
+ ${CMAKE_SOURCE_DIR}/kdmlib
+ ${CMAKE_SOURCE_DIR}/kcontrol/background
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+##### other data ################################
+
+install( CODE "execute_process( COMMAND ${CMAKE_CURRENT_BINARY_DIR}/genkdmconf --in \$ENV{DESTDIR}${CONFIG_INSTALL_DIR}/kdm --no-in-notice --face-src ${CMAKE_CURRENT_SOURCE_DIR}/pics ${GENKDMCONF_FLAGS} )" )
+
+
+##### config.ci (generated) #####################
+
+add_custom_command( OUTPUT config.ci
+ COMMAND perl -w ${CMAKE_SOURCE_DIR}/kdm/confproc.pl ${CMAKE_SOURCE_DIR}/kdm/config.def config.ci
+ DEPENDS ${CMAKE_SOURCE_DIR}/kdm/confproc.pl ${CMAKE_SOURCE_DIR}/kdm/config.def )
+
+
+##### kdm_config (executable) ###################
+
+set_property( SOURCE kdm_config.c APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/config.ci )
+
+tde_add_executable( kdm_config
+ SOURCES kdm_config.c
+ LINK
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### kdm_greet (executable) ####################
+
+tde_add_executable( kdm_greet AUTOMOC
+ SOURCES
+ kdm_greet.c kdmconfig.cpp kdmclock.cpp kconsole.cpp
+ kfdialog.cpp kgdialog.cpp kchooser.cpp kgverify.cpp
+ kdmshutdown.cpp kdmadmindialog.cpp kgreeter.cpp
+ kgapp.cpp
+ LINK kdmthemer-static kdeui-shared Xtst
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### krootimage (executable) ###################
+
+tde_add_executable( krootimage AUTOMOC
+ SOURCES krootimage.cpp
+ LINK bgnd-static kio-shared
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### genkdmconf (executable) ###################
+
+set_property( SOURCE genkdmconf.c APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/config.ci )
+
+tde_add_executable( genkdmconf AUTOMOC
+ SOURCES genkdmconf.c
+ LINK X11
+ DESTINATION ${BIN_INSTALL_DIR}
+)
+
+
+##### kdmctl (executable) #######################
+
+tde_add_executable( kdmctl
+ SOURCES kdmctl.c
+ LINK
+ DESTINATION ${BIN_INSTALL_DIR}
+)
diff --git a/kdm/kfrontend/pics/CMakeLists.txt b/kdm/kfrontend/pics/CMakeLists.txt
new file mode 100644
index 000000000..790dc06ce
--- /dev/null
+++ b/kdm/kfrontend/pics/CMakeLists.txt
@@ -0,0 +1,18 @@
+#################################################
+#
+# (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
+ kdelogo.png kdelogo-crystal.png shutdown.jpg
+ DESTINATION ${DATA_INSTALL_DIR}/kdm/pics )
+
+install( FILES
+ default1.png default2.png default3.png root1.png
+ DESTINATION ${DATA_INSTALL_DIR}/kdm/pics/users )
diff --git a/kdm/kfrontend/sessions/CMakeLists.txt b/kdm/kfrontend/sessions/CMakeLists.txt
new file mode 100644
index 000000000..e5ccb9fb0
--- /dev/null
+++ b/kdm/kfrontend/sessions/CMakeLists.txt
@@ -0,0 +1,29 @@
+#################################################
+#
+# (C) 2010-2011 Serghei Amelian
+# serghei (DOT) amelian (AT) gmail.com
+#
+# Improvements and feedback are welcome
+#
+# This file is released under GPL >= 2
+#
+#################################################
+
+configure_file( kde.desktop.cmake kde.desktop @ONLY )
+
+install( FILES
+ admin.desktop ${CMAKE_CURRENT_BINARY_DIR}/kde.desktop
+ gnome.desktop 9wm.desktop aewm++.desktop aewm.desktop
+ afterstep.desktop amaterus.desktop amiwm.desktop
+ asclassic.desktop blackbox.desktop cde.desktop
+ ctwm.desktop cwwm.desktop enlightenment.desktop
+ evilwm.desktop fluxbox.desktop flwm.desktop fvwm.desktop
+ fvwm95.desktop golem.desktop icewm.desktop ion.desktop
+ larswm.desktop lwm.desktop matchbox.desktop metacity.desktop
+ mwm.desktop olvwm.desktop olwm.desktop openbox.desktop
+ oroborus.desktop phluid.desktop pwm.desktop qvwm.desktop
+ ratpoison.desktop sapphire.desktop sawfish.desktop
+ twm.desktop ude.desktop vtwm.desktop w9wm.desktop
+ waimea.desktop wm2.desktop wmaker.desktop xfce.desktop
+ xfce4.desktop
+ DESTINATION ${DATA_INSTALL_DIR}/kdm/sessions )
diff --git a/kdm/kfrontend/sessions/kde.desktop.cmake b/kdm/kfrontend/sessions/kde.desktop.cmake
new file mode 100644
index 000000000..fa56e73a9
--- /dev/null
+++ b/kdm/kfrontend/sessions/kde.desktop.cmake
@@ -0,0 +1,45 @@
+[Desktop Entry]
+Encoding=UTF-8
+Type=XSession
+Exec=@TDE_BIN_DIR@/startkde
+TryExec=@TDE_BIN_DIR@/startkde
+Name=KDE3
+Name[hi]=केडीई
+Name[mn]=КДЭ
+Name[ta]=Kஏற்றக் காவலன்
+Name[xh]=iKDE
+Name[xx]=xxKDExx
+Comment=The K Desktop Environment. A powerful Open Source graphical desktop environment
+Comment[bs]=K Desktop Environment. Moćan grafički desktop otvorenog izvornog koda
+Comment[ca]=L'entorn d'escriptori K. Un poderós entorn d'escriptori gràfic de Codi Font Obert
+Comment[cy]=Yr Amgylchedd Penbwrdd K. Amgylchedd penbwrdd graffegol pwerus, sy'n gôd-agored.
+Comment[da]=K Skrivebordsmiljøet. Et kraftigt, åbent, grafisk skrivebordsmiljø
+Comment[de]=Das K Desktop Environment. Eine mächtige, graphische Arbeitsumgebung und Open Source / Freie Software
+Comment[el]=Το K Desktop Environment. Ένα πανίσχυρο ελεύθερης προέλευσης γραφικό περιβάλλον επιφάνειας εργασίας
+Comment[es]=El Entorno de Escritorio K, un potente entorno de escritorio gráfico realizado de código abierto
+Comment[et]=K töölaua keskkond on võimas vaba tarkvara graafiline töölaua keskkond
+Comment[fi]=KDE-työpöytäympäristö (K Desktop Environment) on tehokas avoimen lähdekoodin graafinen työpöytäympäristö
+Comment[fr]=The K Desktop Environment. Un environnement de bureau graphique, puissant et Open Source
+Comment[he]=The K Desktop Environment. סביבת עבודה גרפית, בעלת-עוצמה בקוד פתוח
+Comment[hi]=के डेस्कटॉप वातावरण. एक शक्तिशाली, ओपन सोर्स चित्रमय डेस्कटॉप वातावरण
+Comment[hu]=A KDE grafikus munkakörnyezet, egy szabad forráskódú grafikus ablakkezelő környezet
+Comment[it]=L'ambiente desktop KDE. Un potente ambiente desktop grafico Open Source
+Comment[mn]=The K Desktop Environment. Хүчирхэг нээлттэй эх код бүхий график дэлгэцийн орчин
+Comment[nb]=K Desktop Environment. Et kraftig grafisk skrivebordsmiljø med åpen kildekode.
+Comment[nl]=De K Desktop Environment, een krachtige open source grafische desktop environment
+Comment[nn]=K Desktop Environment. Eit kraftig grafisk skrivebordsmiljø med open kjeldekode.
+Comment[pl]=Środowisko KDE. Potężne środowisko graficzne Wolnego Oprogramowania.
+Comment[pt]=O K Desktop Environment. Um ambiente gráfico open source poderoso
+Comment[pt_BR]=Acrônimo para K Desktop Environment (ou Ambiente de Trabalho K). Um poderoso ambiente de trabalho gráfico de código aberto
+Comment[ro]=K Desktop Environment. Un mediu grafic cu surse deschise, foarte puternic
+Comment[sk]=The K Desktop Environment. Výkonné, voľne šíriteľné grafické pracovné prostredie
+Comment[sl]=Namizno okolje K. Zmogljivo grafično namizno okolje odprte kode
+Comment[sr]=K Desktop Environment (KDE). Моћно графичко радно окружење отвореног кода
+Comment[sv]=K-skrivbordsmiljön. En kraftfull grafisk skrivbordsmiljö med öppen källkod
+Comment[ta]= Kமேல்மேசை சூழல். சக்திவாய்ந்த திறந்த ஆணைமூல சித்திர வகை மேல்மேசை சூழல்
+Comment[tr]=KDE Masaüstü Yöneticisi. Güçlü bir grafiksel masaüstü ortamı
+Comment[uk]=The K Desktop Environment. Потужне графічне середовище з відкритими текстами
+Comment[uz]=KDE (K Desktop Environment) - кучли Open Source график иш столи муҳити
+Comment[vi]=môi trường desktop K, môi trường desktop đồ hoạ mã nguồn mở rất mạnh
+Comment[xx]=xxThe K Desktop Environment. A powerful Open Source graphical desktop environmentxx
+Comment[zh_CN]=K 桌面环境。强大的开放源代码图形桌面环境
diff --git a/kdm/kfrontend/themer/CMakeLists.txt b/kdm/kfrontend/themer/CMakeLists.txt
new file mode 100644
index 000000000..ff65734af
--- /dev/null
+++ b/kdm/kfrontend/themer/CMakeLists.txt
@@ -0,0 +1,41 @@
+#################################################
+#
+# (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}/kdm/kfrontend
+ ${CMAKE_SOURCE_DIR}/kdmlib
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+)
+
+
+# FIXME this must be optimized
+##### config.ci (generated) #####################
+
+add_custom_command( OUTPUT config.ci
+ COMMAND perl -w ${CMAKE_SOURCE_DIR}/kdm/confproc.pl ${CMAKE_SOURCE_DIR}/kdm/config.def config.ci
+ DEPENDS ${CMAKE_SOURCE_DIR}/kdm/confproc.pl ${CMAKE_SOURCE_DIR}/kdm/config.def )
+set_property( SOURCE kdmthemer.cpp APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/config.ci )
+
+
+##### kdmthemer (static) ########################
+
+tde_add_library( kdmthemer STATIC_PIC AUTOMOC
+ SOURCES
+ kdmthemer.cpp kdmitem.cpp kdmpixmap.cpp
+ kdmrect.cpp kdmlabel.cpp kdmlayout.cpp
+)
diff --git a/kdm/kfrontend/themes/CMakeLists.txt b/kdm/kfrontend/themes/CMakeLists.txt
new file mode 100644
index 000000000..f1dd26e15
--- /dev/null
+++ b/kdm/kfrontend/themes/CMakeLists.txt
@@ -0,0 +1,13 @@
+#################################################
+#
+# (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( circles )
+add_subdirectory( o2_enterprise )
diff --git a/kdm/kfrontend/themes/circles/CMakeLists.txt b/kdm/kfrontend/themes/circles/CMakeLists.txt
new file mode 100644
index 000000000..91396000b
--- /dev/null
+++ b/kdm/kfrontend/themes/circles/CMakeLists.txt
@@ -0,0 +1,15 @@
+#################################################
+#
+# (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
+ GdmGreeterTheme.desktop circles.xml background.svg
+ flower.png help.png options.png screenshot.png
+ DESTINATION ${DATA_INSTALL_DIR}/kdm/themes/circles )
diff --git a/kdm/kfrontend/themes/o2_enterprise/CMakeLists.txt b/kdm/kfrontend/themes/o2_enterprise/CMakeLists.txt
new file mode 100644
index 000000000..81b5fe7de
--- /dev/null
+++ b/kdm/kfrontend/themes/o2_enterprise/CMakeLists.txt
@@ -0,0 +1,16 @@
+#################################################
+#
+# (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
+ Dialog.png enter_normal.png enter_over.png enter_pressed.png
+ enterprise.xml GdmGreeterTheme.desktop preview.png
+ system_normal.png system_over.png system_pressed.png
+ DESTINATION ${DATA_INSTALL_DIR}/kdm/themes/o2_enterprise )