]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Meson: Move -DHAVE_CONFIG_H to meson build module
authorFred Morcos <fred.morcos@open-xchange.com>
Tue, 8 Aug 2023 13:53:15 +0000 (15:53 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Wed, 20 Mar 2024 12:28:34 +0000 (13:28 +0100)
meson.build
meson/config/meson.build [new file with mode: 0644]

index 09b0a9ac6ff874703aa23def2958fbf34178766b..87caf6ccedf14bc9e4f0d882222db023614ed86d 100644 (file)
@@ -21,10 +21,10 @@ summary('Build Dir', product_build_dir, section: 'Build')
 fs = import('fs')
 
 # Create the configuration object and dependencies list.
-add_global_arguments('-DHAVE_CONFIG_H', language: ['c', 'cpp'])
 conf = configuration_data()
 deps = []
 
+subdir('meson' / 'config')                 # Config
 subdir('meson' / 'version')                # Generate version define
 subdir('meson' / 'compiler-setup')         # Common compiler setup
 subdir('meson' / 'summary')                # Print a system/project summary
diff --git a/meson/config/meson.build b/meson/config/meson.build
new file mode 100644 (file)
index 0000000..d97d73f
--- /dev/null
@@ -0,0 +1,3 @@
+# Config
+
+add_global_arguments('-DHAVE_CONFIG_H', language: ['c', 'cpp'])