From: Fred Morcos Date: Thu, 6 Jul 2023 10:02:53 +0000 (+0200) Subject: Meson: Auth API Swagger X-Git-Tag: rec-5.1.0-alpha1~80^2~349 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=879c7a6fd936663be4d762dec7d46a07833c0e89;p=thirdparty%2Fpdns.git Meson: Auth API Swagger --- diff --git a/meson.build b/meson.build index 8e91d8ce99..16c02212a3 100644 --- a/meson.build +++ b/meson.build @@ -50,6 +50,14 @@ subdir('meson/fuzz-targets') # Fuzzing Targets subdir('meson/python-venv') # Python Venv subdir('meson/from-git') # From Git +# Swagger +if not fs.exists('pdns/api-swagger.json') and not python_have_venv + error('Python3 and/or its venv module is not available and ' + + '`pdns/api-swagger.json` cannot be found. ' + + 'The Authoritative Server cannot be built.') +endif +# TODO Generate api-swagger.json + # Sqlite3 opt_sqlite3 = get_option('sqlite3') # TODO Use Sqlite3