Make Qt for Android configurable without 'clipboard' support
Fixes: QTBUG-135675 Pick-to: 6.8 Change-Id: I844cd96f977bd0b5536606cf0c2449a87502231a Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commit 323f408be6bcf5bfa5e2d447be94381556e52a62)
This commit is contained in:
parent
c9921d069a
commit
942b23f922
@ -21,7 +21,6 @@ qt_internal_add_plugin(QAndroidIntegrationPlugin
|
||||
qandroidassetsfileenginehandler.cpp qandroidassetsfileenginehandler.h
|
||||
qandroideventdispatcher.cpp qandroideventdispatcher.h
|
||||
qandroidinputcontext.cpp qandroidinputcontext.h
|
||||
qandroidplatformclipboard.cpp qandroidplatformclipboard.h
|
||||
qandroidplatformdialoghelpers.cpp qandroidplatformdialoghelpers.h
|
||||
qandroidplatformfiledialoghelper.cpp qandroidplatformfiledialoghelper.h
|
||||
qandroidplatformfontdatabase.cpp qandroidplatformfontdatabase.h
|
||||
@ -79,6 +78,11 @@ qt_internal_extend_target(QAndroidIntegrationPlugin CONDITION NOT QT_FEATURE_and
|
||||
extract-dummy.cpp
|
||||
)
|
||||
|
||||
qt_internal_extend_target(QAndroidIntegrationPlugin CONDITION QT_FEATURE_clipboard
|
||||
SOURCES
|
||||
qandroidplatformclipboard.cpp qandroidplatformclipboard.h
|
||||
)
|
||||
|
||||
qt_internal_extend_target(QAndroidIntegrationPlugin CONDITION QT_FEATURE_accessibility
|
||||
SOURCES
|
||||
androidjniaccessibility.cpp androidjniaccessibility.h
|
||||
|
@ -18,7 +18,9 @@
|
||||
#include "qandroideventdispatcher.h"
|
||||
#include "qandroidplatformdialoghelpers.h"
|
||||
#include "qandroidplatformintegration.h"
|
||||
#if QT_CONFIG(clipboard)
|
||||
#include "qandroidplatformclipboard.h"
|
||||
#endif
|
||||
#if QT_CONFIG(accessibility)
|
||||
#include "androidjniaccessibility.h"
|
||||
#endif
|
||||
@ -820,7 +822,9 @@ static bool registerNatives(QJniEnvironment &env)
|
||||
&& QtAndroidAccessibility::registerNatives(env)
|
||||
#endif
|
||||
&& QtAndroidDialogHelpers::registerNatives(env)
|
||||
#if QT_CONFIG(clipboard)
|
||||
&& QAndroidPlatformClipboard::registerNatives(env)
|
||||
#endif
|
||||
&& QAndroidPlatformWindow::registerNatives(env)
|
||||
&& QtAndroidWindowEmbedding::registerNatives(env)
|
||||
&& AndroidBackendRegister::registerNatives()
|
||||
|
Loading…
x
Reference in New Issue
Block a user