From 66627c8323d017c41b1b0ba8ceea989fdb654d1d Mon Sep 17 00:00:00 2001 From: Fred Morcos Date: Tue, 8 Aug 2023 15:53:15 +0200 Subject: [PATCH] Meson: Move -DHAVE_CONFIG_H to meson build module --- meson.build | 2 +- meson/config/meson.build | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 meson/config/meson.build diff --git a/meson.build b/meson.build index 09b0a9ac6f..87caf6cced 100644 --- a/meson.build +++ b/meson.build @@ -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 index 0000000000..d97d73f9a3 --- /dev/null +++ b/meson/config/meson.build @@ -0,0 +1,3 @@ +# Config + +add_global_arguments('-DHAVE_CONFIG_H', language: ['c', 'cpp']) -- 2.47.2