]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Meson: Auth API Swagger
authorFred Morcos <fred.morcos@open-xchange.com>
Thu, 6 Jul 2023 10:02:53 +0000 (12:02 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Wed, 20 Mar 2024 12:28:27 +0000 (13:28 +0100)
meson.build

index 8e91d8ce99606230b37815517e4a5d9a91d43ab5..16c02212a3a71fa1d778cdd513524c8264c377be 100644 (file)
@@ -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