diff options
author | Jens Georg <mail@jensge.org> | 2019-10-29 16:55:11 +0100 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2020-03-18 19:13:49 -0400 |
commit | 32e640c72dc09fb0db898681ccd604fe87e686d6 (patch) | |
tree | e04db5eb44de1890f5097b25d85f030214dcb4bc /libgupnp-igd | |
parent | edd78a6561fc1a6e6769342157f0e4db62705fa3 (diff) | |
download | gupnp-igd-32e640c72dc09fb0db898681ccd604fe87e686d6.tar.gz |
build: Initial meson files
Diffstat (limited to 'libgupnp-igd')
-rw-r--r-- | libgupnp-igd/meson.build | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/libgupnp-igd/meson.build b/libgupnp-igd/meson.build new file mode 100644 index 0000000..a4f267f --- /dev/null +++ b/libgupnp-igd/meson.build @@ -0,0 +1,58 @@ +marshal = gnome.genmarshal( + 'gupnp-simple-igd-marshal', + sources : 'gupnp-simple-igd-marshal.list', + prefix : '_gupnp_simple_igd_marshal' +) + +headers = files( + 'gupnp-simple-igd.h', + 'gupnp-simple-igd-thread.h' +) + +install_headers(headers, subdir: 'gupnp-igd-1.0/libgupnp-igd') + +sources = files( + 'gupnp-enum-types.c', + 'gupnp-enum-types.h', + 'gupnp-simple-igd.c', + 'gupnp-simple-igd-priv.h', + 'gupnp-simple-igd-thread.c' +) + +libgupnp_igd = library( + 'gupnp-igd-1.0', + sources + marshal, + version: '4.2.0', + include_directories: include_directories('..'), + dependencies : dependencies, + install: true) + +gupnp_igd = declare_dependency( + link_with : libgupnp_igd, + include_directories : include_directories('..'), + dependencies: dependencies +) + +pkg.generate( + libraries : libgupnp_igd, + name : 'gupnp-igd-1.0', + subdirs : 'gupnp-igd-1.0', + filebase : 'gupnp-igd-1.0', + description: 'GUPnP Simple IGD library', + requires : 'gupnp-1.0' +) + + +if get_option('introspection') + gnome.generate_gir( + libgupnp_igd, + sources : headers + sources, + namespace : 'GUPnPIgd', + nsversion : '1.0', + symbol_prefix: ['gupnp'], + identifier_prefix : 'GUPnP', + install: true, + export_packages : 'gupnp-1.0', + includes : ['GObject-2.0'] + ) +endif |