diff options
author | Jens Georg <mail@jensge.org> | 2018-10-25 23:40:02 +0200 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2018-10-26 00:09:55 +0200 |
commit | b953e588a3103b5e6a4174f8dba6a2a7a4afdf10 (patch) | |
tree | 9c9bd75a24a7effdec95dfb6b66e0879f792f6ee /libgupnp-av | |
parent | b0e5ced295ebca431688373d73d02b44508daaca (diff) | |
download | gupnp-av-b953e588a3103b5e6a4174f8dba6a2a7a4afdf10.tar.gz |
Add meson build files
Diffstat (limited to 'libgupnp-av')
-rw-r--r-- | libgupnp-av/meson.build | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/libgupnp-av/meson.build b/libgupnp-av/meson.build new file mode 100644 index 0000000..eee66a4 --- /dev/null +++ b/libgupnp-av/meson.build @@ -0,0 +1,82 @@ +marshall_sources = gnome.genmarshal('gupnp-av-marshal', prefix : 'gupnp_av_marshal', sources : 'gupnp-av-marshal.list') + +introspection_sources = [ + 'gupnp-av-error.c', + 'gupnp-cds-last-change-parser.c', + 'gupnp-didl-lite-container.c', + 'gupnp-didl-lite-contributor.c', + 'gupnp-didl-lite-createclass.c', + 'gupnp-didl-lite-descriptor.c', + 'gupnp-didl-lite-item.c', + 'gupnp-didl-lite-object.c', + 'gupnp-didl-lite-parser.c', + 'gupnp-didl-lite-resource.c', + 'gupnp-didl-lite-writer.c', + 'gupnp-dlna.c', + 'gupnp-feature.c', + 'gupnp-feature-list-parser.c', + 'gupnp-last-change-parser.c', + 'gupnp-media-collection.c', + 'gupnp-protocol-info.c', + 'gupnp-search-criteria-parser.c' +] + + +gupnp_av_lib = library('gupnp-av-1.0', + [ + introspection_sources, + 'fragment-util.c', + 'gvalue-util.c', + 'time-utils.c', + 'xml-util.c', + 'xsd-data.c', + marshall_sources + ], + install: true, + version : '2.0.0', + c_args : common_cflags + ['-DDATADIR="@0@"'.format(join_paths(get_option('prefix'), get_option('datadir'), 'gupnp-av'))], + dependencies : [gobject, libxml] +) +gupnp_av = declare_dependency(link_with : gupnp_av_lib, include_directories : include_directories('..')) + +public_headers = [ + 'gupnp-av-enums.h', + 'gupnp-av-error.h', + 'gupnp-av.h', + 'gupnp-cds-last-change-parser.h', + 'gupnp-didl-lite-container.h', + 'gupnp-didl-lite-contributor.h', + 'gupnp-didl-lite-createclass.h', + 'gupnp-didl-lite-descriptor.h', + 'gupnp-didl-lite-item.h', + 'gupnp-didl-lite-object.h', + 'gupnp-didl-lite-parser.h', + 'gupnp-didl-lite-resource.h', + 'gupnp-didl-lite-writer.h', + 'gupnp-dlna.h', + 'gupnp-feature.h', + 'gupnp-feature-list-parser.h', + 'gupnp-last-change-parser.h', + 'gupnp-media-collection.h', + 'gupnp-protocol-info.h', + 'gupnp-search-criteria-parser.h', +] + +install_headers( + public_headers, + subdir : 'gupnp-av-1.0/libgupnp-av' +) + +if get_option('introspection') + gupnp_av_gir = gnome.generate_gir( + gupnp_av_lib, + sources : [public_headers, introspection_sources], + namespace : 'GUPnPAV', + nsversion : '1.0', + identifier_prefix : 'GUPnP', + symbol_prefix : 'gupnp', + export_packages : 'gupnp-av-1.0', + includes : ['GObject-2.0', 'libxml2-2.0'], + install : true + ) +endif |