mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 19:38:48 +03:00
Add Qtkeychain wrap
This commit is contained in:
parent
6d175c1ae0
commit
0307f8e9ef
5 changed files with 49 additions and 2 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -12,12 +12,14 @@ cscope*
|
||||||
|
|
||||||
subprojects/Olm.wrap
|
subprojects/Olm.wrap
|
||||||
subprojects/Olm/
|
subprojects/Olm/
|
||||||
|
subprojects/cmark-*/
|
||||||
subprojects/coeurl.wrap
|
subprojects/coeurl.wrap
|
||||||
subprojects/coeurl/
|
subprojects/coeurl/
|
||||||
subprojects/curl-*/
|
subprojects/curl-*/
|
||||||
subprojects/curl.wrap
|
subprojects/curl.wrap
|
||||||
subprojects/libevent-*/
|
subprojects/libevent-*/
|
||||||
subprojects/libevent.wrap
|
subprojects/libevent.wrap
|
||||||
|
subprojects/libsecret-*/
|
||||||
subprojects/lmdb++/
|
subprojects/lmdb++/
|
||||||
subprojects/lmdb-LMDB_*/
|
subprojects/lmdb-LMDB_*/
|
||||||
subprojects/nlohmann_json-*/
|
subprojects/nlohmann_json-*/
|
||||||
|
@ -25,8 +27,8 @@ subprojects/nlohmann_json.wrap
|
||||||
subprojects/openssl-*/
|
subprojects/openssl-*/
|
||||||
subprojects/openssl.wrap
|
subprojects/openssl.wrap
|
||||||
subprojects/packagecache/
|
subprojects/packagecache/
|
||||||
|
subprojects/qtkeychain-*/
|
||||||
subprojects/spdlog-*/
|
subprojects/spdlog-*/
|
||||||
subprojects/cmark-*/
|
|
||||||
|
|
||||||
# GTAGS
|
# GTAGS
|
||||||
GTAGS
|
GTAGS
|
||||||
|
|
|
@ -41,6 +41,7 @@ build-gcc9-meson:
|
||||||
- meson compile -C builddir
|
- meson compile -C builddir
|
||||||
cache:
|
cache:
|
||||||
key: "$CI_JOB_NAME"
|
key: "$CI_JOB_NAME"
|
||||||
|
when: 'always'
|
||||||
paths:
|
paths:
|
||||||
- .ccache
|
- .ccache
|
||||||
- subprojects/packagecache/
|
- subprojects/packagecache/
|
||||||
|
@ -74,6 +75,7 @@ build-gcc9:
|
||||||
- mv ../.hunter .hunter
|
- mv ../.hunter .hunter
|
||||||
cache:
|
cache:
|
||||||
key: "$CI_JOB_NAME"
|
key: "$CI_JOB_NAME"
|
||||||
|
when: 'always'
|
||||||
paths:
|
paths:
|
||||||
- .hunter/
|
- .hunter/
|
||||||
- .ccache
|
- .ccache
|
||||||
|
@ -111,6 +113,7 @@ build-macos:
|
||||||
public: false
|
public: false
|
||||||
cache:
|
cache:
|
||||||
key: "${CI_JOB_NAME}"
|
key: "${CI_JOB_NAME}"
|
||||||
|
when: 'always'
|
||||||
paths:
|
paths:
|
||||||
- .hunter/
|
- .hunter/
|
||||||
- "${CCACHE_DIR}"
|
- "${CCACHE_DIR}"
|
||||||
|
@ -161,6 +164,7 @@ build-flatpak-amd64:
|
||||||
- bash ./.ci/upload-nightly-gitlab.sh build-flatpak/nheko-amd64.flatpak
|
- bash ./.ci/upload-nightly-gitlab.sh build-flatpak/nheko-amd64.flatpak
|
||||||
cache:
|
cache:
|
||||||
key: "$CI_JOB_NAME"
|
key: "$CI_JOB_NAME"
|
||||||
|
when: 'always'
|
||||||
paths:
|
paths:
|
||||||
- build-flatpak/.flatpak-builder/
|
- build-flatpak/.flatpak-builder/
|
||||||
artifacts:
|
artifacts:
|
||||||
|
@ -192,6 +196,7 @@ build-flatpak-arm64:
|
||||||
- bash ./.ci/upload-nightly-gitlab.sh build-flatpak/nheko-arm64.flatpak
|
- bash ./.ci/upload-nightly-gitlab.sh build-flatpak/nheko-arm64.flatpak
|
||||||
cache:
|
cache:
|
||||||
key: "$CI_JOB_NAME"
|
key: "$CI_JOB_NAME"
|
||||||
|
when: 'always'
|
||||||
paths:
|
paths:
|
||||||
- build-flatpak/.flatpak-builder/
|
- build-flatpak/.flatpak-builder/
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|
26
meson.build
26
meson.build
|
@ -20,7 +20,6 @@ deps = [
|
||||||
dependency('spdlog'),
|
dependency('spdlog'),
|
||||||
dependency('cmark'),
|
dependency('cmark'),
|
||||||
dependency('lmdb'),
|
dependency('lmdb'),
|
||||||
dependency('Qt5Keychain'),
|
|
||||||
dependency('threads'),
|
dependency('threads'),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -46,6 +45,31 @@ if not lmdbxx_dep.found()
|
||||||
endif
|
endif
|
||||||
deps += lmdbxx_dep
|
deps += lmdbxx_dep
|
||||||
|
|
||||||
|
qtkeychain_dep = dependency('Qt5Keychain', required: get_option('wrap_mode') == 'nofallback')
|
||||||
|
if (not qtkeychain_dep.found()
|
||||||
|
or get_option('wrap_mode') == 'forcefallback'
|
||||||
|
or 'QtKeychain' in get_option('force_fallback_for'))
|
||||||
|
cmake = import('cmake')
|
||||||
|
qtkeychain_options = cmake.subproject_options()
|
||||||
|
qtkeychain_options.add_cmake_defines({
|
||||||
|
'BUILD_SHARED_LIBS': false,
|
||||||
|
})
|
||||||
|
if target_machine.system() != 'windows'
|
||||||
|
qtkeychain_options.add_cmake_defines({
|
||||||
|
'CMAKE_C_FLAGS': '-fPIC',
|
||||||
|
})
|
||||||
|
endif
|
||||||
|
qtkeychain_options.set_override_option('werror', 'false')
|
||||||
|
qtkeychain_options.set_override_option('warning_level', '0')
|
||||||
|
qtkeychain_proj = cmake.subproject('QtKeychain', options: qtkeychain_options)
|
||||||
|
qtkeychain_dep = qtkeychain_proj.dependency('qt5keychain')
|
||||||
|
|
||||||
|
if target_machine.system() == 'linux' or target_machine.system() == 'freebsd' or target_machine.system() == 'netbsd' or target_machine.system() == 'openbsd' or target_machine.system() == 'dragonfly'
|
||||||
|
deps += dependency('libsecret-1', default_options: ['manpage=false', 'vapi=false', 'gtk_doc=false', 'introspection=false',]) # 'bash_completion=disabled'])
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
deps += qtkeychain_dep
|
||||||
|
|
||||||
backtrace_check = '''#include<execinfo.h>
|
backtrace_check = '''#include<execinfo.h>
|
||||||
#ifndef HAVE_BACKTRACE_SYMBOLS_FD
|
#ifndef HAVE_BACKTRACE_SYMBOLS_FD
|
||||||
#error "No backtrace support"
|
#error "No backtrace support"
|
||||||
|
|
6
subprojects/QtKeychain.wrap
Normal file
6
subprojects/QtKeychain.wrap
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
[wrap-file]
|
||||||
|
directory = qtkeychain-0.13.2
|
||||||
|
|
||||||
|
source_url = https://github.com/frankosterfeld/qtkeychain/archive/refs/tags/v0.13.2.tar.gz
|
||||||
|
source_filename = qtkeychain-0.13.2.tar.gz
|
||||||
|
source_hash = 20beeb32de7c4eb0af9039b21e18370faf847ac8697ab3045906076afbc4caa5
|
10
subprojects/libsecret.wrap
Normal file
10
subprojects/libsecret.wrap
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
[wrap-file]
|
||||||
|
directory = libsecret-0.20.4
|
||||||
|
|
||||||
|
source_url = https://gitlab.gnome.org/GNOME/libsecret/-/archive/0.20.4/libsecret-0.20.4.tar.gz
|
||||||
|
source_filename = libsecret-0.20.4.tar.gz
|
||||||
|
source_hash = ca34e69b210df221ae5da6692c2cb15ef169bb4daf42e204442f24fdb0520d4b
|
||||||
|
|
||||||
|
[provide]
|
||||||
|
libsecret-1 = libsecret_dep
|
||||||
|
|
Loading…
Reference in a new issue