parent
8ecce8449d
commit
d4155deb8d
@ -0,0 +1,83 @@
|
||||
############################################
|
||||
# #
|
||||
# Improvements and feedbacks are welcome #
|
||||
# #
|
||||
# This file is released under GPL >= 3 #
|
||||
# #
|
||||
############################################
|
||||
|
||||
|
||||
cmake_minimum_required( VERSION 2.8 )
|
||||
|
||||
|
||||
#### general package setup
|
||||
|
||||
project( kshutdown )
|
||||
set( VERSION R14.1.0 )
|
||||
|
||||
|
||||
#### include essential cmake modules
|
||||
|
||||
include( FindPkgConfig )
|
||||
include( CheckFunctionExists )
|
||||
include( CheckIncludeFile )
|
||||
include( CheckLibraryExists )
|
||||
include( CheckCSourceCompiles )
|
||||
include( CheckCXXSourceCompiles )
|
||||
|
||||
|
||||
#### include our cmake modules
|
||||
|
||||
set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
|
||||
include( TDEMacros )
|
||||
|
||||
|
||||
##### setup install paths
|
||||
|
||||
include( TDESetupPaths )
|
||||
tde_setup_paths( )
|
||||
|
||||
|
||||
##### optional stuff
|
||||
|
||||
option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
|
||||
option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
|
||||
|
||||
|
||||
##### user requested modules
|
||||
|
||||
option( BUILD_ALL "Build all" ON )
|
||||
option( BUILD_EXTRAS "Build extras" ${BUILD_ALL} )
|
||||
option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
|
||||
option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
|
||||
|
||||
|
||||
##### configure checks
|
||||
|
||||
include( ConfigureChecks.cmake )
|
||||
|
||||
|
||||
###### global compiler settings
|
||||
|
||||
add_definitions( -DHAVE_CONFIG_H -UTQT_NO_ASCII_CAST )
|
||||
|
||||
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
|
||||
set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
|
||||
set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
|
||||
|
||||
|
||||
##### directories
|
||||
|
||||
add_subdirectory( ${PROJECT_NAME} )
|
||||
add_subdirectory( kshutdownlockout )
|
||||
add_subdirectory( karamba )
|
||||
add_subdirectory( sounds )
|
||||
add_subdirectory( pics )
|
||||
tde_conditional_add_subdirectory( BUILD_EXTRAS extras )
|
||||
tde_conditional_add_subdirectory( BUILD_DOC doc )
|
||||
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
|
||||
|
||||
|
||||
##### write configure files
|
||||
|
||||
configure_file( config.h.cmake config.h @ONLY )
|
@ -0,0 +1,44 @@
|
||||
###########################################
|
||||
# #
|
||||
# Improvements and feedback are welcome #
|
||||
# #
|
||||
# This file is released under GPL >= 3 #
|
||||
# #
|
||||
###########################################
|
||||
|
||||
|
||||
# required stuff
|
||||
find_package( TQt )
|
||||
find_package( TDE )
|
||||
|
||||
tde_setup_architecture_flags( )
|
||||
|
||||
include(TestBigEndian)
|
||||
test_big_endian(WORDS_BIGENDIAN)
|
||||
|
||||
|
||||
##### check for gcc visibility support
|
||||
|
||||
if( WITH_GCC_VISIBILITY )
|
||||
if( NOT UNIX )
|
||||
tde_message_fatal( "gcc visibility support was requested, but your system is not *NIX" )
|
||||
endif( NOT UNIX )
|
||||
set( __KDE_HAVE_GCC_VISIBILITY 1 )
|
||||
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
|
||||
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fvisibility-inlines-hidden")
|
||||
endif( WITH_GCC_VISIBILITY )
|
||||
|
||||
|
||||
##### gettext
|
||||
|
||||
if( BUILD_TRANSLATIONS )
|
||||
include( FindGettext )
|
||||
if( GETTEXT_FOUND )
|
||||
set( MSGFMT_EXECUTABLE ${GETTEXT_MSGFMT_EXECUTABLE}
|
||||
CACHE FILEPATH "path to msgfmt executable" )
|
||||
endif( GETTEXT_FOUND )
|
||||
|
||||
if( NOT MSGFMT_EXECUTABLE )
|
||||
tde_message_fatal( "msgfmt is required but was not found on your system." )
|
||||
endif( NOT MSGFMT_EXECUTABLE )
|
||||
endif( BUILD_TRANSLATIONS )
|
@ -0,0 +1,8 @@
|
||||
#define VERSION "@VERSION@"
|
||||
|
||||
// Defined if you have fvisibility and fvisibility-inlines-hidden support.
|
||||
#cmakedefine __KDE_HAVE_GCC_VISIBILITY 1
|
||||
|
||||
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
|
||||
significant byte first (like Motorola and SPARC, unlike Intel). */
|
||||
#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@
|
@ -0,0 +1 @@
|
||||
tde_auto_add_subdirectories( )
|
@ -0,0 +1 @@
|
||||
tde_create_handbook( DESTINATION ${PROJECT_NAME} LANG de )
|
@ -0,0 +1 @@
|
||||
tde_create_handbook( DESTINATION ${PROJECT_NAME} )
|
@ -0,0 +1,5 @@
|
||||
INSTALL(
|
||||
FILES ${PROJECT_NAME}.1
|
||||
DESTINATION ${MAN_INSTALL_DIR}/man1
|
||||
COMPONENT doc
|
||||
)
|
@ -0,0 +1,115 @@
|
||||
.\" Hey, EMACS: -*- nroff -*-
|
||||
.\" First parameter, NAME, should be all caps
|
||||
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
|
||||
.\" other parameters are allowed: see man(7), man(1)
|
||||
.TH KSHUTDOWN 1 "avril 14, 2005"
|
||||
.\" Please adjust this date whenever revising the manpage.
|
||||
.\"
|
||||
.\" Some roff macros, for reference:
|
||||
.\" .nh disable hyphenation
|
||||
.\" .hy enable hyphenation
|
||||
.\" .ad l left justify
|
||||
.\" .ad b justify to both left and right margins
|
||||
.\" .nf disable filling
|
||||
.\" .fi enable filling
|
||||
.\" .br insert line break
|
||||
.\" .sp <n> insert n+1 empty lines
|
||||
.\" for manpage-specific macros, see man(7)
|
||||
.SH NAME
|
||||
kshutdown \- A Shut Down Utility for TDE
|
||||
.SH SYNOPSIS
|
||||
.B kshutdown
|
||||
.RI [ Qt-options ]
|
||||
.RI [ TDE-options ]
|
||||
.RI [ options ]
|
||||
.RI time
|
||||
.SH DESCRIPTION
|
||||
This manual page was written for the Debian distribution
|
||||
because the original program does not have a manual page.
|
||||
.PP
|
||||
This manual page documents briefly the
|
||||
.B kshutdown
|
||||
utility.
|
||||
.PP
|
||||
.\" TeX users may be more comfortable with the \fB<whatever>\fP and
|
||||
.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
|
||||
.\" respectively.
|
||||
.SH OPTIONS
|
||||
A summary of options is included below.
|
||||
|
||||
.TP
|
||||
Generic options:
|
||||
.TP
|
||||
.B \-\-help
|
||||
Show help about options
|
||||
.TP
|
||||
.B \-\-help\-qt
|
||||
Show Qt specific options
|
||||
.TP
|
||||
.B \-\-help\-tde
|
||||
Show TDE specific options
|
||||
.TP
|
||||
.B \-\-help\-all
|
||||
Show all options
|
||||
.TP
|
||||
.B \-\-author
|
||||
Show author information
|
||||
.TP
|
||||
.B \-v, \-\-version
|
||||
Show version information
|
||||
.TP
|
||||
.B \-\-license
|
||||
Show license information
|
||||
.TP
|
||||
.B \-\-
|
||||
End of options
|
||||
|
||||
.TP
|
||||
Options:
|
||||
.TP
|
||||
.B \-s, \-\-shutdown
|
||||
Turn off computer
|
||||
.TP
|
||||
.B \-h, \-\-halt
|
||||
Turn off computer
|
||||
.TP
|
||||
.B \-r, \-\-reboot
|
||||
Restart computer
|
||||
.TP
|
||||
.B \-k, \-\-lock
|
||||
Lock session
|
||||
.TP
|
||||
.B \-l, \-\-logout
|
||||
End current session
|
||||
.TP
|
||||
.B \-w, \-\-wizard
|
||||
Wizard
|
||||
.TP
|
||||
.B \-\-standard
|
||||
Show standard logout dialog
|
||||
.TP
|
||||
.B \-c, \-\-cancel
|
||||
Cancel an active action
|
||||
.TP
|
||||
.B \-\-init
|
||||
Don't show window at startup
|
||||
.TP
|
||||
.B \-\-test
|
||||
Enable test mode
|
||||
.TP
|
||||
.B \-\-default
|
||||
Disable test mode
|
||||
|
||||
.TP
|
||||
Arguments:
|
||||
.TP
|
||||
.B time
|
||||
Time; Examples: 01:30 - absolute time (HH:MM); 10 - number of minutes to wait from now
|
||||
.SH AUTHOR
|
||||
kshutdown was written by Konrad Twardowski <kdtonline@poczta.onet.pl>.
|
||||
.PP
|
||||
This manual page was written by Romain Beauxis <toots@rastageeks.org>,
|
||||
for the Debian project Permission is granted to copy, distribute and/or
|
||||
modify this document under the terms of the GNU General Public
|
||||
License, Version 2 any later version published by the Free Software Foundation.
|
||||
|
@ -0,0 +1,8 @@
|
||||
add_subdirectory( multimedia )
|
||||
add_subdirectory( shutdown )
|
||||
add_subdirectory( system )
|
||||
|
||||
install(
|
||||
FILES hibernate.desktop
|
||||
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/extras
|
||||
)
|
@ -0,0 +1,6 @@
|
||||
file( GLOB _files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.desktop )
|
||||
|
||||
install(
|
||||
FILES ${_files} .directory
|
||||
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/extras/multimedia
|
||||
)
|
@ -0,0 +1,6 @@
|
||||
file( GLOB _files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.desktop )
|
||||
|
||||
install(
|
||||
FILES ${_files} .directory
|
||||
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/extras/shutdown
|
||||
)
|
@ -0,0 +1,6 @@
|
||||
file( GLOB _files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.desktop )
|
||||
|
||||
install(
|
||||
FILES ${_files} .directory
|
||||
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/extras/system
|
||||
)
|
@ -0,0 +1,8 @@
|
||||
install(
|
||||
FILES
|
||||
${PROJECT_NAME}-48x48.png
|
||||
${PROJECT_NAME}-classic-notext.theme
|
||||
${PROJECT_NAME}-classic-text.theme
|
||||
|
||||
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/karamba
|
||||
)
|
@ -0,0 +1,57 @@
|
||||
include_directories(
|
||||
${CMAKE_BINARY_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
${TDE_LIB_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### kshutdown (executable)
|
||||
|
||||
tde_add_executable( ${PROJECT_NAME} AUTOMOC
|
||||
|
||||
SOURCES
|
||||
actions.cpp
|
||||
appobserver.cpp
|
||||
configuration.cpp
|
||||
confirmation.cpp
|
||||
extras.cpp
|
||||
kshutdowniface_skel.cpp
|
||||
links.cpp
|
||||
mactioneditdialog.cpp
|
||||
main.cpp
|
||||
miscutils.cpp
|
||||
mmainwindow.cpp
|
||||
mmessagedialog.cpp
|
||||
msettingsdialog.cpp
|
||||
mstatstab.cpp
|
||||
msystemtray.cpp
|
||||
mtip.cpp
|
||||
progressbar.cpp
|
||||
systemconfig.cpp
|
||||
LINK
|
||||
tdecore-shared
|
||||
tdeui-shared
|
||||
tdeio-shared
|
||||
|
||||
DESTINATION ${BIN_INSTALL_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### other data
|
||||
|
||||
install(
|
||||
FILES ${PROJECT_NAME}.upd
|
||||
DESTINATION ${DATA_INSTALL_DIR}/tdeconf_update
|
||||
)
|
||||
|
||||
install(
|
||||
FILES ${PROJECT_NAME}.desktop
|
||||
DESTINATION ${SHARE_INSTALL_PREFIX}/applications
|
||||
)
|
@ -0,0 +1,35 @@
|
||||
include_directories(
|
||||
${CMAKE_BINARY_DIR}
|
||||
${CMAKE_CURRENT_BINARY_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${TDE_INCLUDE_DIR}
|
||||
${TQT_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
link_directories(
|
||||
${TQT_LIBRARY_DIRS}
|
||||
${TDE_LIB_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### kshutdownlockout_panelapplet (kpart)
|
||||
|
||||
tde_add_kpart( kshutdownlockout_panelapplet AUTOMOC
|
||||
|
||||
SOURCES
|
||||
lockout.cpp
|
||||
LINK
|
||||
tdecore-shared
|
||||
tdeui-shared
|
||||
tdeio-shared
|
||||
|
||||
DESTINATION ${PLUGIN_INSTALL_DIR}
|
||||
)
|
||||
|
||||
|
||||
##### other data
|
||||
|
||||
install(
|
||||
FILES kshutdownlockout.desktop
|
||||
DESTINATION ${DATA_INSTALL_DIR}/kicker/applets
|
||||
)
|
@ -0,0 +1 @@
|
||||
tde_install_icons()
|
@ -0,0 +1,5 @@
|
||||
file( GLOB _srcs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po )
|
||||
|
||||
if( _srcs )
|
||||
tde_create_translation( LANG auto OUTPUT_NAME ${PROJECT_NAME} )
|
||||
endif( )
|
@ -0,0 +1,13 @@
|
||||
install(
|
||||
FILES
|
||||
COPYRIGHT
|
||||
1m.ogg
|
||||
5m.ogg
|
||||
|
||||
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/sounds
|
||||
)
|
||||
|
||||
install(
|
||||
FILES eventsrc
|
||||
DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}
|
||||
)
|
Loading…
Reference in new issue