meson: Require meson 1.1
Fixes the following warnings:
```
WARNING: Project specifies a minimum meson_version '>=0.58.0' but uses features which were added in newer versions:
* 0.59.0: {'feature_option.allowed()'}
* 1.1: {'meson.options file'}
```
Additionally, with the bump, fix the following warning:
```
WARNING: Deprecated features used:
* 0.64.0: {'copy arg in configure_file'}
```
Change-Id: I3b678769674f64e9050b4aa85fe6775c556ea8f6
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
diff --git a/meson.build b/meson.build
index 606d987..8f91c88 100644
--- a/meson.build
+++ b/meson.build
@@ -4,7 +4,7 @@
default_options: ['warning_level=3', 'werror=true', 'cpp_std=c++20'],
license: 'Apache-2.0',
version: '0.1',
- meson_version: '>=0.58.0',
+ meson_version: '>=1.1',
)
# Enable io_uring for all daemons with below flags.
diff --git a/service_files/meson.build b/service_files/meson.build
index cfa3297..80143bf 100644
--- a/service_files/meson.build
+++ b/service_files/meson.build
@@ -12,14 +12,13 @@
['external', 'xyz.openbmc_project.externalsensor.service'],
]
+fs = import('fs')
foreach tuple : unit_files
if get_option(tuple[0]).allowed()
- configure_file(
- copy: true,
- input: tuple[1],
+ fs.copyfile(
+ tuple[1],
install: true,
install_dir: systemd_system_unit_dir,
- output: tuple[1],
)
endif
endforeach