Imported Upstream version 1.6.6 upstream/1.6.6
authorJinWang An <jinwang.an@samsung.com>
Fri, 17 Dec 2021 05:27:46 +0000 (14:27 +0900)
committerJinWang An <jinwang.an@samsung.com>
Fri, 17 Dec 2021 05:27:46 +0000 (14:27 +0900)
build-aux/dist-docs.py [new file with mode: 0644]
meson.build

diff --git a/build-aux/dist-docs.py b/build-aux/dist-docs.py
new file mode 100644 (file)
index 0000000..7bd71c6
--- /dev/null
@@ -0,0 +1,22 @@
+#!/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)
index 61fae31..a5e945b 100644 (file)
@@ -1,4 +1,4 @@
-project('json-glib', 'c', version: '1.6.4',
+project('json-glib', 'c', version: '1.6.6',
         license: 'LGPLv2.1+',
         default_options: [
           'warning_level=1',
@@ -155,6 +155,10 @@ subdir('json-glib')
 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,