summaryrefslogtreecommitdiff
path: root/gdata/media
diff options
context:
space:
mode:
authorMayank Sharma <mayank8019@gmail.com>2019-06-25 11:22:01 +0000
committerPhilip Withnall <philip@tecnocode.co.uk>2019-06-25 11:22:01 +0000
commitd3ba69233a9ef1f415b10efc44ea186a6d58a2bb (patch)
tree5913ab8a6964f1ef051e1e166b25f882d9e31064 /gdata/media
parentb3a53c046bcc6b7add73860839b55da456212fa3 (diff)
downloadlibgdata-d3ba69233a9ef1f415b10efc44ea186a6d58a2bb.tar.gz
build: Port from Autotools to meson
Automake 1.16.1 has issues with generating a valid Makefile. Since, libgdata is one of the core-deps of GNOME, it should be ported from Autotools + make to meson + ninja. Significant contributions from both Iñigo Martínez and Mayank Sharma.
Diffstat (limited to 'gdata/media')
-rw-r--r--gdata/media/meson.build53
1 files changed, 53 insertions, 0 deletions
diff --git a/gdata/media/meson.build b/gdata/media/meson.build
new file mode 100644
index 00000000..eef13ffc
--- /dev/null
+++ b/gdata/media/meson.build
@@ -0,0 +1,53 @@
+incs += include_directories('.')
+
+include_subdir = gdata_include_subdir / 'media'
+
+headers = files(
+ 'gdata-media-category.h',
+ 'gdata-media-content.h',
+ 'gdata-media-credit.h',
+ 'gdata-media-thumbnail.h',
+)
+
+install_headers(
+ headers,
+ subdir: include_subdir,
+)
+
+gir_headers += headers
+
+sources += files(
+ 'gdata-media-category.c',
+ 'gdata-media-content.c',
+ 'gdata-media-credit.c',
+ 'gdata-media-group.c',
+ 'gdata-media-thumbnail.c',
+)
+
+enums = 'gdata-media-enums'
+
+enums_in = gnome.mkenums_simple(
+ enums + '-in',
+ sources: headers,
+)
+
+# FIXME: Work around the namespace being incorrectly detected
+# by glib-mkenums. This needs to be fixed by changing the
+# namespace in libgdata. See !6.
+sources += custom_target(
+ enums + '.c',
+ input: enums_in[0],
+ output: enums + '.c',
+ command: enum_source_cmd,
+ capture: true,
+)
+
+enum_headers += custom_target(
+ enums + '.h',
+ input: enums_in[1],
+ output: enums + '.h',
+ command: enum_header_cmd,
+ capture: true,
+ install: true,
+ install_dir: gdata_includedir / include_subdir,
+)