--- /dev/null
+#!/usr/bin/env python3
+
+import os
+import shutil
+import subprocess
+
+from pathlib import PurePath
+
+
+references = [
+ 'docs/json-glib/json-glib-1.0',
+]
+
+sourceroot = os.environ.get('MESON_SOURCE_ROOT')
+buildroot = os.environ.get('MESON_BUILD_ROOT')
+distroot = os.environ.get('MESON_DIST_ROOT')
+
+for reference in references:
+ src_path = os.path.join(buildroot, reference)
+ if os.path.isdir(src_path):
+ dst_path = os.path.join(distroot, reference)
+ shutil.copytree(src_path, dst_path)
-project('json-glib', 'c', version: '1.6.4',
+project('json-glib', 'c', version: '1.6.6',
license: 'LGPLv2.1+',
default_options: [
'warning_level=1',
subdir('po')
subdir('doc')
+if not meson.is_subproject()
+ meson.add_dist_script('build-aux/dist-docs.py')
+endif
+
summary({
'prefix': get_option('prefix'),
'includedir': json_includedir,