[SCM] ktp-common-internals packaging branch, master, updated. debian/15.12.1-2-1839-gf0635e9
Maximiliano Curia
maxy at moszumanska.debian.org
Mon May 9 09:04:41 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-common-internals.git;a=commitdiff;h=bc7df5a
The following commit has been merged in the master branch:
commit bc7df5adb69e3a5bfa5950b1d7ad962169401237
Author: Dario Freddi <dario.freddi at collabora.com>
Date: Sat Nov 19 00:15:12 2011 +0100
Add CMake magic for making the library build
---
CMakeLists.txt | 79 ++++++++++++++++++++++++++++++++++++
cmake/modules/COPYING-CMAKE-SCRIPTS | 22 ++++++++++
cmake/modules/FindTelepathyQt4.cmake | 43 ++++++++++++++++++++
models/CMakeLists.txt | 52 ++++++++++++++++++++++++
4 files changed, 196 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..a4358ef
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,79 @@
+project(telepathy-common-internals)
+
+set (CMAKE_MODULE_PATH
+ "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules"
+ ${CMAKE_MODULE_PATH}
+)
+
+set (KTELEPATHY_VERSION "0.3.0")
+# Bump for every 0.x release, or whenever BC changes
+set (KTELEPATHY_SONUMBER 0)
+
+find_package (KDE4 REQUIRED)
+find_package (TelepathyQt4 0.7.1 REQUIRED)
+
+# set some default settings
+include (KDE4Defaults)
+
+# make some more macros available
+include (MacroLibrary)
+
+add_definitions (${KDE4_DEFINITIONS}
+ -DQT_NO_CAST_FROM_ASCII
+ -DQT_NO_KEYWORDS
+)
+
+include_directories (${KDE4_INCLUDES}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TELEPATHY_QT4_INCLUDE_DIR}
+)
+
+set (telepathy_common_internals_private_SRCS
+ circular-countdown.cpp
+ error-dictionary.cpp
+ global-presence.cpp
+ presence.cpp
+ service-availability-checker.cpp
+ telepathy-handler-application.cpp
+ text-parser.cpp
+ wallet-interface.cpp
+)
+
+set (telepathy_common_internals_private_HDRS
+ circular-countdown.h
+ error-dictionary.h
+ global-presence.h
+ presence.h
+ service-availability-checker.h
+ telepathy-handler-application.h
+ text-parser.h
+ wallet-interface.h
+)
+
+kde4_add_library (telepathykdecommoninternalsprivate SHARED
+ ${telepathy_common_internals_private_SRCS}
+)
+
+#Raise SOVERSION for every 0.x cycle
+set_target_properties(telepathykdecommoninternalsprivate PROPERTIES
+ VERSION ${KTELEPATHY_VERSION}
+ SOVERSION ${KTELEPATHY_SONUMBER}
+ )
+
+target_link_libraries (telepathykdecommoninternalsprivate
+ ${KDE4_KDECORE_LIBS}
+ ${TELEPATHY_QT4_LIBRARIES}
+ ${KDE4_KDEUI_LIBS}
+)
+
+install (TARGETS telepathykdecommoninternalsprivate
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+install (FILES ${telepathy_common_internals_private_HDRS}
+ DESTINATION ${TELEPATHY_QT4_INCLUDE_DIR}/KTelepathy
+)
+
+
+add_subdirectory(models)
diff --git a/cmake/modules/COPYING-CMAKE-SCRIPTS b/cmake/modules/COPYING-CMAKE-SCRIPTS
new file mode 100644
index 0000000..4b41776
--- /dev/null
+++ b/cmake/modules/COPYING-CMAKE-SCRIPTS
@@ -0,0 +1,22 @@
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+1. Redistributions of source code must retain the copyright
+ notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+3. The name of the author may not be used to endorse or promote products
+ derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/cmake/modules/FindTelepathyQt4.cmake b/cmake/modules/FindTelepathyQt4.cmake
new file mode 100644
index 0000000..c7f8f91
--- /dev/null
+++ b/cmake/modules/FindTelepathyQt4.cmake
@@ -0,0 +1,43 @@
+# Try to find the Qt4 binding of the Telepathy library
+# TELEPATHY_QT4_FOUND - system has TelepathyQt4
+# TELEPATHY_QT4_INCLUDE_DIR - the TelepathyQt4 include directory
+# TELEPATHY_QT4_LIBRARIES - Link these to use TelepathyQt4
+
+# Copyright (c) 2008, Allen Winter <winter at kde.org>
+# Copyright (c) 2009, Andre Moreira Magalhaes <andrunko at gmail.com>
+#
+# Redistribution and use is allowed according to the terms of the BSD license.
+# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
+
+set(TELEPATHY_QT4_FIND_REQUIRED ${TelepathyQt4_FIND_REQUIRED})
+if(TELEPATHY_QT4_INCLUDE_DIR AND TELEPATHY_QT4_LIBRARIES)
+ # Already in cache, be silent
+ set(TELEPATHY_QT4_FIND_QUIETLY TRUE)
+endif(TELEPATHY_QT4_INCLUDE_DIR AND TELEPATHY_QT4_LIBRARIES)
+
+find_package(PkgConfig)
+if(PKG_CONFIG_FOUND)
+ if (TelepathyQt4_FIND_VERSION_EXACT)
+ pkg_check_modules(PC_TELEPATHY_QT4 QUIET TelepathyQt4=${TelepathyQt4_FIND_VERSION})
+ else (TelepathyQt4_FIND_VERSION_EXACT)
+ pkg_check_modules(PC_TELEPATHY_QT4 QUIET TelepathyQt4>=${TelepathyQt4_FIND_VERSION})
+ endif (TelepathyQt4_FIND_VERSION_EXACT)
+endif(PKG_CONFIG_FOUND)
+
+find_path(TELEPATHY_QT4_INCLUDE_DIR
+ NAMES TelepathyQt4/Types
+ HINTS
+ ${PC_TELEPATHY_QT4_INCLUDEDIR}
+ ${PC_TELEPATHY_QT4_INCLUDE_DIRS}
+)
+
+find_library(TELEPATHY_QT4_LIBRARIES
+ NAMES telepathy-qt4
+ HINTS
+ ${PC_TELEPATHY_QT4_LIBDIR}
+ ${PC_TELEPATHY_QT4_LIBRARY_DIRS}
+)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(TELEPATHY_QT4 DEFAULT_MSG
+ TELEPATHY_QT4_LIBRARIES TELEPATHY_QT4_INCLUDE_DIR)
diff --git a/models/CMakeLists.txt b/models/CMakeLists.txt
new file mode 100644
index 0000000..94bf8cd
--- /dev/null
+++ b/models/CMakeLists.txt
@@ -0,0 +1,52 @@
+
+include_directories (${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+)
+
+set (telepathy_models_private_SRCS
+ accounts-filter-model.cpp
+ accounts-model-item.cpp
+ accounts-model.cpp
+ contact-model-item.cpp
+ groups-model-item.cpp
+ groups-model.cpp
+ proxy-tree-node.cpp
+ tree-node.cpp
+)
+
+set (telepathy_models_private_HDRS
+ accounts-filter-model.h
+ accounts-model-item.h
+ accounts-model.h
+ contact-model-item.h
+ groups-model-item.h
+ groups-model.h
+ proxy-tree-node.h
+ tree-node.h
+)
+
+kde4_add_library (telepathykdemodelsprivate SHARED
+ ${telepathy_models_private_SRCS}
+)
+
+#Raise SOVERSION for every 0.x cycle
+set_target_properties(telepathykdemodelsprivate PROPERTIES
+ VERSION ${KTELEPATHY_VERSION}
+ SOVERSION ${KTELEPATHY_SONUMBER}
+ )
+
+target_link_libraries (telepathykdemodelsprivate
+ ${KDE4_KDECORE_LIBS}
+ ${TELEPATHY_QT4_LIBRARIES}
+ ${KDE4_KDEUI_LIBS}
+ telepathykdecommoninternalsprivate
+)
+
+install (TARGETS telepathykdemodelsprivate
+ DESTINATION ${LIB_INSTALL_DIR}
+)
+
+install (FILES ${telepathy_models_private_HDRS}
+ DESTINATION ${TELEPATHY_QT4_INCLUDE_DIR}/KTelepathy/Models
+)
+
--
ktp-common-internals packaging
More information about the pkg-kde-commits
mailing list