Revert "more eol stuf..."
Changing the eol of png and exe isnt cool...
This reverts commit 1dca06655c
.
This commit is contained in:
parent
655568b4db
commit
02224896a6
|
@ -1,2 +1,2 @@
|
|||
*.pyc
|
||||
*.pyc
|
||||
*~
|
176
CMakeLists.txt
176
CMakeLists.txt
|
@ -1,88 +1,88 @@
|
|||
project( SnoreNotify )
|
||||
cmake_minimum_required( VERSION 2.8.9 )
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake/modules ${CMAKE_PREFIX_PATH}/share/apps/cmake/modules)
|
||||
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
cmake_policy(SET CMP0020 NEW)
|
||||
|
||||
include(GNUInstallDirs)
|
||||
include(CMakeDependentOption)
|
||||
|
||||
|
||||
#######################################################################
|
||||
option(WITH_FRONTENDS "Build frontends currently only useful if WITH_SNORE_DEAMON=ON" OFF)
|
||||
option(WITH_GROWL_BACKEND "Build the Growl backend" ON)
|
||||
option(WITH_SNORE_DEAMON "Build the Snore deamon, which redirects notifications" OFF)
|
||||
option(WITH_QT4 "Use Qt4" ON)
|
||||
cmake_dependent_option(WITH_KDE "Try to build with KDE support if availibe" ON "NOT WITH_QT4" OFF)
|
||||
cmake_dependent_option(WITH_FREEDESKTOP_FRONTEND "Build the freedesktop frontend" OFF "WITH_SNORE_DEAMON" ON)
|
||||
#######################################################################
|
||||
|
||||
set(SNORE_VERSION_MAJOR 0)
|
||||
set(SNORE_VERSION_MINOR 5)
|
||||
set(SNORE_VERSION_SUFFIX "alpha1")
|
||||
|
||||
if(WITH_KDE)
|
||||
find_package(KDE4)
|
||||
endif()
|
||||
|
||||
set(SNORE_SUFFIX "")
|
||||
set(SNORE_CamelCase_SUFFIX "")
|
||||
if(KDE4_FOUND)
|
||||
add_definitions(-DHAVE_KDE ${KDE4_DEFINITIONS} -D_UNICODE)
|
||||
include_directories(${KDE4_INCLUDES})
|
||||
else()
|
||||
if(WITH_QT4)
|
||||
find_package(Qt4 REQUIRED)
|
||||
else()
|
||||
find_package(Qt5Core REQUIRED)
|
||||
find_package(Qt5Widgets REQUIRED)
|
||||
find_package(Qt5Network REQUIRED)
|
||||
find_package(Qt5DBus QUIET)
|
||||
find_package(Qt5Declarative REQUIRED)
|
||||
include(ECMQt4To5Porting)
|
||||
set(SNORE_SUFFIX "-qt5")
|
||||
set(SNORE_CamelCase_SUFFIX "Qt5")
|
||||
endif()
|
||||
include_directories( ${QT_INCLUDES} )
|
||||
include(NoKDE)
|
||||
endif()
|
||||
|
||||
|
||||
find_package( CryptoPP )
|
||||
find_package( Boost COMPONENTS system thread)
|
||||
|
||||
find_package(Doxygen)
|
||||
|
||||
if(DOXYGEN_FOUND)
|
||||
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in" "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" @only)
|
||||
|
||||
add_custom_target(doc
|
||||
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
|
||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||
COMMENT "Generating API documentation with Doxygen" VERBATIM
|
||||
)
|
||||
else(DOXYGEN_FOUND)
|
||||
message(STATUS "No doxygen package found")
|
||||
endif(DOXYGEN_FOUND)
|
||||
|
||||
|
||||
|
||||
set(LIBSNORE_PLUGIN_PATH ${CMAKE_INSTALL_LIBDIR}/libsnore${SNORE_SUFFIX})
|
||||
set(LIBSNORE_FULL_PLUGIN_PATH ${CMAKE_INSTALL_FULL_LIBDIR}/libsnore${SNORE_SUFFIX})
|
||||
|
||||
set(SNORE_PLUGIN_INSTALL_PATH LIBRARY DESTINATION ${LIBSNORE_PLUGIN_PATH})
|
||||
add_definitions(-DLIBSNORE_PLUGIN_PATH="${LIBSNORE_FULL_PLUGIN_PATH}" -DSNORE_SUFFIX="${SNORE_SUFFIX}")
|
||||
message(STATUS "Installing plugins to ${LIBSNORE_PLUGIN_PATH}")
|
||||
|
||||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
||||
|
||||
|
||||
add_subdirectory(data)
|
||||
add_subdirectory(share)
|
||||
add_subdirectory(src)
|
||||
|
||||
|
||||
project( SnoreNotify )
|
||||
cmake_minimum_required( VERSION 2.8.9 )
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake/modules ${CMAKE_PREFIX_PATH}/share/apps/cmake/modules)
|
||||
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
cmake_policy(SET CMP0020 NEW)
|
||||
|
||||
include(GNUInstallDirs)
|
||||
include(CMakeDependentOption)
|
||||
|
||||
|
||||
#######################################################################
|
||||
option(WITH_FRONTENDS "Build frontends currently only useful if WITH_SNORE_DEAMON=ON" OFF)
|
||||
option(WITH_GROWL_BACKEND "Build the Growl backend" ON)
|
||||
option(WITH_SNORE_DEAMON "Build the Snore deamon, which redirects notifications" OFF)
|
||||
option(WITH_QT4 "Use Qt4" ON)
|
||||
cmake_dependent_option(WITH_KDE "Try to build with KDE support if availibe" ON "NOT WITH_QT4" OFF)
|
||||
cmake_dependent_option(WITH_FREEDESKTOP_FRONTEND "Build the freedesktop frontend" OFF "WITH_SNORE_DEAMON" ON)
|
||||
#######################################################################
|
||||
|
||||
set(SNORE_VERSION_MAJOR 0)
|
||||
set(SNORE_VERSION_MINOR 5)
|
||||
set(SNORE_VERSION_SUFFIX "alpha1")
|
||||
|
||||
if(WITH_KDE)
|
||||
find_package(KDE4)
|
||||
endif()
|
||||
|
||||
set(SNORE_SUFFIX "")
|
||||
set(SNORE_CamelCase_SUFFIX "")
|
||||
if(KDE4_FOUND)
|
||||
add_definitions(-DHAVE_KDE ${KDE4_DEFINITIONS} -D_UNICODE)
|
||||
include_directories(${KDE4_INCLUDES})
|
||||
else()
|
||||
if(WITH_QT4)
|
||||
find_package(Qt4 REQUIRED)
|
||||
else()
|
||||
find_package(Qt5Core REQUIRED)
|
||||
find_package(Qt5Widgets REQUIRED)
|
||||
find_package(Qt5Network REQUIRED)
|
||||
find_package(Qt5DBus QUIET)
|
||||
find_package(Qt5Declarative REQUIRED)
|
||||
include(ECMQt4To5Porting)
|
||||
set(SNORE_SUFFIX "-qt5")
|
||||
set(SNORE_CamelCase_SUFFIX "Qt5")
|
||||
endif()
|
||||
include_directories( ${QT_INCLUDES} )
|
||||
include(NoKDE)
|
||||
endif()
|
||||
|
||||
|
||||
find_package( CryptoPP )
|
||||
find_package( Boost COMPONENTS system thread)
|
||||
|
||||
find_package(Doxygen)
|
||||
|
||||
if(DOXYGEN_FOUND)
|
||||
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in" "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile" @only)
|
||||
|
||||
add_custom_target(doc
|
||||
${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
|
||||
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
|
||||
COMMENT "Generating API documentation with Doxygen" VERBATIM
|
||||
)
|
||||
else(DOXYGEN_FOUND)
|
||||
message(STATUS "No doxygen package found")
|
||||
endif(DOXYGEN_FOUND)
|
||||
|
||||
|
||||
|
||||
set(LIBSNORE_PLUGIN_PATH ${CMAKE_INSTALL_LIBDIR}/libsnore${SNORE_SUFFIX})
|
||||
set(LIBSNORE_FULL_PLUGIN_PATH ${CMAKE_INSTALL_FULL_LIBDIR}/libsnore${SNORE_SUFFIX})
|
||||
|
||||
set(SNORE_PLUGIN_INSTALL_PATH LIBRARY DESTINATION ${LIBSNORE_PLUGIN_PATH})
|
||||
add_definitions(-DLIBSNORE_PLUGIN_PATH="${LIBSNORE_FULL_PLUGIN_PATH}" -DSNORE_SUFFIX="${SNORE_SUFFIX}")
|
||||
message(STATUS "Installing plugins to ${LIBSNORE_PLUGIN_PATH}")
|
||||
|
||||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
||||
|
||||
|
||||
add_subdirectory(data)
|
||||
add_subdirectory(share)
|
||||
add_subdirectory(src)
|
||||
|
||||
|
||||
|
|
4598
Doxyfile.in
4598
Doxyfile.in
File diff suppressed because it is too large
Load Diff
48
README.md
48
README.md
|
@ -10,28 +10,28 @@ Using a plugin system it is possible to create notifications with many different
|
|||
|
||||
[ ![Windows 8 Notification](http://winkde.org/~pvonreth/other/snore/img/Thumbnail%20Pictures/win8_high.jpg) ](http://winkde.org/~pvonreth/other/snore/img/win8.png)
|
||||
|
||||
- [Growl for Windows](http://www.growlforwindows.com/)
|
||||
|
||||
[![Growl for Windows Notification](http://winkde.org/~pvonreth/other/snore/img/Thumbnail%20Pictures/growl_high.jpg)](http://winkde.org/~pvonreth/other/snore/img/growl.png)
|
||||
|
||||
- [Snarl](http://snarl.fullphat.net/)
|
||||
|
||||
[![Snarl Notification](http://winkde.org/~pvonreth/other/snore/img/Thumbnail%20Pictures/snarl_high.jpg)](http://winkde.org/~pvonreth/other/snore/img/snarl.png)
|
||||
|
||||
- Free Desktop Notifications
|
||||
|
||||
[![Free Desktop Notification](http://winkde.org/~pvonreth/other/snore/img/Thumbnail%20Pictures/fd_high.jpg)](http://winkde.org/~pvonreth/other/snore/img/fd.png)
|
||||
|
||||
- Integrated notifications
|
||||
|
||||
[![Snore Notification](http://winkde.org/~pvonreth/other/snore/img/Thumbnail%20Pictures/snore-xp_high.jpg)](http://winkde.org/~pvonreth/other/snore/img/snore-xp.png)
|
||||
|
||||
- System Tray
|
||||
|
||||
[![System Tray Notification](http://winkde.org/~pvonreth/other/snore/img/Thumbnail%20Pictures/tray_high.jpg)](http://winkde.org/~pvonreth/other/snore/img/tray.png)
|
||||
|
||||
## Projects using Snore ##
|
||||
[Quassel IRC](http://www.quassel-irc.org/)
|
||||
|
||||
## API Doc ##
|
||||
- [Growl for Windows](http://www.growlforwindows.com/)
|
||||
|
||||
[![Growl for Windows Notification](http://winkde.org/~pvonreth/other/snore/img/Thumbnail%20Pictures/growl_high.jpg)](http://winkde.org/~pvonreth/other/snore/img/growl.png)
|
||||
|
||||
- [Snarl](http://snarl.fullphat.net/)
|
||||
|
||||
[![Snarl Notification](http://winkde.org/~pvonreth/other/snore/img/Thumbnail%20Pictures/snarl_high.jpg)](http://winkde.org/~pvonreth/other/snore/img/snarl.png)
|
||||
|
||||
- Free Desktop Notifications
|
||||
|
||||
[![Free Desktop Notification](http://winkde.org/~pvonreth/other/snore/img/Thumbnail%20Pictures/fd_high.jpg)](http://winkde.org/~pvonreth/other/snore/img/fd.png)
|
||||
|
||||
- Integrated notifications
|
||||
|
||||
[![Snore Notification](http://winkde.org/~pvonreth/other/snore/img/Thumbnail%20Pictures/snore-xp_high.jpg)](http://winkde.org/~pvonreth/other/snore/img/snore-xp.png)
|
||||
|
||||
- System Tray
|
||||
|
||||
[![System Tray Notification](http://winkde.org/~pvonreth/other/snore/img/Thumbnail%20Pictures/tray_high.jpg)](http://winkde.org/~pvonreth/other/snore/img/tray.png)
|
||||
|
||||
## Projects using Snore ##
|
||||
[Quassel IRC](http://www.quassel-irc.org/)
|
||||
|
||||
## API Doc ##
|
||||
[A documentation of the API can be found here](http://winkde.org/~pvonreth/other/snore/doc/html/index.html)
|
|
@ -1,115 +1,115 @@
|
|||
# Module for locating the CryptoPP encryption library.
|
||||
#
|
||||
# Cutomizable variables:
|
||||
# CRYPTOPP_ROOT_DIR
|
||||
# This variable points to the CryptoPP root directory. On Windows the
|
||||
# library location typically will have to be provided explicitly using the
|
||||
# -D command-line option. The directory should include the include/cryptopp,
|
||||
# lib and/or bin sub-directories.
|
||||
#
|
||||
# Read-Only variables:
|
||||
# CRYPTOPP_FOUND
|
||||
# Indicates whether the library has been found.
|
||||
#
|
||||
# CRYPTOPP_INCLUDE_DIRS
|
||||
# Points to the CryptoPP include directory.
|
||||
#
|
||||
# CRYPTOPP_LIBRARIES
|
||||
# Points to the CryptoPP libraries that should be passed to
|
||||
# target_link_libararies.
|
||||
#
|
||||
#
|
||||
# Copyright (c) 2010, 2011 Sergiu Dotenco
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
# of this software and associated documentation files (the "Software"), to deal
|
||||
# in the Software without restriction, including without limitation the rights
|
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
# copies of the Software, and to permit persons to whom the Software is
|
||||
# furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice shall be included in all
|
||||
# copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
# SOFTWARE.
|
||||
|
||||
INCLUDE (FindPackageHandleStandardArgs)
|
||||
|
||||
SET (_CRYPTOPP_POSSIBLE_DIRS ${CRYPTOPP_ROOT_DIR})
|
||||
SET (_CRYPTOPP_POSSIBLE_INCLUDE_SUFFIXES include)
|
||||
SET (_CRYPTOPP_POSSIBLE_LIB_SUFFIXES lib)
|
||||
|
||||
FIND_PATH (CRYPTOPP_ROOT_DIR
|
||||
NAMES include/cryptopp/cryptlib.h
|
||||
PATHS ${_CRYPTOPP_POSSIBLE_DIRS}
|
||||
DOC "CryptoPP root directory")
|
||||
|
||||
# Re-use the previous path:
|
||||
FIND_PATH (CRYPTOPP_INCLUDE_DIR
|
||||
NAMES cryptopp/cryptlib.h
|
||||
PATHS ${CRYPTOPP_ROOT_DIR}
|
||||
PATH_SUFFIXES ${_CRYPTOPP_POSSIBLE_INCLUDE_SUFFIXES}
|
||||
DOC "CryptoPP include directory")
|
||||
|
||||
FIND_LIBRARY (CRYPTOPP_LIBRARY_DEBUG
|
||||
NAMES cryptlibd cryptoppd
|
||||
PATHS ${CRYPTOPP_ROOT_DIR}
|
||||
PATH_SUFFIXES ${_CRYPTOPP_POSSIBLE_LIB_SUFFIXES}
|
||||
DOC "CryptoPP debug library")
|
||||
|
||||
FIND_LIBRARY (CRYPTOPP_LIBRARY_RELEASE
|
||||
NAMES cryptlib cryptopp
|
||||
PATHS ${CRYPTOPP_ROOT_DIR}
|
||||
PATH_SUFFIXES ${_CRYPTOPP_POSSIBLE_LIB_SUFFIXES}
|
||||
DOC "CryptoPP release library")
|
||||
|
||||
MARK_AS_ADVANCED (CRYPTOPP_LIBRARY_DEBUG CRYPTOPP_LIBRARY_RELEASE)
|
||||
|
||||
IF (NOT DEFINED CRYPTOPP_LIBRARIES)
|
||||
IF (CRYPTOPP_LIBRARY_DEBUG AND CRYPTOPP_LIBRARY_RELEASE)
|
||||
SET (CRYPTOPP_LIBRARIES
|
||||
optimized ${CRYPTOPP_LIBRARY_RELEASE}
|
||||
debug ${CRYPTOPP_LIBRARY_DEBUG})
|
||||
ELSEIF (CRYPTOPP_LIBRARY_RELEASE)
|
||||
SET (CRYPTOPP_LIBRARIES ${CRYPTOPP_LIBRARY_RELEASE})
|
||||
ELSEIF (CRYPTOPP_LIBRARY_DEBUG)
|
||||
SET (CRYPTOPP_LIBRARIES ${CRYPTOPP_LIBRARY_DEBUG})
|
||||
ENDIF (CRYPTOPP_LIBRARY_DEBUG AND CRYPTOPP_LIBRARY_RELEASE)
|
||||
ENDIF (NOT DEFINED CRYPTOPP_LIBRARIES)
|
||||
|
||||
IF (CRYPTOPP_INCLUDE_DIR)
|
||||
SET (CRYPTOPP_INCLUDE_DIRS ${CRYPTOPP_INCLUDE_DIR})
|
||||
|
||||
SET (_CRYPTOPP_VERSION_HEADER ${CRYPTOPP_INCLUDE_DIR}/cryptopp/config.h)
|
||||
|
||||
IF (EXISTS ${_CRYPTOPP_VERSION_HEADER})
|
||||
FILE (STRINGS ${_CRYPTOPP_VERSION_HEADER} _CRYPTOPP_VERSION_TMP REGEX
|
||||
"^#define CRYPTOPP_VERSION[ \t]+[0-9]+$")
|
||||
|
||||
STRING (REGEX REPLACE
|
||||
"^#define CRYPTOPP_VERSION[ \t]+([0-9]+)" "\\1" _CRYPTOPP_VERSION_TMP
|
||||
${_CRYPTOPP_VERSION_TMP})
|
||||
|
||||
STRING (REGEX REPLACE "([0-9]+)[0-9][0-9]" "\\1" CRYPTOPP_VERSION_MAJOR
|
||||
${_CRYPTOPP_VERSION_TMP})
|
||||
STRING (REGEX REPLACE "[0-9]([0-9])[0-9]" "\\1" CRYPTOPP_VERSION_MINOR
|
||||
${_CRYPTOPP_VERSION_TMP})
|
||||
STRING (REGEX REPLACE "[0-9][0-9]([0-9])" "\\1" CRYPTOPP_VERSION_PATCH
|
||||
${_CRYPTOPP_VERSION_TMP})
|
||||
|
||||
SET (CRYPTOPP_VERSION_COUNT 3)
|
||||
SET (CRYPTOPP_VERSION
|
||||
${CRYPTOPP_VERSION_MAJOR}.${CRYPTOPP_VERSION_MINOR}.${CRYPTOPP_VERSION_PATCH})
|
||||
ENDIF (EXISTS ${_CRYPTOPP_VERSION_HEADER})
|
||||
ENDIF (CRYPTOPP_INCLUDE_DIR)
|
||||
|
||||
MARK_AS_ADVANCED (CRYPTOPP_INCLUDE_DIR)
|
||||
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS (CryptoPP REQUIRED_VARS CRYPTOPP_INCLUDE_DIRS
|
||||
CRYPTOPP_LIBRARIES VERSION_VAR CRYPTOPP_VERSION)
|
||||
# Module for locating the CryptoPP encryption library.
|
||||
#
|
||||
# Cutomizable variables:
|
||||
# CRYPTOPP_ROOT_DIR
|
||||
# This variable points to the CryptoPP root directory. On Windows the
|
||||
# library location typically will have to be provided explicitly using the
|
||||
# -D command-line option. The directory should include the include/cryptopp,
|
||||
# lib and/or bin sub-directories.
|
||||
#
|
||||
# Read-Only variables:
|
||||
# CRYPTOPP_FOUND
|
||||
# Indicates whether the library has been found.
|
||||
#
|
||||
# CRYPTOPP_INCLUDE_DIRS
|
||||
# Points to the CryptoPP include directory.
|
||||
#
|
||||
# CRYPTOPP_LIBRARIES
|
||||
# Points to the CryptoPP libraries that should be passed to
|
||||
# target_link_libararies.
|
||||
#
|
||||
#
|
||||
# Copyright (c) 2010, 2011 Sergiu Dotenco
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
# of this software and associated documentation files (the "Software"), to deal
|
||||
# in the Software without restriction, including without limitation the rights
|
||||
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
# copies of the Software, and to permit persons to whom the Software is
|
||||
# furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice shall be included in all
|
||||
# copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
# SOFTWARE.
|
||||
|
||||
INCLUDE (FindPackageHandleStandardArgs)
|
||||
|
||||
SET (_CRYPTOPP_POSSIBLE_DIRS ${CRYPTOPP_ROOT_DIR})
|
||||
SET (_CRYPTOPP_POSSIBLE_INCLUDE_SUFFIXES include)
|
||||
SET (_CRYPTOPP_POSSIBLE_LIB_SUFFIXES lib)
|
||||
|
||||
FIND_PATH (CRYPTOPP_ROOT_DIR
|
||||
NAMES include/cryptopp/cryptlib.h
|
||||
PATHS ${_CRYPTOPP_POSSIBLE_DIRS}
|
||||
DOC "CryptoPP root directory")
|
||||
|
||||
# Re-use the previous path:
|
||||
FIND_PATH (CRYPTOPP_INCLUDE_DIR
|
||||
NAMES cryptopp/cryptlib.h
|
||||
PATHS ${CRYPTOPP_ROOT_DIR}
|
||||
PATH_SUFFIXES ${_CRYPTOPP_POSSIBLE_INCLUDE_SUFFIXES}
|
||||
DOC "CryptoPP include directory")
|
||||
|
||||
FIND_LIBRARY (CRYPTOPP_LIBRARY_DEBUG
|
||||
NAMES cryptlibd cryptoppd
|
||||
PATHS ${CRYPTOPP_ROOT_DIR}
|
||||
PATH_SUFFIXES ${_CRYPTOPP_POSSIBLE_LIB_SUFFIXES}
|
||||
DOC "CryptoPP debug library")
|
||||
|
||||
FIND_LIBRARY (CRYPTOPP_LIBRARY_RELEASE
|
||||
NAMES cryptlib cryptopp
|
||||
PATHS ${CRYPTOPP_ROOT_DIR}
|
||||
PATH_SUFFIXES ${_CRYPTOPP_POSSIBLE_LIB_SUFFIXES}
|
||||
DOC "CryptoPP release library")
|
||||
|
||||
MARK_AS_ADVANCED (CRYPTOPP_LIBRARY_DEBUG CRYPTOPP_LIBRARY_RELEASE)
|
||||
|
||||
IF (NOT DEFINED CRYPTOPP_LIBRARIES)
|
||||
IF (CRYPTOPP_LIBRARY_DEBUG AND CRYPTOPP_LIBRARY_RELEASE)
|
||||
SET (CRYPTOPP_LIBRARIES
|
||||
optimized ${CRYPTOPP_LIBRARY_RELEASE}
|
||||
debug ${CRYPTOPP_LIBRARY_DEBUG})
|
||||
ELSEIF (CRYPTOPP_LIBRARY_RELEASE)
|
||||
SET (CRYPTOPP_LIBRARIES ${CRYPTOPP_LIBRARY_RELEASE})
|
||||
ELSEIF (CRYPTOPP_LIBRARY_DEBUG)
|
||||
SET (CRYPTOPP_LIBRARIES ${CRYPTOPP_LIBRARY_DEBUG})
|
||||
ENDIF (CRYPTOPP_LIBRARY_DEBUG AND CRYPTOPP_LIBRARY_RELEASE)
|
||||
ENDIF (NOT DEFINED CRYPTOPP_LIBRARIES)
|
||||
|
||||
IF (CRYPTOPP_INCLUDE_DIR)
|
||||
SET (CRYPTOPP_INCLUDE_DIRS ${CRYPTOPP_INCLUDE_DIR})
|
||||
|
||||
SET (_CRYPTOPP_VERSION_HEADER ${CRYPTOPP_INCLUDE_DIR}/cryptopp/config.h)
|
||||
|
||||
IF (EXISTS ${_CRYPTOPP_VERSION_HEADER})
|
||||
FILE (STRINGS ${_CRYPTOPP_VERSION_HEADER} _CRYPTOPP_VERSION_TMP REGEX
|
||||
"^#define CRYPTOPP_VERSION[ \t]+[0-9]+$")
|
||||
|
||||
STRING (REGEX REPLACE
|
||||
"^#define CRYPTOPP_VERSION[ \t]+([0-9]+)" "\\1" _CRYPTOPP_VERSION_TMP
|
||||
${_CRYPTOPP_VERSION_TMP})
|
||||
|
||||
STRING (REGEX REPLACE "([0-9]+)[0-9][0-9]" "\\1" CRYPTOPP_VERSION_MAJOR
|
||||
${_CRYPTOPP_VERSION_TMP})
|
||||
STRING (REGEX REPLACE "[0-9]([0-9])[0-9]" "\\1" CRYPTOPP_VERSION_MINOR
|
||||
${_CRYPTOPP_VERSION_TMP})
|
||||
STRING (REGEX REPLACE "[0-9][0-9]([0-9])" "\\1" CRYPTOPP_VERSION_PATCH
|
||||
${_CRYPTOPP_VERSION_TMP})
|
||||
|
||||
SET (CRYPTOPP_VERSION_COUNT 3)
|
||||
SET (CRYPTOPP_VERSION
|
||||
${CRYPTOPP_VERSION_MAJOR}.${CRYPTOPP_VERSION_MINOR}.${CRYPTOPP_VERSION_PATCH})
|
||||
ENDIF (EXISTS ${_CRYPTOPP_VERSION_HEADER})
|
||||
ENDIF (CRYPTOPP_INCLUDE_DIR)
|
||||
|
||||
MARK_AS_ADVANCED (CRYPTOPP_INCLUDE_DIR)
|
||||
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS (CryptoPP REQUIRED_VARS CRYPTOPP_INCLUDE_DIRS
|
||||
CRYPTOPP_LIBRARIES VERSION_VAR CRYPTOPP_VERSION)
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
BIN
data/snore.png
BIN
data/snore.png
Binary file not shown.
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Binary file not shown.
|
@ -1,20 +1,20 @@
|
|||
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
|
||||
add_subdirectory(core)
|
||||
|
||||
if(WITH_SNORE_DEAMON)
|
||||
|
||||
add_executable( snorenotify WIN32 main.cpp snorenotify.cpp trayicon.cpp ${SNORENOTIFY_DEAMON_DEPS})
|
||||
target_link_libraries( snorenotify snorecore ${QT_QTGUI_LIBRARY} )
|
||||
|
||||
if(KDE4_FOUND)
|
||||
target_link_libraries( snorenotify ${KDE4_KDEUI_LIBS} )
|
||||
endif(KDE4_FOUND)
|
||||
|
||||
add_dependencies(snorenotify snorecore)
|
||||
|
||||
install(TARGETS snorenotify RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib)
|
||||
endif()
|
||||
|
||||
add_subdirectory(plugins)
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
|
||||
add_subdirectory(core)
|
||||
|
||||
if(WITH_SNORE_DEAMON)
|
||||
|
||||
add_executable( snorenotify WIN32 main.cpp snorenotify.cpp trayicon.cpp ${SNORENOTIFY_DEAMON_DEPS})
|
||||
target_link_libraries( snorenotify snorecore ${QT_QTGUI_LIBRARY} )
|
||||
|
||||
if(KDE4_FOUND)
|
||||
target_link_libraries( snorenotify ${KDE4_KDEUI_LIBS} )
|
||||
endif(KDE4_FOUND)
|
||||
|
||||
add_dependencies(snorenotify snorecore)
|
||||
|
||||
install(TARGETS snorenotify RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib)
|
||||
endif()
|
||||
|
||||
add_subdirectory(plugins)
|
||||
|
|
|
@ -1,50 +1,50 @@
|
|||
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
include(GetGitRevisionDescription)
|
||||
|
||||
|
||||
get_git_head_revision(GIT_REFSPEC SNORE_REVISION)
|
||||
|
||||
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/version.cpp.in" "${CMAKE_CURRENT_BINARY_DIR}/version.cpp")
|
||||
|
||||
QT4_ADD_RESOURCES(SNORENOTIFY_RCS ${SNORE_RCS})
|
||||
|
||||
add_subdirectory(notification)
|
||||
add_subdirectory(plugins)
|
||||
|
||||
set ( SnoreNotify_SRCS ${SnoreNotify_SRCS}
|
||||
snore.cpp
|
||||
snore_p.cpp
|
||||
application.cpp
|
||||
application_p.cpp
|
||||
alert.cpp
|
||||
alert_p.cpp
|
||||
hint.cpp
|
||||
log.cpp
|
||||
${CMAKE_CURRENT_BINARY_DIR}/version.cpp
|
||||
${SNORENOTIFY_RCS}
|
||||
)
|
||||
|
||||
set ( SnoreNotify_HDR ${SnoreNotify_HDR}
|
||||
snore.h
|
||||
snore_p.h
|
||||
application.h
|
||||
alert.h
|
||||
hint.h
|
||||
log.h
|
||||
snore_exports.h
|
||||
version.h
|
||||
)
|
||||
|
||||
add_library( snorecore SHARED ${SnoreNotify_SRCS})
|
||||
set_target_properties( snorecore PROPERTIES OUTPUT_NAME "snore${SNORE_SUFFIX}" DEFINE_SYMBOL "SNORECORE_DLL" )
|
||||
target_link_libraries ( snorecore ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTNETWORK_LIBRARY} )
|
||||
|
||||
|
||||
install(TARGETS snorecore RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib)
|
||||
|
||||
install(FILES ${SnoreNotify_HDR} DESTINATION include/snore/core)
|
||||
|
||||
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
include(GetGitRevisionDescription)
|
||||
|
||||
|
||||
get_git_head_revision(GIT_REFSPEC SNORE_REVISION)
|
||||
|
||||
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/version.cpp.in" "${CMAKE_CURRENT_BINARY_DIR}/version.cpp")
|
||||
|
||||
QT4_ADD_RESOURCES(SNORENOTIFY_RCS ${SNORE_RCS})
|
||||
|
||||
add_subdirectory(notification)
|
||||
add_subdirectory(plugins)
|
||||
|
||||
set ( SnoreNotify_SRCS ${SnoreNotify_SRCS}
|
||||
snore.cpp
|
||||
snore_p.cpp
|
||||
application.cpp
|
||||
application_p.cpp
|
||||
alert.cpp
|
||||
alert_p.cpp
|
||||
hint.cpp
|
||||
log.cpp
|
||||
${CMAKE_CURRENT_BINARY_DIR}/version.cpp
|
||||
${SNORENOTIFY_RCS}
|
||||
)
|
||||
|
||||
set ( SnoreNotify_HDR ${SnoreNotify_HDR}
|
||||
snore.h
|
||||
snore_p.h
|
||||
application.h
|
||||
alert.h
|
||||
hint.h
|
||||
log.h
|
||||
snore_exports.h
|
||||
version.h
|
||||
)
|
||||
|
||||
add_library( snorecore SHARED ${SnoreNotify_SRCS})
|
||||
set_target_properties( snorecore PROPERTIES OUTPUT_NAME "snore${SNORE_SUFFIX}" DEFINE_SYMBOL "SNORECORE_DLL" )
|
||||
target_link_libraries ( snorecore ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTNETWORK_LIBRARY} )
|
||||
|
||||
|
||||
install(TARGETS snorecore RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
ARCHIVE DESTINATION lib)
|
||||
|
||||
install(FILES ${SnoreNotify_HDR} DESTINATION include/snore/core)
|
||||
|
||||
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
set ( SnoreNotify_SRCS ${SnoreNotify_SRCS}
|
||||
notification/notification.cpp
|
||||
notification/notification_p.cpp
|
||||
notification/notificationaction.cpp
|
||||
notification/icon.cpp
|
||||
notification/icon_p.cpp
|
||||
PARENT_SCOPE)
|
||||
|
||||
set ( Notification_HDR
|
||||
notification.h
|
||||
notification_p.h
|
||||
notificationaction.h
|
||||
icon.h
|
||||
)
|
||||
|
||||
install(FILES ${Notification_HDR} DESTINATION include/snore/core/notification)
|
||||
|
||||
|
||||
|
||||
|
||||
set ( SnoreNotify_SRCS ${SnoreNotify_SRCS}
|
||||
notification/notification.cpp
|
||||
notification/notification_p.cpp
|
||||
notification/notificationaction.cpp
|
||||
notification/icon.cpp
|
||||
notification/icon_p.cpp
|
||||
PARENT_SCOPE)
|
||||
|
||||
set ( Notification_HDR
|
||||
notification.h
|
||||
notification_p.h
|
||||
notificationaction.h
|
||||
icon.h
|
||||
)
|
||||
|
||||
install(FILES ${Notification_HDR} DESTINATION include/snore/core/notification)
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
set ( SnoreNotify_SRCS ${SnoreNotify_SRCS}
|
||||
plugins/plugincontainer.cpp
|
||||
plugins/plugins.cpp
|
||||
plugins/snorefrontend.cpp
|
||||
plugins/snorebackend.cpp
|
||||
PARENT_SCOPE)
|
||||
|
||||
set ( Plugins_HDR
|
||||
plugins.h
|
||||
snorefrontend.h
|
||||
snorebackend.h
|
||||
)
|
||||
|
||||
install(FILES ${Plugins_HDR} DESTINATION include/snore/core/plugins)
|
||||
|
||||
|
||||
|
||||
|
||||
set ( SnoreNotify_SRCS ${SnoreNotify_SRCS}
|
||||
plugins/plugincontainer.cpp
|
||||
plugins/plugins.cpp
|
||||
plugins/snorefrontend.cpp
|
||||
plugins/snorebackend.cpp
|
||||
PARENT_SCOPE)
|
||||
|
||||
set ( Plugins_HDR
|
||||
plugins.h
|
||||
snorefrontend.h
|
||||
snorebackend.h
|
||||
)
|
||||
|
||||
install(FILES ${Plugins_HDR} DESTINATION include/snore/core/plugins)
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,29 +1,29 @@
|
|||
#include "version.h"
|
||||
|
||||
namespace Snore{
|
||||
|
||||
const QString Version::version()
|
||||
{
|
||||
return QLatin1String("${SNORE_VERSION_MAJOR}.${SNORE_VERSION_MINOR}${SNORE_VERSION_SUFFIX}");
|
||||
}
|
||||
|
||||
const QString Version::major(){
|
||||
return QLatin1String("${SNORE_VERSION_MAJOR}");
|
||||
}
|
||||
|
||||
const QString Version::minor(){
|
||||
return QLatin1String("${SNORE_VERSION_MINOR}");
|
||||
}
|
||||
const QString Version::suffix(){
|
||||
return QLatin1String("${SNORE_VERSION_SUFFIX}");
|
||||
}
|
||||
|
||||
const QString Version::revision(){
|
||||
return QLatin1String("${SNORE_VERSION_MAJOR}.${SNORE_VERSION_MINOR}${SNORE_VERSION_SUFFIX}-${SNORE_REVISION}");
|
||||
}
|
||||
|
||||
const QString Version::buildTime(){
|
||||
return QLatin1String(__TIMESTAMP__);
|
||||
}
|
||||
|
||||
}
|
||||
#include "version.h"
|
||||
|
||||
namespace Snore{
|
||||
|
||||
const QString Version::version()
|
||||
{
|
||||
return QLatin1String("${SNORE_VERSION_MAJOR}.${SNORE_VERSION_MINOR}${SNORE_VERSION_SUFFIX}");
|
||||
}
|
||||
|
||||
const QString Version::major(){
|
||||
return QLatin1String("${SNORE_VERSION_MAJOR}");
|
||||
}
|
||||
|
||||
const QString Version::minor(){
|
||||
return QLatin1String("${SNORE_VERSION_MINOR}");
|
||||
}
|
||||
const QString Version::suffix(){
|
||||
return QLatin1String("${SNORE_VERSION_SUFFIX}");
|
||||
}
|
||||
|
||||
const QString Version::revision(){
|
||||
return QLatin1String("${SNORE_VERSION_MAJOR}.${SNORE_VERSION_MINOR}${SNORE_VERSION_SUFFIX}-${SNORE_REVISION}");
|
||||
}
|
||||
|
||||
const QString Version::buildTime(){
|
||||
return QLatin1String(__TIMESTAMP__);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 724 B After Width: | Height: | Size: 725 B |
|
@ -1,8 +1,8 @@
|
|||
set( SNARL_NETWORK_SRC
|
||||
snarlnetwork.cpp
|
||||
parser.cpp
|
||||
)
|
||||
add_library(libsnore_frontend_snarlnetwork MODULE ${SNARL_NETWORK_SRC} )
|
||||
target_link_libraries(libsnore_frontend_snarlnetwork snorecore ${QT_QTNETWORK_LIBRARY} )
|
||||
|
||||
install(TARGETS libsnore_frontend_snarlnetwork ${SNORE_PLUGIN_INSTALL_PATH})
|
||||
set( SNARL_NETWORK_SRC
|
||||
snarlnetwork.cpp
|
||||
parser.cpp
|
||||
)
|
||||
add_library(libsnore_frontend_snarlnetwork MODULE ${SNARL_NETWORK_SRC} )
|
||||
target_link_libraries(libsnore_frontend_snarlnetwork snorecore ${QT_QTNETWORK_LIBRARY} )
|
||||
|
||||
install(TARGETS libsnore_frontend_snarlnetwork ${SNORE_PLUGIN_INSTALL_PATH})
|
||||
|
|
Loading…
Reference in New Issue