| 1 |
service_conf = configuration_data() |
| 2 |
service_conf.set('libexecdir', libexecdir) |
| 3 |
|
| 4 |
sources = files( |
| 5 |
'genvironmentproxyresolver.c', |
| 6 |
'environmentproxy-module.c' |
| 7 |
) |
| 8 |
|
| 9 |
deps = [ |
| 10 |
gio_dep, |
| 11 |
glib_dep, |
| 12 |
gmodule_dep, |
| 13 |
gobject_dep |
| 14 |
] |
| 15 |
|
| 16 |
giomodules += 'gioenvironmentproxy' |
| 17 |
|
| 18 |
module = shared_module( |
| 19 |
'gioenvironmentproxy', |
| 20 |
sources: sources, |
| 21 |
include_directories: top_inc, |
| 22 |
dependencies: deps, |
| 23 |
c_args: '-DGENVIRONMENTPROXY_MODULE', |
| 24 |
link_args: module_ldflags, |
| 25 |
link_depends: symbol_map, |
| 26 |
name_suffix: module_suffix, |
| 27 |
install: build_shared, |
| 28 |
install_dir: gio_module_dir |
| 29 |
) |
| 30 |
|
| 31 |
if build_static |
| 32 |
gioenvironmentproxy_lib = static_library('gioenvironmentproxy', |
| 33 |
objects: module.extract_all_objects(recursive: true), |
| 34 |
dependencies: deps, |
| 35 |
install: true, |
| 36 |
install_dir: gio_module_dir |
| 37 |
) |
| 38 |
pkg.generate(module) |
| 39 |
|
| 40 |
gioenvironmentproxy_dep = declare_dependency( |
| 41 |
link_with: gioenvironmentproxy_lib |
| 42 |
) |
| 43 |
meson.override_dependency('gioenvironmentproxy', gioenvironmentproxy_dep) |
| 44 |
endif |
| 45 |
|
| 46 |
proxy_test_programs += [['environment', 'environment', deps]] |
| 47 |
|
| 48 |
if meson.version().version_compare('>=0.58') |
| 49 |
env = environment() |
| 50 |
env.prepend('GIO_EXTRA_MODULES', meson.current_build_dir()) |
| 51 |
meson.add_devenv(env) |
| 52 |
endif |