summaryrefslogtreecommitdiff
path: root/docs/markdown/Machine-files.md
AgeCommit message (Collapse)Author
2024-04-22docs: fix a typo of pathWu, Zhenyu
Refer https://github.com/mesonbuild/meson/blob/master/docs/markdown/Machine-files.md?plain=1#L285
2023-08-23machine file: Add @GLOBAL_SOURCE_ROOT@ and @DIRNAME@Xavier Claessens
2023-08-02treewide: internally avoid deprecated machine file uses of "pkgconfig"Eli Schwartz
We support this in a machine file: ``` [binaries] pkgconfig = 'pkg-config' pkg-config = 'pkg-config' ``` and you can use either one, because internally we look up both. If you only set *one* of them, this plays awkwardly with setting $PKG_CONFIG, since we don't know which one you set in the machine file and the *other* one will be initialized from the environment instead. In commit 22df45a31981874310a78dde0df59a6a7c5ebb29 we changed program lookup of config-tool style dependencies to use the regular tool names and only fall back on the strange internal names. This affected the pkg-config class too. The result is that instead of preferring `pkgconfig =` followed by $PKG_CONFIG followed by `pkg-config =`, we inverted the lookup order. This is a good idea anyway, because now it behaves consistently with `find_program('pkg-config')`. Unfortunately, we documented the wrong name in a bunch of places, and also used the wrong name in various testsuite bits, which meant that if you set $PKG_CONFIG and then ran the testsuite, it would fail. Correct these references, because they are buggy. One test case expected to find_program() a native copy for convenience of testing against natively installed glib. Force it to resolve a native copy.
2023-06-27modules/rust: Add a machine file property for extra clang args with bindgenDylan Baker
It's currently impossible to inject extra clang arguments when using bindgen, which is problematic when cross compiling since you may need critical arguments like `--target=...`. Because such arguments must be passed after the `--` it's impossible to inject them currently without going to something like a wrapper script. Fixes: #11805
2021-10-10Fix typos discovered by codespellChristian Clauss
2021-09-10docs: add note about built-in options supportePirat
Older meson versions would not honor the `<lang>_args` and `<lang>_link_args` in the built-in options section, add a note about this to the relevant section as it can cause quite some surprises when using a crossfile with an older meson version.
2021-07-08docs: fix minor typos in Machine-files.mdAndrea Pappacoda
2021-04-12dependency: Add JDK system dependencyTristan Partin
The JDK system dependency is important for detecting JDK include paths that may be useful when developing a JNI interface.
2021-01-31Capitalize "Meson" consistently as it is a proper name. [skip ci]Jussi Pakkanen
2021-01-30Rewrap long text lines in docs. [skip ci]Jussi Pakkanen
2021-01-26docs: Fix sentence in Machine-files.md [skip ci]Florian Schmaus
Fixes: 1ca17dc853ec ("docs/machine-files: Add a section on data types")
2021-01-13Fix misspellsAntonin Décimo
Signed-off-by: Antonin Décimo <antonin.decimo@gmail.com>
2020-10-13cmake: Add cross docsDaniel Mensinger
2020-10-05machinefiles: Allow keys to be stored case insensitiveDylan Baker
This is required to make the various keys in the [user options] section work the same as they do in the meson_options.txt file, where we don't have any rules about case sensitivity. There is some risk here. Someone may be relying on this lower by default behavior, and this could break their machine files. Fixes #7731
2020-08-01update version from 0.55. to 0.56Dylan Baker
2020-08-01machine-files: deprecate the paths sectionDylan Baker
2020-08-01docs/machine-files: Add a section on data typesDylan Baker
This attempts to clarify the usage of strings and arrays, as well as document the boolean type that has been exposed via the project and built-in options
2020-08-01Allow setting built-in options from cross/native filesDylan Baker
This is like the project options, but for meson builtin options. The only real differences here have to do with the differences between meson builtin options and project options. Some meson options can be set on a per-machine basis (build.pkg_config_path vs pkg_config_path) others can be set on a per-subproject basis, but should inherit the parent setting.
2020-07-30docs/Machine-files: remove duplicate Properties sectionDylan Baker
2020-07-30Allow setting project options from cross or native filesDylan Baker
This allows adding a `[project options]` section to a cross or native file that contains the options defined for a project in it's meson_option.txt file.
2020-06-29envconfig: Add [constants] section in machine filesXavier Claessens
Machine files already supports `+` operator as an implementation detail, since it's using eval(). Now make it an officially supported feature and add a way to define constants that are used while evaluating an entry value.
2020-03-28docs: Add a new page with common cross/native file options [skip ci]Dylan Baker
Rather than having two separate sections with duplicated information lets just have one for the common settings, and only document sections specific to each file in separately