meson: update and modernize#137
Conversation
Use `meson format` to format the meson files. Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Ensure all files are formatted per the .clang-format. Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
If the APML support is disabled, we should not be looking for the APML library. Move this as appropriate so that meson doesn't search for it when not specified. Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Add wrap files for libgpiod and all the common OpenBMC repositories used as dependencies. Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
- Set meson requirement to 1.1.1 which is necessary for C++23 support. - Use `dependency.get_variable` rather than `get_pkgconfig_variable`, which was deprecated in meson 0.56. - Use systemd `systemd_system_unit_dir` variable rather than the underscore-less name, which is deprecated in systemd. Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
The `meson_options.txt` file is deprecated in favor of `meson.options`. Modernize the codebase by using the new filename. Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
Standalone build still fails with the following: It looks like we need a patch for com.amd dbus interfaces and there is a dependency on a header file that is not present when APML is disabled. |
This application has a dependency on APML library. com.amd dbus interface dependency can be separated out. However, APML library dependency can't be avoided. Is there a reason why APML library is being removed out from this application? |
Since AMD is carrying some internal PDI patches while the submodule currently points to the upstream PDI repository, this mismatch is causing the build failures. Until those patches are accepted and merged upstream, we may need to temporarily use an AMD‑hosted PDI repository to keep standalone builds working. |
@supven01 - there is no open source APML library, so I have no way to build this. The application has a meson option |
Can we add a Meson option(s) to disable support for those OEM interfaces? |
Reformat and modernize use of Meson. Fix a number of deprecated patterns,
fix the APML dependency when option is disabled, and add meson subproject
wrap files for all public dependencies so that the repository can be built
in stand-alone mode.