Commit f536ea4e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Continue to implement compile with unity support

parent 4478b912
Pipeline #44922 failed with stage
in 30 minutes and 59 seconds
......@@ -16,6 +16,9 @@ qt5_add_dbus_interface(googlegroupwaremigration_SRCS
)
add_library(googlegroupwaremigration STATIC ${googlegroupwaremigration_SRCS})
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(googlegroupwaremigration PROPERTIES UNITY_BUILD ON)
endif()
target_link_libraries(googlegroupwaremigration
KF5::AkonadiCore
KF5::ConfigGui
......
......@@ -61,6 +61,9 @@ kcoreaddons_add_plugin(akonotesconfig
JSON "akonotesconfig.json"
INSTALL_NAMESPACE akonadi/config
)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(akonotesconfig PROPERTIES UNITY_BUILD ON)
endif()
target_link_libraries(akonotesconfig
KF5::AkonadiCore
......
......@@ -99,7 +99,6 @@ qt5_add_dbus_adaptor(ewsresource_SRCS
add_executable(akonadi_ews_resource ${ewsresource_SRCS})
target_link_libraries(akonadi_ews_resource
KF5::AkonadiAgentBase
KF5::AkonadiCore
......
......@@ -22,6 +22,9 @@ qt5_add_dbus_adaptor(icaldirresource_SRCS
install( FILES icaldirresource.desktop DESTINATION "${KDE_INSTALL_DATAROOTDIR}/akonadi/agents" )
add_executable(akonadi_icaldir_resource ${icaldirresource_SRCS})
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(akonadi_icaldir_resource PROPERTIES UNITY_BUILD ON)
endif()
if( APPLE )
set_target_properties(akonadi_icaldir_resource PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/../Info.plist.template)
......
......@@ -41,7 +41,9 @@ ecm_qt_declare_logging_category(kalarmresource_SRCS HEADER kalarmresource_debug.
add_custom_target(kalarm_resource_xml ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/org.kde.Akonadi.KAlarm.Settings.xml)
add_executable(akonadi_kalarm_resource ${kalarmresource_SRCS})
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(akonadi_kalarm_resource PROPERTIES UNITY_BUILD ON)
endif()
if( APPLE )
set_target_properties(akonadi_kalarm_resource PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/../Info.plist.template)
set_target_properties(akonadi_kalarm_resource PROPERTIES MACOSX_BUNDLE_GUI_IDENTIFIER "org.kde.Akonadi.KAlarm")
......
......@@ -32,7 +32,9 @@ ecm_qt_declare_logging_category(kalarmdirresource_SRCS HEADER kalarmdirresource_
add_custom_target(kalarmdir_resource_xml ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/org.kde.Akonadi.KAlarmDir.Settings.xml)
add_executable(akonadi_kalarm_dir_resource ${kalarmdirresource_SRCS})
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(akonadi_kalarm_dir_resource PROPERTIES UNITY_BUILD ON)
endif()
if( APPLE )
set_target_properties(akonadi_kalarm_dir_resource PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/../Info.plist.template)
set_target_properties(akonadi_kalarm_dir_resource PROPERTIES MACOSX_BUNDLE_GUI_IDENTIFIER "org.kde.Akonadi.KAlarmDir")
......
......@@ -40,7 +40,9 @@ qt5_add_dbus_adaptor(maildirresource_SRCS
)
add_executable(akonadi_maildir_resource ${maildirresource_SRCS})
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(akonadi_maildir_resource PROPERTIES UNITY_BUILD ON)
endif()
target_link_libraries(akonadi_maildir_resource
maildir
folderarchivesettings
......
......@@ -28,7 +28,9 @@ install( FILES pop3resource.desktop DESTINATION "${KDE_INSTALL_DATAROOTDIR}/akon
#add_executable(akonadi_pop3_resource RUN_UNINSTALLED ${pop3resource_SRCS})
add_executable(akonadi_pop3_resource ${pop3resource_SRCS})
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(akonadi_pop3_resource PROPERTIES UNITY_BUILD ON)
endif()
if( APPLE )
set_target_properties(akonadi_pop3_resource PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/../Info.plist.template)
set_target_properties(akonadi_pop3_resource PROPERTIES MACOSX_BUNDLE_GUI_IDENTIFIER "org.kde.Akonadi.POP3")
......
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