[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 2020-06-20 14:19:12 +04:30 committed by GitHub
parent 175d93bbda
commit a6bcc577a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

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)