Searched hist:"8 b8f606f" (Results 1 – 2 of 2) sorted by relevance
/openbmc/dbus-sensors/src/ |
H A D | meson.build | 8b8f606f Fri Aug 27 14:53:50 CDT 2021 Patrick Williams <patrick@stwcx.xyz> build: use nlohmann-json dependency Many sources files want to use the 'json.hpp' file from nlohmann, but when this is installed as a subproject it isn't in the default search path, unless a dependency to it is explicitly added. In most cases this is pulled in via the 'Thresholds.hpp' file which is in-turn linked in by the thresholds static library. In meson, static libraries shouldn't be linked against directly but instead indirectly through a 'dependency' relationship, otherwise the implicit header file needs are not able to be communicated up to users of the library (such as Thresholds -> json.hpp here). Revamp the static library relationships to use 'dependencies' rather than 'link_with' so that the header file needs are properly expressed. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Id78aee6af03f10c555aa84edbe9ec44ac04ec342
|
/openbmc/dbus-sensors/ |
H A D | meson.build | 8b8f606f Fri Aug 27 14:53:50 CDT 2021 Patrick Williams <patrick@stwcx.xyz> build: use nlohmann-json dependency Many sources files want to use the 'json.hpp' file from nlohmann, but when this is installed as a subproject it isn't in the default search path, unless a dependency to it is explicitly added. In most cases this is pulled in via the 'Thresholds.hpp' file which is in-turn linked in by the thresholds static library. In meson, static libraries shouldn't be linked against directly but instead indirectly through a 'dependency' relationship, otherwise the implicit header file needs are not able to be communicated up to users of the library (such as Thresholds -> json.hpp here). Revamp the static library relationships to use 'dependencies' rather than 'link_with' so that the header file needs are properly expressed. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Id78aee6af03f10c555aa84edbe9ec44ac04ec342
|