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

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


On 2018-03-23 19:26, Rainer Müller wrote:
> 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}

Wait, I misunderstood meson here, as it also needs the ${configure.dir},
so it does not have to run in the source directory.

Then it is basically only this that can be done in base?

if {... out of source ...} {
    default build.dir {${workpath}/build}
} else {
    default build.dir {${worksrcpath}}
}

Rainer


More information about the macports-dev mailing list