build: Avoid the doctemplates hack 79/287779/1 accepted/tizen_8.0_unified accepted/tizen_unified accepted/tizen/8.0/unified/20231005.094917 accepted/tizen/unified/20230207.165820 tizen_8.0_m2_release
authorEmmanuele Bassi <ebassi@gnome.org>
Tue, 11 Jan 2022 15:51:10 +0000 (15:51 +0000)
committerJinWang An <jinwang.an@samsung.com>
Mon, 6 Feb 2023 05:05:14 +0000 (14:05 +0900)
commit705e6ed40d6912e1e4218b0e996a77ccbcc83bd9
treeeb79ba14024cb5435d328cb0cdc2ae95c84f7e34
parentb4d36d32e467499a298a37356c0a91863425197f
build: Avoid the doctemplates hack

The hack that copies the doctemplates directory into the build
directory has stopped working with newer versions of Meson; while it's
possible to copy files, custom_target() cannot depend on a directory.
Additionally, the dependency has always been broken.

Instead, we enumerate the template files—after all, it's not like they
change a lot—and then we list them as dependencies for the test targets.

Fixes: #414
Change-Id: I59d3522851b91e3caaeda17bca882e3746d445c0
Signed-off-by: JinWang An <jinwang.an@samsung.com>
giscanner/doctemplates/devdocs/meson.build [new file with mode: 0644]
giscanner/doctemplates/mallard/meson.build [new file with mode: 0644]
giscanner/meson.build
tests/scanner/meson.build