[Rpm-ecosystem] [RFC] Standardizing RPM macro for out-of-tree builds
ignatenko at redhat.com
Mon Oct 17 14:37:59 UTC 2016
during last FPC meeting we agreed that we need some standardization
of macro related to builds where builddir != srcdir (and with
possibility to make it builddir = srcdir).
I was working to make guidelines for ninja and meson. For ninja it
doesn't matter from where you build (it's like make), but meson itself
accepts ONLY out-of-tree builds. Would be nice to get system-wide
(rpm-wide?) macro which stands for:
1) source directory where CMakeLists.txt/meson.build/configure are
2) build directory (I think _target_platform is a good candidate)
to make out-of-tree conversion to in-tree, you do the RPM variable override.
For example, in openSUSE it's defined in cmake as __builddir and __srcdir.
Ideas, suggestions are appreciated!
More information about the Rpm-ecosystem