short-description: Setting up native compilation ...
New in 0.49.0
Meson has cross files for describing cross compilation environments, for describing native environments it has equivalent “native files”.
Natives describe the build machine, and can be used to override properties of non-cross builds, as well as properties that are marked as “native” in a cross build.
There are a couple of reasons you might want to use a native file to keep a persistent environment:
During the setup
phase, use the native file as such:
meson setup --native-file my-native-file.ini builddir/
All of the rules about cross files and changed settings apply to native files as well, see here
See the config-files section, for options shared by cross and native files.
Like cross files, native files may be installed to user or system wide locations, defined as:
The order of locations tried is as follows:
These files are not intended to be shipped by distributions, unless they are specifically for distribution packaging, they are mainly intended for developers.