#
dd6efd17 |
| 01-Feb-2025 |
Patrick Williams <patrick@stwcx.xyz> |
meson: reformat with meson formatter
Apply the `meson format` results.
Change-Id: I024144165b08c727dd9621842f1a497830247155 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
#
74eea519 |
| 03-Jan-2025 |
Patrick Williams <patrick@stwcx.xyz> |
sdbus++-gen-meson: leverage `install_dir` for custom targets
Meson has had a `install_dir` directive on `custom_target` which allows specifying per-output where the file should be installed. Leverag
sdbus++-gen-meson: leverage `install_dir` for custom targets
Meson has had a `install_dir` directive on `custom_target` which allows specifying per-output where the file should be installed. Leveraging this greatly simplifies the meson in consumers (such as phosphor-dbus-interfaces) and makes the install less error-prone.
The previous method for installing was to use a `install_subdir` call with large exclude lists (so that markdown did not end up in the include tree). The result of this was that many empty directories were created in the include, markdown, and registry install paths.
Using this method reduces by 25% the meson content in phosphor-dbus-interfaces.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I2b03116f517caa75de902ac7e44e6923d6652cad
show more ...
|
#
144b4f3d |
| 16-Sep-2024 |
Patrick Williams <patrick@stwcx.xyz> |
example: generate markdown
Ensure the markdown generation is tested by running it on the example YAML files.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ib16cf3a8a468dd9d0c59e2aa
example: generate markdown
Ensure the markdown generation is tested by running it on the example YAML files.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ib16cf3a8a468dd9d0c59e2aaac604ef08b79f141
show more ...
|
#
a4df19a7 |
| 28-Mar-2024 |
Konstantin Aladyshev <aladyshev22@gmail.com> |
build: Fix requirements for tests and example features
Currently assert checks inside the meson.build files check the presence of the 'tests'/'example' options by using 'get_option(...).enabled()' e
build: Fix requirements for tests and example features
Currently assert checks inside the meson.build files check the presence of the 'tests'/'example' options by using 'get_option(...).enabled()' expression. This is a bug since this expression is only true for the 'enabled' options and in the local build 'tests' and 'example' features are set to 'auto'. To correct the issue use 'get_option(...).allowed()' which returns true both for 'enabled' and 'auto'.
Tested: On the system without boost "meson setup build" now fails with a message: "Boost is required when tests are enabled"
Change-Id: I92b4f5de01f47d27c8fae32b641e4b2083fe5b25 Signed-off-by: Konstantin Aladyshev <aladyshev22@gmail.com>
show more ...
|
#
fcd80ef1 |
| 29-Nov-2023 |
Patrick Williams <patrick@stwcx.xyz> |
Revert "build: use allowed over enabled"
The meson options used here are dependency checks which should be handled by the disabler flow.
This reverts commit dabaffecf4eb345e71ee942a9035ddaa5e0eb8ac
Revert "build: use allowed over enabled"
The meson options used here are dependency checks which should be handled by the disabler flow.
This reverts commit dabaffecf4eb345e71ee942a9035ddaa5e0eb8ac.
Change-Id: Ia81d168d975efc2c97fd0fefcfee624f2571e1e8 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
dabaffec |
| 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: I115a52f288be4115297a848afa241f902f48dec2 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
bf0283ae |
| 19-Aug-2023 |
Patrick Williams <patrick@stwcx.xyz> |
sdbus++: async: server: generate signal emit fns
Populate enough of the generator to define the basic class structure and generate bindings for emitting signals.
Signed-off-by: Patrick Williams <pa
sdbus++: async: server: generate signal emit fns
Populate enough of the generator to define the basic class structure and generate bindings for emitting signals.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: If62c323f460fc8c73a3aca495e5b89cd84bab32a
show more ...
|
#
4a594c01 |
| 25-Apr-2023 |
Patrick Williams <patrick@stwcx.xyz> |
sdbus++: add start of an async client
Add generator mako templates to generate a simple async client, a corresponding implementation of the 'calculator' interface as a client, and a client aggregati
sdbus++: add start of an async client
Add generator mako templates to generate a simple async client, a corresponding implementation of the 'calculator' interface as a client, and a client aggregation class (client_t) similar to the server aggregation class we have (sdbusplus::server::object_t).
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I6795b2d051bf4d759cb319a9388b23e29d140244
show more ...
|
#
10010b19 |
| 28-Aug-2022 |
Patrick Williams <patrick@stwcx.xyz> |
async: add client-object proxy
Add a class which acts as a client-side proxy to a object. The proxy holds the object address (service, path, interface) and creates Senders for standard dbus operati
async: add client-object proxy
Add a class which acts as a client-side proxy to a object. The proxy holds the object address (service, path, interface) and creates Senders for standard dbus operations: method-call, get-property, set-property, get-all-properties. These Senders can also be used in co-routine contexts (via co_await).
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I4b2e50a8b55d10975984ac4244bb075db8746fbf
show more ...
|
#
ce8d16d9 |
| 07-Sep-2022 |
Willam A. Kennington III <wak@google.com> |
treewide: Leverage sdbus++-gen-meson
This makes us more consistent with other projects instead of writing meson builds for sdbus++ by hand.
Change-Id: I38b69bc67b6a3d80cda1b508a76e106a50d8ab93 Sign
treewide: Leverage sdbus++-gen-meson
This makes us more consistent with other projects instead of writing meson builds for sdbus++ by hand.
Change-Id: I38b69bc67b6a3d80cda1b508a76e106a50d8ab93 Signed-off-by: Willam A. Kennington III <wak@google.com>
show more ...
|
#
293c8a26 |
| 02-Sep-2022 |
William A. Kennington III <wak@google.com> |
sdbus++: Fix meson dependency generation
All of the generated meson files optionally look for sdbus++ sources that can be plumbed in to allow changes to the generator code to correctly trigger rebui
sdbus++: Fix meson dependency generation
All of the generated meson files optionally look for sdbus++ sources that can be plumbed in to allow changes to the generator code to correctly trigger rebuilds.
This will require adding a new variable prior to generated sources, `sdbusplusplus_depfiles`. You can convert previous meson defitions with the follwing.
``` sdbusplus_dep = dependency('sdbusplus') sdbusplusplus_prog = find_program('sdbus++', native: true) sdbuspp_gen_meson_prog = find_program('sdbus++-gen-meson', native: true) sdbusplusplus_depfiles = files() if sdbusplus_dep.type_name() == 'internal' sdbusplusplus_depfiles = subproject('sdbusplus').get_variable('sdbusplusplus_depfiles') endif ```
Change-Id: Ic2d5bafdbdd2595be8c44e0e616e590143639f21 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
270f242c |
| 04-Jun-2021 |
William A. Kennington III <wak@google.com> |
build: Propagate boost arguments as needed
This aligns sdbusplus_dep and the packageconfig to pass the needed dependency information to utilize boost ASIO with the expected compiler arguments.
Chan
build: Propagate boost arguments as needed
This aligns sdbusplus_dep and the packageconfig to pass the needed dependency information to utilize boost ASIO with the expected compiler arguments.
Change-Id: I4916fbeaf741db3165358d800229e984f53b687b Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
09b88f26 |
| 02-Sep-2020 |
Krzysztof Grobelny <krzysztof.grobelny@intel.com> |
Added utility functions getAllProperties and unpackProperties
Tested: - Added example to verify that functions work correctly - Added new unit tests that are passing - All other tests are stil
Added utility functions getAllProperties and unpackProperties
Tested: - Added example to verify that functions work correctly - Added new unit tests that are passing - All other tests are still passing after this change - Added handling of new type (std::monostate) which can be used as first type in variant to represent that none of the other types was matched
Change-Id: Ic8e7c8d3116d64b94be37147ae8a80ebb5d3811d Signed-off-by: Krzysztof Grobelny <krzysztof.grobelny@intel.com>
show more ...
|
#
2be0e173 |
| 27-Jul-2020 |
Krzysztof Grobelny <krzysztof.grobelny@intel.com> |
Added flags parameter to register_property method
- flags parameter is set by default to vtable::property_::emits_change - with this change user can set parameter to vtable::property_::none to avo
Added flags parameter to register_property method
- flags parameter is set by default to vtable::property_::emits_change - with this change user can set parameter to vtable::property_::none to avoid sending property change signal for greater performance - added example/register-property.cpp with example application which uses new functions
Tested: - run openbmc tests with this change, no regression detected - tested that default behaviour (property_::emits_change) is working as intended - tested that properties still signal change when emit_change flag is used - tested that properties doesn't signal change when no emit_change flag is used - tested that const flag is passed and handled corretly - verified that performance of application increases when emit_change flag turned off
Signed-off-by: Krzysztof Grobelny <krzysztof.grobelny@intel.com> Change-Id: If6187cf076b8e05a5211c83797374a3be94da0c9
show more ...
|
#
5e893b9d |
| 04-Jun-2020 |
William A. Kennington III <wak@google.com> |
build: Add options for tweaking what is built
We don't need to always build tests or examples so make it possible for the user to configure what is built. The default is to automatically build them
build: Add options for tweaking what is built
We don't need to always build tests or examples so make it possible for the user to configure what is built. The default is to automatically build them if possible.
Change-Id: I5cb6b1689c408188f14d1fcbcfb0006c17f1c90d Signed-off-by: William A. Kennington III <wak@google.com> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
3a6d5841 |
| 09-Jun-2020 |
Patrick Williams <patrick@stwcx.xyz> |
test: fix boost dependency for bus/aio
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I6d2383398ca3cf8582d64d3a643739b708933c37
|
#
7d8dfc47 |
| 04-Jun-2020 |
William A. Kennington III <wak@google.com> |
build: Move boost dependency into example
This simplifies the build check by using disabler objects, and will remove the need to do the dependency check if we disable examples. They will be disabled
build: Move boost dependency into example
This simplifies the build check by using disabler objects, and will remove the need to do the dependency check if we disable examples. They will be disabled for subprojects.
Change-Id: I50a4166b98fbb73ae10fa83174c4e6fccdaab740 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
d0285b92 |
| 01-Jun-2020 |
Patrick Williams <patrick@stwcx.xyz> |
meson: create structure for use as submodule
Some other openbmc projects have set up sdbusplus to use as a meson-subproject. When porting one of them (entity-manager) to use the meson build, I real
meson: create structure for use as submodule
Some other openbmc projects have set up sdbusplus to use as a meson-subproject. When porting one of them (entity-manager) to use the meson build, I realized we are not structuring our meson.build file according to best-practices for consumption as a submodule. Specifically, we are missing the 'sdbusplus_dep' variable as described in the meson reference: https://mesonbuild.com/Subprojects.html
Now that 'sdbusplus_dep' is defined, use it throughout the rest of the meson.build files as well for simplification.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I79ad586aa185f769c7ecc83ef06e1f3897e8db2d
show more ...
|
#
ad145e09 |
| 19-May-2020 |
Patrick Williams <patrick@stwcx.xyz> |
meson: feature match autotools support
Add support to build the example and test directories, which will get us feature match with the current autotools-based build.
Signed-off-by: Patrick Williams
meson: feature match autotools support
Add support to build the example and test directories, which will get us feature match with the current autotools-based build.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ib0789b6a715be366601eb639fd70ca3da9536a66
show more ...
|