Commit 6199b791 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Merge KDevPlatform into KDevelop

parents f4b930d8 9362447d

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

{
"phabricator.uri" : "https://phabricator.kde.org/project/profile/29/"
}
---
BasedOnStyle: WebKit
Language: Cpp
AlignAfterOpenBracket: true
AlwaysBreakTemplateDeclarations: true
AllowShortFunctionsOnASingleLine: Inline
BreakBeforeBraces: Linux
ColumnLimit: 120
Standard: Cpp11
IndentWidth: 4
TabWidth: 8
UseTab: Never
PointerAlignment: Left
SpacesInParentheses: false
SpacesInAngles: false
SpaceInEmptyParentheses: false
SpacesInCStyleCastParentheses: false
SpaceAfterControlStatementKeyword: true
SpaceBeforeAssignmentOperators: true
ContinuationIndentWidth: 4
# Only for newer clang-format versions
#MacroBlockBegin: BEGINTESTFUNCIMPL
#MacroBlockEnd: ENDTESTFUNCIMPL
...
*.desktop merge=ours
*.desktop.cmake merge=ours
# general
apidocs
.kdev4
*~
*.bak
doxygen.log
build
*.patch
*.diff
*.orig
*.rej
*.swp
massif.out.*
perf.data
perf.data.*
callgrind.out.*
.*kate-swp
# from kdiff3
*.BACKUP.*
*.BASE.*
*.LOCAL.*
*.REMOTE.*
kate: space-indent on; indent-width 4; replace-tabs on;tab-width 4; auto-insert-doxygen on;
{
"name": "KDevelop Platform"
, "files": [ { "git": 1 } ]
}
REPOSITORY = "kdevplatform"
REVIEWBOARD_URL = "https://git.reviewboard.kde.org"
TARGET_GROUPS = "kdevelop"
This diff is collapsed.
cmake_minimum_required(VERSION 3.0)
project(KDevPlatform)
# kdevplatform version
set(KDEVPLATFORM_VERSION_MAJOR 5)
set(KDEVPLATFORM_VERSION_MINOR 1)
set(KDEVPLATFORM_VERSION_PATCH 40)
set(KDEVPLATFORM_VERSION "${KDEVPLATFORM_VERSION_MAJOR}.${KDEVPLATFORM_VERSION_MINOR}.${KDEVPLATFORM_VERSION_PATCH}")
# plugin versions listed in the .desktop files
set(KDEV_PLUGIN_VERSION 29)
# Increase this to reset incompatible item-repositories
set(KDEV_ITEMREPOSITORY_VERSION 87)
# library version / SO version
set(KDEVPLATFORM_LIB_SOVERSION 10)
# we need some parts of the ECM CMake helpers
find_package (ECM "5.14.0" REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${KDevPlatform_SOURCE_DIR}/cmake/modules ${ECM_MODULE_PATH})
include(KDECompilerSettings NO_POLICY_SCOPE)
include(ECMAddTests)
include(ECMOptionalAddSubdirectory)
include(ECMInstallIcons)
include(ECMSetupVersion)
include(ECMMarkAsTest)
include(ECMMarkNonGuiExecutable)
include(ECMGenerateHeaders)
include(ECMQtDeclareLoggingCategory)
include(GenerateExportHeader)
include(FeatureSummary)
include(WriteBasicConfigVersionFile)
include(CheckFunctionExists)
include(CMakePackageConfigHelpers)
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDevPlatformMacros)
set(QT_MIN_VERSION "5.5.0")
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED Core DBus Widgets Concurrent Test)
if(BUILD_TESTING)
find_package(Qt5Test ${QT_MIN_VERSION} CONFIG REQUIRED)
endif()
find_package(Qt5QuickWidgets ${QT_MIN_VERSION} CONFIG)
set_package_properties(Qt5QuickWidgets PROPERTIES
PURPOSE "Qt5 QuickWidgets library (part of Qt >=5.3). Required for the Welcome Page plugin."
TYPE RECOMMENDED
)
set(KF5_DEP_VERSION "5.18.0") # need KAboutData::fromPluginMetaData in kcoreaddons
find_package(KF5 ${KF5_DEP_VERSION} REQUIRED COMPONENTS
Archive
Config
GuiAddons
WidgetsAddons
IconThemes
I18n
ItemModels
ItemViews
JobWidgets
KCMUtils
KIO
NewStuff
Notifications
NotifyConfig
Parts
Service
Sonnet
TextEditor
ThreadWeaver
WindowSystem
Declarative
XmlGui
)
find_package(Grantlee5 CONFIG)
set_package_properties(Grantlee5 PROPERTIES
PURPOSE "Grantlee templating library, needed for file templates"
URL "http://www.grantlee.org/"
TYPE RECOMMENDED)
set(Boost_ADDITIONAL_VERSIONS 1.39.0 1.39)
find_package(Boost 1.35.0)
set_package_properties(Boost PROPERTIES
PURPOSE "Boost libraries for enabling the classbrowser"
URL "http://www.boost.org"
TYPE REQUIRED)
add_definitions(
-DQT_DEPRECATED_WARNINGS
-DQT_DISABLE_DEPRECATED_BEFORE=0x050400
-DQT_NO_SIGNALS_SLOTS_KEYWORDS
-DQT_NO_URL_CAST_FROM_STRING
-DQT_STRICT_ITERATORS
-DQT_USE_FAST_CONCATENATION
-DQT_USE_FAST_OPERATOR_PLUS
)
function(add_compile_flag_if_supported _flag)
unset(_have_flag CACHE)
string(REGEX REPLACE "[-=]" "_" _varname ${_flag})
string(TOUPPER ${_varname} _varname)
set(_varname "HAVE${_varname}")
check_cxx_compiler_flag("${_flag}" "${_varname}")
if (${${_varname}})
add_compile_options(${_flag})
endif()
endfunction()
# Turn off missing-field-initializers warning for GCC to avoid noise from false positives with empty {}
# See discussion: http://mail.kde.org/pipermail/kdevelop-devel/2014-February/046910.html
add_compile_flag_if_supported(-Wno-missing-field-initializers)
add_compile_flag_if_supported(-Werror=undefined-bool-conversion)
add_compile_flag_if_supported(-Werror=tautological-undefined-compare)
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_flag_if_supported(-Wdocumentation)
# This warning is triggered by every call to qCDebug()
add_compile_flag_if_supported(-Wno-gnu-zero-variadic-macro-arguments)
endif()
if (CMAKE_COMPILER_CXX_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_flag_if_supported(-pedantic)
endif()
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/config-kdevplatform.h.cmake
${CMAKE_CURRENT_BINARY_DIR}/config-kdevplatform.h )
include_directories(${KDevPlatform_SOURCE_DIR} ${KDevPlatform_BINARY_DIR})
string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_TOLOWER)
if(CMAKE_BUILD_TYPE_TOLOWER MATCHES "debug"
OR CMAKE_BUILD_TYPE_TOLOWER STREQUAL "")
set(COMPILER_OPTIMIZATIONS_DISABLED TRUE)
else()
set(COMPILER_OPTIMIZATIONS_DISABLED FALSE)
endif()
add_subdirectory(sublime)
add_subdirectory(interfaces)
add_subdirectory(project)
add_subdirectory(language)
add_subdirectory(shell)
add_subdirectory(util)