<table><tr><td style="">pino created this revision.<br />pino added a reviewer: dvratil.<br />Herald added a project: KDE PIM.<br />Herald added a subscriber: kde-pim.<br />pino requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D15997">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The smtp plugin requires KPimGAPI for the XOauth2 authentication method;<br />
OTOH, KPimGAPI requires QtWebEngine, which is not really portable (and<br />
only available on few Linux archs).</p>

<p>Hence, since kmailtransport is a library used also in other components,<br />
make sure it can be built without KPimGAPI:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">make KPimGAPI an optional dependency</li>
<li class="remarkup-list-item">disable the XOauth2 authentication method without KPimGAPI, erroring out in case it is attempted</li>
</ul></div></div><br /><div><strong>TEST PLAN</strong><div><ul class="remarkup-list">
<li class="remarkup-list-item">build kmailtransport without KPimGAPI: works, no dependency</li>
<li class="remarkup-list-item">build kmailtransport with KPimGAPI: works, uses KPimGAPI</li>
</ul></div></div><br /><div><strong>REPOSITORY</strong><div><div>R84 PIM: KMail Transport</div></div></div><br /><div><strong>BRANCH</strong><div><div>optional-kpimgapi (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D15997">https://phabricator.kde.org/D15997</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>CMakeLists.txt<br />
config-kmailtransport.h.cmake<br />
src/kmailtransport/plugins/smtp/CMakeLists.txt<br />
src/kmailtransport/plugins/smtp/autotests/CMakeLists.txt<br />
src/kmailtransport/plugins/smtp/smtpconfigwidget.cpp<br />
src/kmailtransport/plugins/smtp/smtpjob.cpp</div></div></div><br /><div><strong>To: </strong>pino, dvratil<br /><strong>Cc: </strong>kde-pim, dvasin, rodsevich, winterz, vkrause, mlaurent, knauss, dvratil<br /></div>