On Mon, 2017-12-11 at 09:32 -0600, Joshua Watt wrote:
On Mon, 2017-12-11 at 14:58 +0000, Burton, Ross wrote:
On 11 December 2017 at 14:16, Stefan Agner <stefan@agner.ch> wrote:
Hm, isn't this a "base" option which is always supported?

No idea. :)
 
There are a bunch of others. But most seem to derive from PREFIX, which
we set...

  Installation prefix:

    By default, "waf install" will put the files in "/usr/local/bin",
"/usr/local/lib" etc. An installation prefix other than
    "/usr/local" can be given using "--prefix", for example
"--prefix=$HOME"



    --prefix=PREFIX     installation prefix [default: '/usr/local/']
    --destdir=DESTDIR   installation root [default: '']
    --exec-prefix=EXEC_PREFIX
                        installation prefix for binaries [PREFIX]

  Installation directories:
    --bindir=BINDIR     user commands [EXEC_PREFIX/bin]
    --sbindir=SBINDIR   system binaries [EXEC_PREFIX/sbin]
    --libexecdir=LIBEXECDIR
                        program-specific binaries [EXEC_PREFIX/libexec]

    --sysconfdir=SYSCONFDIR
                        host-specific configuration [PREFIX/etc]
    --sharedstatedir=SHAREDSTATEDIR
                        architecture-independent variable data
[PREFIX/com]

    --localstatedir=LOCALSTATEDIR
                        variable data [PREFIX/var]
    --libdir=LIBDIR     object code libraries [EXEC_PREFIX/lib64]
    --includedir=INCLUDEDIR
                        header files [PREFIX/include]
    --oldincludedir=OLDINCLUDEDIR
                        header files for non-GCC compilers
[/usr/include]

    --datarootdir=DATAROOTDIR
                        architecture-independent data root
[PREFIX/share]

    --datadir=DATADIR   architecture-independent data [DATAROOTDIR]
    --infodir=INFODIR   GNU "info" documentation [DATAROOTDIR/info]
    --localedir=LOCALEDIR
                        locale-dependent data [DATAROOTDIR/locale]
    --mandir=MANDIR     manual pages [DATAROOTDIR/man]
    --docdir=DOCDIR     documentation root [DATAROOTDIR/doc/PACKAGE]
    --htmldir=HTMLDIR   HTML documentation [DOCDIR]
    --dvidir=DVIDIR     DVI documentation [DOCDIR]
    --pdfdir=PDFDIR     PDF documentation [DOCDIR]
    --psdir=PSDIR       PostScript documentation [DOCDIR]

But we do allow distros to override those, so passing the on

Vanilla waf only supports --prefix, --libdir, and --bindir. Anything else is a result of loading the gnu_dirs tool, which not all projects are required to do.

Sorry, hit send too soo: waf (at least version 2.0) also errors out on unknown options. I think the three I listed are the only ones we can do generically. There might be some way to easily adding the rest if you know waf is loading gnu_dirs


es that we can is good.  bitbake.conf has the canonical list of prefix variables that we expose.

Ross