Skip to content

Commit

Permalink
Merged a few subprojects into a single one -- plasma-vault
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-cukic committed Feb 1, 2017
0 parents commit ae067a5
Show file tree
Hide file tree
Showing 40 changed files with 4,373 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .gitignore
@@ -0,0 +1,18 @@
.debug
tags
_tests
.videproject/ctags
*swp
*~
.kdev4
.cmake-params
.ycm_extra_conf.py
.ycm_extra_conf.pyc
.clang_complete
kactivities.kdev4
compile_commands.json
/apidocs
GPATH
GRTAGS
GSYMS
GTAGS
29 changes: 29 additions & 0 deletions .vim-template:cpp
@@ -0,0 +1,29 @@
/*
* Copyright (C) %YEAR% %USER% <%MAIL%>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) version 3, or any
* later version accepted by the membership of KDE e.V. (or its
* successor approved by the membership of KDE e.V.), which shall
* act as a proxy defined in Section 6 of version 3 of the license.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
* If not, see <http://www.gnu.org/licenses/>.
*/

#include "%FILE%.h"

namespace KActivities {

%HERE%

} // namespace KActivities

32 changes: 32 additions & 0 deletions .vim-template:h
@@ -0,0 +1,32 @@
/*
* Copyright (C) %YEAR% %USER% <%MAIL%>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) version 3, or any
* later version accepted by the membership of KDE e.V. (or its
* successor approved by the membership of KDE e.V.), which shall
* act as a proxy defined in Section 6 of version 3 of the license.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
* If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef KACTIVITIES_STATS_%GUARD%
#define KACTIVITIES_STATS_%GUARD%

namespace KActivities {

%HERE%

} // namespace KActivities

#endif // KACTIVITIES_STATS_%GUARD%

123 changes: 123 additions & 0 deletions CMakeLists.txt
@@ -0,0 +1,123 @@
# vim:set softtabstop=3 shiftwidth=3 tabstop=3 expandtab:

cmake_minimum_required (VERSION 2.8.11)

project (PlasmaVault)
set (PLASMAVAULT_VERSION "0.1")

set (REQUIRED_QT_VERSION 5.3.0)

# We don't build in-source
if ("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
message (
FATAL_ERROR
"plasmavault requires an out of source build. Please create a separate build directory and run 'cmake path_to_plasma [options]' there."
)
endif ()

# Extra CMake stuff
include (FeatureSummary)
find_package (ECM 5.17.0 NO_MODULE)
set_package_properties (ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake Modules." URL "https://projects.kde.org/projects/kdesupport/extra-cmake-modules")
feature_summary (WHAT REQUIRED_PACKAGES_NOT_FOUND FATAL_ON_MISSING_REQUIRED_PACKAGES)

set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})

include (KDEInstallDirs)
include (KDECMakeSettings)
include (KDECompilerSettings)
include (GenerateExportHeader)
include (ECMGenerateHeaders)

# Qt
set (CMAKE_AUTOMOC ON)
find_package (Qt5 ${REQUIRED_QT_VERSION} CONFIG REQUIRED COMPONENTS Core Widgets DBus)

# KDE Frameworks
set(KF5_VERSION "5.18.0") # handled by release scripts
set(KF5_DEP_VERSION "5.17.0") # handled by release scripts

find_package (KF5I18n ${KF5_DEP_VERSION} CONFIG REQUIRED)
find_package (KF5KIO ${KF5_DEP_VERSION} CONFIG REQUIRED)
find_package (KF5Config ${KF5_DEP_VERSION} CONFIG REQUIRED)
find_package (KF5CoreAddons ${KF5_DEP_VERSION} CONFIG REQUIRED)
find_package (KF5WidgetsAddons ${KF5_DEP_VERSION} CONFIG REQUIRED)
find_package (KF5ConfigWidgets ${KF5_DEP_VERSION} CONFIG REQUIRED)
find_package (KF5KIO ${KF5_DEP_VERSION} CONFIG REQUIRED)
find_package (KF5DBusAddons ${KF5_DEP_VERSION} CONFIG REQUIRED)
find_package (KF5AsynQt ${KF5_DEP_VERSION} CONFIG REQUIRED)
find_package (KF5Activities ${KF5_DEP_VERSION} CONFIG REQUIRED)

# message(
# " >>>>>>> ${KF5ASYNQT_INCLUDES} <<<<<<<< "
# )
# get_cmake_property(_variableNames VARIABLES)
# foreach (_variableName ${_variableNames})
# message(STATUS " ----- ${_variableName}=${${_variableName}}")
# endforeach()

include_directories (
${AsynQt_INCLUDE_DIRS}
${CMAKE_CURRENT_SOURCE_DIR}/src
${CMAKE_CURRENT_BINARY_DIR}/src
)

# Basic includes
include (CPack)

include (ECMPackageConfigHelpers)
include (ECMSetupVersion)

add_definitions (-DTRANSLATION_DOMAIN=\"plasmavault\")
add_definitions (-fexceptions)
if (IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/po")
ki18n_install (po)
endif ()

# libPlasmaVault

ecm_setup_version (
${PLASMAVAULT_VERSION}
VARIABLE_PREFIX PLASMAVAULT
VERSION_HEADER "${CMAKE_CURRENT_BINARY_DIR}/plasmavault_version.h"
PACKAGE_VERSION_FILE "${CMAKE_CURRENT_BINARY_DIR}/KF5PlasmaVaultConfigVersion.cmake"
SOVERSION 0
)

set (CMAKECONFIG_INSTALL_DIR "${KDE_INSTALL_CMAKEPACKAGEDIR}/KF5PlasmaVault")

install (
EXPORT KF5PlasmaVaultLibraryTargets
DESTINATION "${CMAKECONFIG_INSTALL_DIR}"
FILE KF5PlasmaVaultLibraryTargets.cmake
NAMESPACE KF5::
)

ecm_configure_package_config_file (
"${CMAKE_CURRENT_SOURCE_DIR}/KF5PlasmaVaultConfig.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/KF5PlasmaVaultConfig.cmake"
INSTALL_DESTINATION ${CMAKECONFIG_INSTALL_DIR}
PATH_VARS KF5_INCLUDE_INSTALL_DIR CMAKE_INSTALL_PREFIX
)

install (
FILES "${CMAKE_CURRENT_BINARY_DIR}/KF5PlasmaVaultConfig.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/KF5PlasmaVaultConfigVersion.cmake"
DESTINATION "${CMAKECONFIG_INSTALL_DIR}"
COMPONENT Devel
)

install (
FILES ${CMAKE_CURRENT_BINARY_DIR}/plasmavault_version.h
DESTINATION ${KDE_INSTALL_INCLUDEDIR_KF5} COMPONENT Devel
)

add_subdirectory (src)
add_subdirectory (kded)

add_subdirectory (autotests)
add_subdirectory (tests)

# Write out the features
feature_summary (WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES)

0 comments on commit ae067a5

Please sign in to comment.