Commit e9d6d68d authored by Laurent Montel's avatar Laurent Montel 😁

Allow to split blogilo

parent 8e678f56
...@@ -2,7 +2,7 @@ accountwizard ...@@ -2,7 +2,7 @@ accountwizard
agents agents
akonadiconsole (DONE) akonadiconsole (DONE)
akregator akregator
blogilo blogilo (DONE)
grantleeeditor grantleeeditor
importwizard (DONE) importwizard (DONE)
kaddressbook kaddressbook
......
project(blogilo) project(blogilo)
if(${CMAKE_SOURCE_DIR} STREQUAL ${blogilo_SOURCE_DIR})
cmake_minimum_required(VERSION 2.8.12)
find_package(ECM 5.20.0 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${blogilo_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH})
include(ECMInstallIcons)
include(ECMOptionalAddSubdirectory)
include(ECMSetupVersion)
include(ECMAddTests)
include(ECMMarkNonGuiExecutable)
include(GenerateExportHeader)
include(ECMGenerateHeaders)
include(CMakePackageConfigHelpers)
include(FeatureSummary)
include(CheckFunctionExists)
include(ECMGeneratePriFile)
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(ECMAddAppIcon)
include(ECMQtDeclareLoggingCategory)
set(KF5_VERSION "5.20.0")
set(KDEPIM_VERSION_NUMBER "5.2.42")
set(KDEPIM_VERSION "${KDEPIM_VERSION_NUMBER}${KDEPIM_DEV_VERSION}")
set(KDEPIMLIBS_LIB_VERSION "5.2.40")
set(KPIMTEXTEDIT_LIB_VERSION "5.2.40")
set(KBLOG_LIB_VERSION "5.2.40")
set(KDEPIM_LIB_VERSION "${KDEPIM_VERSION_NUMBER}")
set(KDEPIM_LIB_SOVERSION "5")
set(KDEPIM_APPS_LIB_VERSION_LIB "5.2.42")
set(QT_REQUIRED_VERSION "5.6.0")
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED Widgets Test Sql)
find_package(Qt5X11Extras NO_MODULE)
set(MAILCOMMON_LIB_VERSION_LIB "5.2.40")
set(PIMCOMMON_LIB_VERSION_LIB "5.2.40")
set(LIBKDEPIM_LIB_VERSION_LIB "5.2.40")
# Find KF5 package
find_package(KF5DBusAddons ${KF5_VERSION} CONFIG REQUIRED)
find_package(KF5DocTools REQUIRED)
find_package(KF5XmlGui ${KF5_VERSION} CONFIG REQUIRED)
find_package(KF5TextEditor ${KF5_VERSION} CONFIG REQUIRED)
find_package(KF5Wallet ${KF5_VERSION} CONFIG REQUIRED)
find_package(KF5PimCommon ${PIMCOMMON_LIB_VERSION_LIB} CONFIG REQUIRED)
# Find KdepimLibs Package
find_package(KF5Blog ${KBLOG_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5PimTextEdit ${KPIMTEXTEDIT_LIB_VERSION} CONFIG REQUIRED)
find_package(KF5Libkdepim ${LIBKDEPIM_LIB_VERSION_LIB} CONFIG REQUIRED)
option(QTWEBENGINE_SUPPORT_OPTION "Enable support for QtWebEngine. False by default." FALSE)
if (QTWEBENGINE_SUPPORT_OPTION)
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED WebEngine WebEngineWidgets)
find_package(KF5WebEngineViewer ${MESSAGELIB_LIB_VERSION_LIB} CONFIG REQUIRED)
set(WEBENGINE_TYPE "QtWebEngine")
else()
find_package(KF5ComposerEditorNG ${KDEPIM_APPS_LIB_VERSION_LIB} CONFIG REQUIRED)
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED WebKitWidgets)
find_package(KF5WebKit ${KF5_VERSION} CONFIG REQUIRED)
set(WEBENGINE_TYPE "QtWebKit")
endif()
# Extra package
find_package(KF5GAPI "4.72.0" CONFIG)
include_directories(${blogilo_SOURCE_DIR} ${blogilo_BINARY_DIR})
endif()
add_definitions( -DQT_NO_CAST_FROM_ASCII ) add_definitions( -DQT_NO_CAST_FROM_ASCII )
add_definitions( -DQT_NO_CAST_TO_ASCII ) add_definitions( -DQT_NO_CAST_TO_ASCII )
......
configure_file(blogilo-version.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/blogilo-version.h @ONLY)
configure_file(config-blogilo.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-blogilo.h )
if (KF5GAPI_FOUND) if (KF5GAPI_FOUND)
add_definitions(-DHAVE_GAPIBLOGGER_SUPPORT) add_definitions(-DHAVE_GAPIBLOGGER_SUPPORT)
endif() endif()
......
/*
Copyright (c) 1998-1999 Preston Brown <pbrown@kde.org>
Copyright (c) 2000-2004 Cornelius Schumacher <schumacher@kde.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
/*
Set the version for this kdepim release.
This version may be used by programs within this module that
do not want to maintain a version on their own.
Note that we cannot use the kdelibs version because we may
build against older kdelibs releases.
*/
#ifndef KDEPIM_VERSION_H
#define KDEPIM_VERSION_H
#define KDEPIM_VERSION "@KDEPIM_VERSION@ (@WEBENGINE_TYPE@)"
#endif
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
#define BILBOBROWSER_H #define BILBOBROWSER_H
#include <QWidget> #include <QWidget>
#include "config-kdepim.h" #include "config-blogilo.h"
class QCheckBox; class QCheckBox;
class QProgressBar; class QProgressBar;
#ifdef QTWEBENGINE_SUPPORT_OPTION #ifdef QTWEBENGINE_SUPPORT_OPTION
......
/* config-kdepim.h. Generated by cmake from config-kdepim.h.cmake */
/* Define to 1 if you have the Xlib */
#cmakedefine01 KDEPIM_HAVE_X11
#cmakedefine QTWEBENGINE_SUPPORT_OPTION 1
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#define POSTENTRY_H #define POSTENTRY_H
#include <QFrame> #include <QFrame>
#include "config-kdepim.h" #include "config-blogilo.h"
#include "bilbopost.h" #include "bilbopost.h"
class BilboMedia; class BilboMedia;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment