Compile androidnotifier only if widgets are available
The example links against widgets => add proper build-time guard. Task-number: QTBUG-136101 Pick-to: 6.8 Change-Id: I9e279791de5adf4e8bc86a09cb11e96022f9e1ce Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commit 197f07b4e74541b5f1f0fcaaf89d8cf76daa6e09) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
30e50a9a7c
commit
40edcb4157
@ -1,6 +1,6 @@
|
|||||||
# Copyright (C) 2023 The Qt Company Ltd.
|
# Copyright (C) 2023 The Qt Company Ltd.
|
||||||
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
||||||
|
|
||||||
if(ANDROID)
|
if(ANDROID AND QT_FEATURE_widgets)
|
||||||
qt_internal_add_example(androidnotifier)
|
qt_internal_add_example(androidnotifier)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user