diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2019-01-07 13:47:27 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2019-02-11 12:50:32 -0800 |
commit | 5b896ed70bbf18e633bbeca442c90610e3d66a22 (patch) | |
tree | 1205d983b474f4e97eb596769f410cc6ffc399d6 /docs/markdown/Native-environments.md | |
parent | b50899419cb2de27af34e5a955695a61c2863c51 (diff) | |
download | meson-5b896ed70bbf18e633bbeca442c90610e3d66a22.zip meson-5b896ed70bbf18e633bbeca442c90610e3d66a22.tar.gz meson-5b896ed70bbf18e633bbeca442c90610e3d66a22.tar.bz2 |
allow setting directory locations in a native file
This allows the person running configure (either a developer, user, or
distro maintainer) to keep a configuration of where various kinds of
files should end up.
Diffstat (limited to 'docs/markdown/Native-environments.md')
-rw-r--r-- | docs/markdown/Native-environments.md | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/docs/markdown/Native-environments.md b/docs/markdown/Native-environments.md index a9719a7..f0d41eb 100644 --- a/docs/markdown/Native-environments.md +++ b/docs/markdown/Native-environments.md @@ -43,6 +43,23 @@ rust = '/usr/local/bin/rust' llvm-config = '/usr/local/llvm-svn/bin/llvm-config' ``` +### Paths and Directories + +As of 0.50.0 paths and directories such as libdir can be defined in the native +file in a paths section + +```ini +[paths] +libdir = 'mylibdir' +prefix = '/my prefix' +``` + +These values will only be loaded when not cross compiling. Any arguments on the +command line will override any options in the native file. For example, passing +`--libdir=otherlibdir` would result in a prefix of `/my prefix` and a libdir of +`otherlibdir`. + + ## Loading multiple native files Unlike cross file, native files allow layering. More than one native file can be |