gnome.org/glib-networking (#3959)

* new file:   projects/gnome.org/glib-networking/gtls-test.c
	new file:   projects/gnome.org/glib-networking/package.yml

* GIO_MODULE_DIR
This commit is contained in:
Andrew 2023-11-06 19:53:19 +02:00 committed by GitHub
parent c7a337c546
commit dec3fa79a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,8 @@
#include <gio/gio.h>
int main (int argc, char *argv[])
{
if (g_tls_backend_supports_tls (g_tls_backend_get_default()))
return 0;
else
return 1;
}

View file

@ -0,0 +1,47 @@
distributable:
url: https://download.gnome.org/sources/glib-networking/{{version.marketing}}/glib-networking-{{version}}.tar.xz
strip-components: 1
versions:
url: https://download.gnome.org/sources/glib-networking/cache.json
match: /glib-networking-\d+\.\d+\.\d+\.tar\.xz/
strip:
- /^glib-networking-/
- /\.tar\.xz/
dependencies:
gnome.org/glib: '*'
gnutls.org: '*'
gnome.org/gsettings-desktop-schemas: '*'
runtime:
env:
GIO_MODULE_DIR: "{{prefix}}/lib/gio/modules"
build:
dependencies:
mesonbuild.com: '*'
ninja-build.org: '*'
freedesktop.org/pkg-config: '*'
linux:
llvm.org: '*'
script:
- meson $MESON_ARGS build
- meson compile -C build --verbose
- meson install -C build
env:
linux:
CC: clang
CXX: clang++
LD: clang
MESON_ARGS:
- --prefix="{{prefix}}"
- --libdir="{{prefix}}/lib"
- --buildtype=release
- --wrap-mode=nofallback
- -Dlibproxy=disabled
- -Dopenssl=disabled
- -Dgnome_proxy=disabled
test:
dependencies:
linux:
llvm.org: '*'
script:
- cc gtls-test.c -D_REENTRANT -lgio-2.0 -lgobject-2.0 -lglib-2.0 -o test
- ./test