Patrick Williams | bba48ea | 2024-10-04 08:42:03 -0400 | [diff] [blame^] | 1 | gnome = import('gnome') |
| 2 | |
| 3 | openbmc_intf_src = gnome.gdbus_codegen( |
| 4 | 'openbmc_intf', |
| 5 | sources: 'openbmc_intf.xml', |
| 6 | interface_prefix: 'org.openbmc', |
| 7 | object_manager: true, |
| 8 | ) |
| 9 | |
| 10 | libopenbmc_intf = library( |
| 11 | 'libopenbmc_intf', |
| 12 | 'gpio.c', |
| 13 | 'gpio_configs.c', |
| 14 | 'gpio_json.c', |
| 15 | openbmc_intf_src, |
| 16 | # The gdbus generated code cannot be compiled with -Wpedantic. |
| 17 | c_args : '-Wno-pedantic', |
| 18 | dependencies: [cjson_dep, gio_unix_dep, glib_dep], |
| 19 | version: meson.project_version(), |
| 20 | install: true, |
| 21 | ) |
| 22 | |
| 23 | libopenbmc_intf_includes = include_directories('.') |
| 24 | |
| 25 | import('pkgconfig').generate( |
| 26 | libopenbmc_intf, |
| 27 | name: 'libopenbmc_intf', |
| 28 | version: meson.project_version(), |
| 29 | requires: [gio_unix_dep, glib_dep], |
| 30 | description: '[deprecated] OpenBMC interface library from skeleton', |
| 31 | ) |