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

Enable this header by default only if we build entreprise mode

parent ed4a445c
......@@ -51,6 +51,9 @@ include(ECMQtDeclareLoggingCategory)
option(KDEPIMADDONS_BUILD_EXAMPLES "Build the kdepim-addons example applications." TRUE)
option(KDEPIM_ENTERPRISE_BUILD "Enable features specific to the enterprise branch, which are normally disabled. Also, it disables many components not needed for Kontact such as the Kolab client." FALSE)
find_package(Qt5 ${QT_REQUIRED_VERSION} CONFIG REQUIRED WebEngine WebEngineWidgets Widgets Test)
find_package(KF5I18n ${KF5_VERSION} CONFIG REQUIRED)
......@@ -124,6 +127,12 @@ add_definitions( -DQT_NO_CAST_TO_ASCII )
add_definitions(-DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT)
add_definitions(-DQT_NO_URL_CAST_FROM_STRING)
if(KDEPIM_ENTERPRISE_BUILD)
set(KDEPIM_ENTERPRISE_BUILD true)
else()
set(KDEPIM_ENTERPRISE_BUILD false)
endif()
# Extra package
find_package(Gpgmepp 1.8.0 CONFIG)
set_package_properties(Gpgmepp PROPERTIES DESCRIPTION "GpgME library" URL "http://www.gnupg.org" TYPE REQUIRED)
......
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/messageviewer_enterpriseheaderstyleplugin.json.cmake
${CMAKE_CURRENT_BINARY_DIR}/messageviewer_enterpriseheaderstyleplugin.json)
set(messageviewer_enterpriseheaderstyleplugin_SRCS
enterpriseheaderstyleplugin.cpp
enterpriseheaderstyleinterface.cpp
enterpriseheaderstyle.cpp
)
kcoreaddons_add_plugin(messageviewer_enterpriseheaderstyleplugin JSON messageviewer_enterpriseheaderstyleplugin.json SOURCES
kcoreaddons_add_plugin(messageviewer_enterpriseheaderstyleplugin JSON ${CMAKE_CURRENT_BINARY_DIR}/messageviewer_enterpriseheaderstyleplugin.json SOURCES
${messageviewer_enterpriseheaderstyleplugin_SRCS} INSTALL_NAMESPACE messageviewer)
target_link_libraries(messageviewer_enterpriseheaderstyleplugin
......
......@@ -23,7 +23,7 @@
"Description[uk]": "Цим додатком визначається стиль заголовка повідомлення для бізнес-середовищ.",
"Description[x-test]": "xxThis plugin defines a mail header style for enterprise.xx",
"Description[zh_CN]": "此插件定义了企业邮件头部样式。",
"EnabledByDefault": "true",
"EnabledByDefault": "@KDEPIM_ENTERPRISE_BUILD@",
"Name": "Enterprise Header Style",
"Name[ca@valencia]": "Estil de capçalera corporativa",
"Name[ca]": "Estil de capçalera corporativa",
......
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