Commit 2228cfb9 authored by Olivier Crête's avatar Olivier Crête
Browse files

meson: Export static libraries and deps

This way it can be used as a subproject

Part-of: <GNOME/glib-networking!213>
parent d5ed4a31
Pipeline #411078 passed with stage
in 38 minutes and 34 seconds
......@@ -2,7 +2,7 @@ project(
'glib-networking', 'c',
version: '2.72.0',
license: 'LGPL2.1+',
meson_version: '>= 0.50.0',
meson_version: '>= 0.54.0',
default_options: ['c_std=gnu99']
)
......
......@@ -27,12 +27,17 @@ module = shared_module(
)
if get_option('static_modules')
static_library('gioenvironmentproxy',
gioenvironmentproxy_lib = static_library('gioenvironmentproxy',
objects: module.extract_all_objects(),
install: true,
install_dir: gio_module_dir
)
pkg.generate(module)
gioenvironmentproxy_dep = declare_dependency(
link_with: gioenvironmentproxy_lib
)
meson.override_dependency('gioenvironmentproxy', gioenvironmentproxy_dep)
endif
proxy_test_programs += [['environment', 'environment', deps]]
......
......@@ -24,12 +24,15 @@ module = shared_module(
)
if get_option('static_modules')
static_library('giognomeproxy',
giognomeproxy_lib = static_library('giognomeproxy',
objects: module.extract_all_objects(),
install: true,
install_dir: gio_module_dir
)
pkg.generate(module)
giognomeproxy_dep = declare_dependency(link_with: giognomeproxy_lib)
meson.override_dependency('giognomeproxy', giognomeproxy_dep)
endif
proxy_test_programs += [['gnome', 'gnome', deps]]
......
......@@ -48,12 +48,15 @@ module = shared_module(
)
if get_option('static_modules')
static_library('giolibproxy',
giolibproxy_lib = static_library('giolibproxy',
objects: module.extract_all_objects(),
install: true,
install_dir: gio_module_dir
)
pkg.generate(module)
giolibproxy_dep = declare_dependency(link_with: giolibproxy_lib)
meson.override_dependency('giolibproxy', giolibproxy_dep)
endif
sources = files(
......
......@@ -35,13 +35,16 @@ module = shared_module(
if get_option('static_modules')
# link_whole is a workaround for a meson bug
# https://github.com/mesonbuild/meson/pull/3939
static_library('giognutls',
giognutls_lib = static_library('giognutls',
objects: module.extract_all_objects(),
install: true,
install_dir: gio_module_dir,
link_whole: [tlsbase]
)
pkg.generate(module)
giognutls_dep = declare_dependency(link_with: giognutls_lib)
meson.override_dependency('giognutls', giognutls_dep)
endif
if meson.version().version_compare('>=0.58')
......
......@@ -48,13 +48,16 @@ module = shared_module(
if get_option('static_modules')
# link_whole is a workaround for a meson bug
# https://github.com/mesonbuild/meson/pull/3939
static_library('gioopenssl',
gioopenssl_lib = static_library('gioopenssl',
objects: module.extract_all_objects(),
install: true,
install_dir: gio_module_dir,
link_whole: [tlsbase]
)
pkg.generate(module)
gioopenssl_dep = declare_dependency(link_with: gioopenssl_lib)
meson.override_dependency('gioopenssl', gioopenssl_dep)
endif
if meson.version().version_compare('>=0.58')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment