Introducing some "global" build out-of-source variable

Rainer Müller raimue at macports.org
Fri Mar 23 18:26:37 UTC 2018


On 2018-03-23 17:52, Mojca Miklavec wrote:
> I would like to propose introducing some "build-out-of-source"
> variable that would work for any build system (CMake, meson,
> configure, ...).
For cmake, you run in the build directory, specifying the path to the
source directory.

  configure.dir        ${workpath}/build
  configure.cmd        cmake
  configure.post_args  ${worksrcpath}

For meson, you run in the source directory, specifying the path to the
build directory.

  build.dir            ${workpath}/build
  configure.cmd        meson
  configure.post_args  ${configure.dir} ${build.dir}

I see no way to unify this or do anything clever about it in base.
So what would such an option do?

Rainer


More information about the macports-dev mailing list