diff options
author | Jens Georg <mail@jensge.org> | 2022-01-03 11:15:07 +0100 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2022-01-03 19:10:51 +0100 |
commit | 0986455bdf9b01e63bb171f068b13ed2fcd557ee (patch) | |
tree | 8eb2494fb08e08a8c051e7e828e6beece7e831c4 | |
parent | d2ad83d588759d005c7a3bae87f7523666e9a733 (diff) | |
download | gupnp-0986455bdf9b01e63bb171f068b13ed2fcd557ee.tar.gz |
build: Distribute docs
-rw-r--r-- | build-aux/dist-docs.py | 19 | ||||
-rw-r--r-- | meson.build | 4 |
2 files changed, 23 insertions, 0 deletions
diff --git a/build-aux/dist-docs.py b/build-aux/dist-docs.py new file mode 100644 index 0000000..0403b2a --- /dev/null +++ b/build-aux/dist-docs.py @@ -0,0 +1,19 @@ +#!/usr/bin/env python3 + +import os +import shutil + +references = [ + 'doc/GUPnP', +] + +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) + diff --git a/meson.build b/meson.build index 5f7eebd..7a6e488 100644 --- a/meson.build +++ b/meson.build @@ -60,6 +60,10 @@ if get_option('examples') subdir('examples') endif +if not meson.is_subproject() + meson.add_dist_script('build-aux/dist-docs.py') +endif + summary( { 'Version': meson.project_version(), |