diff options
author | Jehan <jehan@girinstud.io> | 2019-01-07 14:35:21 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2019-03-26 06:15:15 -0400 |
commit | 7640ddc29fb1f7c852162d57d94e606f97f99711 (patch) | |
tree | 29ccad89087cd55cd4b3fb2e0ec94a29b4120bd0 /libappstream-glib/meson.build | |
parent | 2eb9b8caf9ca22ac914b63f34fea5dd6da6f4e76 (diff) | |
download | appstream-glib-7640ddc29fb1f7c852162d57d94e606f97f99711.tar.gz |
Allow building on Windows
Signed-off-by: Richard Hughes <richard@hughsie.com>
Diffstat (limited to 'libappstream-glib/meson.build')
-rw-r--r-- | libappstream-glib/meson.build | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/libappstream-glib/meson.build b/libappstream-glib/meson.build index 5f726b0..271c6da 100644 --- a/libappstream-glib/meson.build +++ b/libappstream-glib/meson.build @@ -6,13 +6,17 @@ cargs = [ deps = [ gdkpixbuf, - giounix, glib, libarchive, soup, - uuid, ] +if platform_win32 + deps += [giowindows] +else + deps += [giounix, uuid] +endif + if get_option('dep11') deps += yaml endif @@ -142,6 +146,14 @@ asglib = shared_library( ) asglib_incdir = include_directories('.') +pkg_req_private = [ + 'libarchive' +] + +if not platform_win32 + pkg_req_private += ['uuid'] +endif + pkgg.generate( version : as_version, libraries : asglib, @@ -150,10 +162,7 @@ pkgg.generate( 'gobject-2.0', 'gdk-pixbuf-2.0', ], - requires_private : [ - 'libarchive', - 'uuid', - ], + requires_private : pkg_req_private, name : 'appstream-glib', description : 'Objects and helper methods to help reading and writing AppStream metadata', filebase : 'appstream-glib', |