[meson] don't add_dist_script when we are subproject

Happens when harfbuzz is used as a meson subproject,
  `ERROR: add_dist_script may not be used in a subproject.`
This commit is contained in:
Ebrahim Byagowi authored and GitHub committed 2020-06-20 14:19:12 +04:30
1 parent 175d93bbda
commit a6bcc577a9
1 file changed
+3 -1
+3 -1
View File
@@ -356,7 +356,9 @@ if not get_option('gtk_doc').disabled()
subdir('docs')
endif
meson.add_dist_script('write-tarball-revision.py')
if not meson.is_subproject()
meson.add_dist_script('write-tarball-revision.py')
endif
configure_file(output: 'config.h', configuration: conf)