Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KDE PIM Runtime
Commits
18240a9a
Commit
18240a9a
authored
Feb 17, 2021
by
Laurent Montel
😁
Browse files
Improve unity support
parent
cb681ce4
Pipeline
#51342
failed with stage
in 29 minutes and 11 seconds
Changes
7
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
resources/contacts/CMakeLists.txt
View file @
18240a9a
...
...
@@ -32,7 +32,9 @@ ecm_qt_declare_logging_category(contactsresource_SRCS HEADER contacts_resources_
install
(
FILES contactsresource.desktop DESTINATION
"
${
KDE_INSTALL_DATAROOTDIR
}
/akonadi/agents"
)
add_executable
(
akonadi_contacts_resource
${
contactsresource_SRCS
}
)
if
(
COMPILE_WITH_UNITY_CMAKE_SUPPORT
)
set_target_properties
(
akonadi_contacts_resource PROPERTIES UNITY_BUILD ON
)
endif
()
target_link_libraries
(
akonadi_contacts_resource
KF5::AkonadiCore
KF5::AkonadiAgentBase
...
...
resources/google-groupware/CMakeLists.txt
View file @
18240a9a
...
...
@@ -51,6 +51,9 @@ qt5_add_dbus_adaptor(googleresource_SRCS
)
add_executable
(
akonadi_google_resource
${
googleresource_SRCS
}
)
if
(
COMPILE_WITH_UNITY_CMAKE_SUPPORT
)
set_target_properties
(
akonadi_google_resource PROPERTIES UNITY_BUILD ON
)
endif
()
if
(
APPLE
)
set_target_properties
(
akonadi_google_resource PROPERTIES
...
...
resources/google-groupware/googlesettingsdialog.cpp
View file @
18240a9a
...
...
@@ -84,7 +84,7 @@ GoogleSettingsDialog::~GoogleSettingsDialog()
delete
m_ui
;
}
bool
GoogleSettingsDialog
::
handleError
(
Job
*
job
)
bool
GoogleSettingsDialog
::
handleError
(
KGAPI2
::
Job
*
job
)
{
if
((
job
->
error
()
==
KGAPI2
::
NoError
)
||
(
job
->
error
()
==
KGAPI2
::
OK
))
{
return
true
;
...
...
@@ -140,7 +140,7 @@ void GoogleSettingsDialog::slotConfigure()
connect
(
authJob
,
&
AuthJob
::
finished
,
this
,
&
GoogleSettingsDialog
::
slotAuthJobFinished
);
}
void
GoogleSettingsDialog
::
slotAuthJobFinished
(
Job
*
job
)
void
GoogleSettingsDialog
::
slotAuthJobFinished
(
KGAPI2
::
Job
*
job
)
{
auto
authJob
=
qobject_cast
<
AuthJob
*>
(
job
);
m_account
=
authJob
->
account
();
...
...
@@ -211,7 +211,7 @@ void GoogleSettingsDialog::slotReloadCalendars()
}
auto
fetchJob
=
new
CalendarFetchJob
(
m_account
,
this
);
connect
(
fetchJob
,
&
CalendarFetchJob
::
finished
,
this
,
[
this
](
Job
*
job
)
{
connect
(
fetchJob
,
&
CalendarFetchJob
::
finished
,
this
,
[
this
](
KGAPI2
::
Job
*
job
)
{
if
(
!
handleError
(
job
)
||
!
m_account
)
{
m_ui
->
calendarsBox
->
setEnabled
(
false
);
return
;
...
...
resources/ical/CMakeLists.txt
View file @
18240a9a
...
...
@@ -45,7 +45,9 @@ if( APPLE )
endif
()
target_link_libraries
(
akonadi_ical_resource KF5::AkonadiCore KF5::KIOCore KF5::CalendarCore KF5::AkonadiAgentBase akonadi-singlefileresource
)
if
(
COMPILE_WITH_UNITY_CMAKE_SUPPORT
)
set_target_properties
(
akonadi_ical_resource PROPERTIES UNITY_BUILD ON
)
endif
()
install
(
TARGETS akonadi_ical_resource
${
KDE_INSTALL_TARGETS_DEFAULT_ARGS
}
)
################################ Config plugin ###############################
...
...
resources/imap/CMakeLists.txt
View file @
18240a9a
...
...
@@ -110,7 +110,9 @@ ki18n_wrap_ui(akonadi_imap_resource_SRCS setupserverview_desktop.ui)
add_executable
(
akonadi_imap_resource
${
akonadi_imap_resource_SRCS
}
)
if
(
COMPILE_WITH_UNITY_CMAKE_SUPPORT
)
set_target_properties
(
akonadi_imap_resource PROPERTIES UNITY_BUILD ON
)
endif
()
if
(
APPLE
)
set_target_properties
(
akonadi_imap_resource PROPERTIES MACOSX_BUNDLE_INFO_PLIST
${
CMAKE_CURRENT_SOURCE_DIR
}
/../Info.plist.template
)
set_target_properties
(
akonadi_imap_resource PROPERTIES MACOSX_BUNDLE_GUI_IDENTIFIER
"org.kde.Akonadi.Imap"
)
...
...
resources/mbox/CMakeLists.txt
View file @
18240a9a
...
...
@@ -42,6 +42,9 @@ qt5_add_dbus_adaptor(mboxresource_SRCS
)
add_executable
(
akonadi_mbox_resource
${
mboxresource_SRCS
}
)
if
(
COMPILE_WITH_UNITY_CMAKE_SUPPORT
)
set_target_properties
(
akonadi_mbox_resource PROPERTIES UNITY_BUILD ON
)
endif
()
add_dependencies
(
akonadi_mbox_resource generated_headers
)
if
(
APPLE
)
...
...
resources/mixedmaildir/CMakeLists.txt
View file @
18240a9a
...
...
@@ -44,7 +44,9 @@ qt5_add_dbus_adaptor(mixedmaildirresource_SRCS
)
add_executable
(
akonadi_mixedmaildir_resource
${
mixedmaildirresource_SRCS
}
)
if
(
COMPILE_WITH_UNITY_CMAKE_SUPPORT
)
set_target_properties
(
akonadi_mixedmaildir_resource PROPERTIES UNITY_BUILD ON
)
endif
()
if
(
APPLE
)
set_target_properties
(
akonadi_mixedmaildir_resource PROPERTIES MACOSX_BUNDLE_INFO_PLIST
${
CMAKE_CURRENT_SOURCE_DIR
}
/../Info.plist.template
)
set_target_properties
(
akonadi_mixedmaildir_resource PROPERTIES MACOSX_BUNDLE_GUI_IDENTIFIER
"org.kde.Akonadi.MixedMaildir"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment