Duplicated code for pkg-config and cmake configuration is avoided by letting every rizin module register itself in a global dictionary called "modules" which is then iterated in one place to perform any shared logic, inspired by how qemu handles multiple targets in its meson build system. This is an almost pure refactor, so the resulting .pc/.cmake files should be identical with the following exceptions: - rz_reg.pc does not have plugindir anymore as rz_reg has no plugins. - Some other modules have their dependencies in .pc files altered to be consistent with cmake. |
||
|---|---|---|
| .. | ||
| p | ||
| lang.c | ||
| meson.build | ||