History log of /openbmc/phosphor-inventory-manager/meson.build (Results 1 – 10 of 10)
Revision Date Author Comments
# 58a0c359 22-Apr-2024 Konstantin Aladyshev <aladyshev22@gmail.com>

meson: Provide missing dependencies for the local build

Currently local meson build fails because tests don't require the
necessary dependencies.
Provide missing dependencies to fix the issue.

Test

meson: Provide missing dependencies for the local build

Currently local meson build fails because tests don't require the
necessary dependencies.
Provide missing dependencies to fix the issue.

Tested:
"meson setup build && cd build && meson compile" finishes successfully.

Change-Id: Icaab5b5a5d2ec23e9adc76ff2df5ec07d1a87cc7
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>

show more ...


# a927ffe2 22-Apr-2024 Konstantin Aladyshev <aladyshev22@gmail.com>

meson: Provide sdbusplus env for gen* custom targets

Currently local meson build fails with the following errors:
"""
[345/756] Generating generated.cpp with a custom command
FAILED: generated.cpp
.

meson: Provide sdbusplus env for gen* custom targets

Currently local meson build fails with the following errors:
"""
[345/756] Generating generated.cpp with a custom command
FAILED: generated.cpp
...
import sdbusplus.property
ModuleNotFoundError: No module named 'sdbusplus'

[346/756] Generating gen_serialization.hpp with a custom command
FAILED: gen_serialization.hpp
...
import sdbusplus.property
ModuleNotFoundError: No module named 'sdbusplus'
"""
This is happening because 'pimgen.py' script used in gen* custom
targets refers to python modules from the external 'sdbusplus' project.
Therefore in case of a local build it is necessary to provide search
path to the relevant sdbusplus subproject folder. Fix this with the
help of 'PYTHONPATH' environment variable.

Tested:
Local meson build no longer fails with the 'ModuleNotFoundError's.

Change-Id: Ic65c30cacc516a083dfa44a4b5736e2efbacf617
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>

show more ...


# 31424485 02-Apr-2024 Konstantin Aladyshev <aladyshev22@gmail.com>

meson: Fix local cereal build

Currently local build is failing with a message:
"""
cereal| Exception: Failed to configure the CMake subproject: Could NOT
find Boost (missing: Boost_INCLUDE_DIR seria

meson: Fix local cereal build

Currently local build is failing with a message:
"""
cereal| Exception: Failed to configure the CMake subproject: Could NOT
find Boost (missing: Boost_INCLUDE_DIR serialization)
Subproject subprojects/cereal is buildable: NO (disabling)
"""
Since cereal requires boost only for the sandbox build and this
functionality is not needed, add option to skip building performance
sandbox comparison to solve the issue.

Tested:
"meson setup build" no longer fails with the cereal error.

Change-Id: I021ee1e3a634c0abc43aa61496fb1831dacab572
Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>

show more ...


# 3adc8452 07-Dec-2023 Patrick Williams <patrick@stwcx.xyz>

meson: adjust nlohmann-json dependency

Simplify nlohmann-json dependency logic and use wrap file name aligned
with other repositories.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id:

meson: adjust nlohmann-json dependency

Simplify nlohmann-json dependency logic and use wrap file name aligned
with other repositories.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ie6082726a567e0876e5f8b9d941ed1101e056d2f

show more ...


# ba49359e 29-Nov-2023 Patrick Williams <patrick@stwcx.xyz>

build: use allowed over enabled

Meson feature options are typically in a tri-state of enabled, disabled,
or auto. The enabled and disabled functions on an option (from
`get_option`) no longer retur

build: use allowed over enabled

Meson feature options are typically in a tri-state of enabled, disabled,
or auto. The enabled and disabled functions on an option (from
`get_option`) no longer return true for auto features. Instead, the
expectation is to use `allowed()` which is true for both enabled and auto.

Switch all uses of `enabled` to `allowed`.

Change-Id: Iaf683f8589b9348184ad75bdf2d62a9ef8a776c2
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


# c3eb3879 12-Jul-2023 Patrick Williams <patrick@stwcx.xyz>

build: upgrade to C++23

Meson 1.1.1 and GCC-13 both support C++23 and a sufficient portion of
the standard has been implemented. Upgrade the build to leverage it.

Change-Id: I5c7aa4fb4a136332a812d

build: upgrade to C++23

Meson 1.1.1 and GCC-13 both support C++23 and a sufficient portion of
the standard has been implemented. Upgrade the build to leverage it.

Change-Id: I5c7aa4fb4a136332a812d1c6d3f0e00dc3812a79
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


# 8a1ccdc6 12-Apr-2023 Patrick Williams <patrick@stwcx.xyz>

meson: remove deprecated get_pkgconfig_variable

Since meson 0.56, the `get_pkgconfig_variable` has been deprecated. In
meson 0.58 the `get_variable` was enhanced to no longer require the
`pkgconfig

meson: remove deprecated get_pkgconfig_variable

Since meson 0.56, the `get_pkgconfig_variable` has been deprecated. In
meson 0.58 the `get_variable` was enhanced to no longer require the
`pkgconfig` keyword argument. Ensure meson 0.58 is required and update
the usage of all `get_pkgconfig_variable` and `get_variable` to be the
modern variant.

Change-Id: I98e42b3ac19670c2ff882b03702bffff74957f04
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


# c4c94828 05-Jan-2023 Santosh Puranik <santosh.puranik@gmail.com>

meson: Fix BUSNAME argument to pimgen.py

Meson does not support querying environment variables. The old automake
build systems used the $BUSNAME environment variable to compile PIM with
the busname

meson: Fix BUSNAME argument to pimgen.py

Meson does not support querying environment variables. The old automake
build systems used the $BUSNAME environment variable to compile PIM with
the busname it needs to request.

Since moving to meson, this does not work as intended and was causing
pimgen to generate bad C++ code.

BUSNAME is now setup as a configuration data. This commit queries the
configuration data for the BUSNAME and passes it on as an argument to
pimgen.py.

Tested:

Tested by bitbaking a witherspoon image. PIM now compiles cleanly.

Change-Id: I567841231c8f295442e6d372d2a758737fcf70c8
Signed-off-by: Santosh Puranik <santosh.puranik@gmail.com>

show more ...


# 07f94f02 14-Apr-2022 George Liu <liuxiwei@inspur.com>

meson: Add meson build for test

This commit is to add meson build for test.
and later, we will remove autotools and replace it with meson.

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id:

meson: Add meson build for test

This commit is to add meson build for test.
and later, we will remove autotools and replace it with meson.

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: Ia36cec4eda7937461f62f43dd74907e82a164bf6

show more ...


# a31da979 14-Apr-2022 George Liu <liuxiwei@inspur.com>

meson: Add meson build

This commit is to add meson build.

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: If7b62fa788406148836615237eb8df553aeb3351