Make KUnifiedPush required unless opted out
Quiet dependencies like this are bad since they make it easy to miss the dependency
This commit is contained in:
committed by
Tobias Fella
parent
f153e57fdb
commit
96e61c8357
@@ -170,6 +170,24 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "kunifiedpush",
|
||||||
|
"buildsystem": "cmake-ninja",
|
||||||
|
"builddir": true,
|
||||||
|
"sources": [
|
||||||
|
{
|
||||||
|
"type": "archive",
|
||||||
|
"url": "https://download.kde.org/stable/kunifiedpush/kunifiedpush-1.0.0.tar.xz",
|
||||||
|
"sha256": "2ddeba21306d0307114ec50a2c38159ec62359f9fc6cdd58da30a369fbd550cf",
|
||||||
|
"x-checker-data": {
|
||||||
|
"type": "anitya",
|
||||||
|
"project-id": 375055,
|
||||||
|
"stable-only": true,
|
||||||
|
"url-template": "https://download.kde.org/stable/kunifiedpush/kunifiedpush-$version.tar.xz"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "neochat",
|
"name": "neochat",
|
||||||
"buildsystem": "cmake-ninja",
|
"buildsystem": "cmake-ninja",
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ Dependencies:
|
|||||||
'require':
|
'require':
|
||||||
'frameworks/kdbusaddons': '@latest-kf6'
|
'frameworks/kdbusaddons': '@latest-kf6'
|
||||||
'frameworks/purpose': '@latest-kf6'
|
'frameworks/purpose': '@latest-kf6'
|
||||||
|
'libraries/kunifiedpush': '@latest-kf6'
|
||||||
|
|
||||||
- 'on': ['Linux']
|
- 'on': ['Linux']
|
||||||
'require':
|
'require':
|
||||||
|
|||||||
@@ -147,12 +147,20 @@ set_package_properties(KF6DocTools PROPERTIES DESCRIPTION
|
|||||||
TYPE OPTIONAL
|
TYPE OPTIONAL
|
||||||
)
|
)
|
||||||
|
|
||||||
find_package(KUnifiedPush QUIET)
|
option(WITH_UNIFIEDPUSH "Build with KUnifiedPush support" ON)
|
||||||
set_package_properties(KUnifiedPush PROPERTIES
|
|
||||||
TYPE OPTIONAL
|
if (ANDROID OR APPLE OR WIN32 OR HAIKU)
|
||||||
PURPOSE "Push notification support"
|
set(WITH_UNIFIEDPUSH OFF)
|
||||||
URL "https://invent.kde.org/libraries/kunifiedpush"
|
endif()
|
||||||
)
|
|
||||||
|
if (WITH_UNIFIEDPUSH)
|
||||||
|
find_package(KUnifiedPush)
|
||||||
|
set_package_properties(KUnifiedPush PROPERTIES
|
||||||
|
TYPE REQUIRED
|
||||||
|
PURPOSE "Push notification support"
|
||||||
|
URL "https://invent.kde.org/libraries/kunifiedpush"
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(ANDROID)
|
if(ANDROID)
|
||||||
find_package(Sqlite3)
|
find_package(Sqlite3)
|
||||||
|
|||||||
Reference in New Issue
Block a user