aboutsummaryrefslogtreecommitdiff
path: root/docs/yaml/functions
AgeCommit message (Collapse)AuthorFilesLines
2022-03-22Fix missing ' in custom_target docsrusty-snake1-2/+2
2022-03-22Add ability to add resources to jarsTristan Partin1-0/+4
Previously Meson lacked the ability to add resources to jar files. Fixes #9945
2022-03-20docs: fix incorrect default for test is_parallelEli Schwartz1-1/+1
In the original RefMan 2.0 implementation, this incorrectly started claiming that the default is false. Fixes #10155
2022-03-13Merge pull request #9339 from dcbaker/submit/structured_sourcesJussi Pakkanen2-1/+22
Structured Sources
2022-03-07docs: document the rust_crate_type build_target keywordDylan Baker1-0/+20
2022-03-07docs: Add docs for structured_sourcesDylan Baker2-1/+22
2022-03-02document and raise an error for disallowed combination of install_headers argsEli Schwartz1-2/+5
It makes no sense to specify both: - install_dir, which overrides the -Dincludedir= builtin option - subdir, which suffixes the -Dincludedir= builtin option We've always silently ignored the subdir in this case, which is really surprising if someone actually passed it and expected it to do something. We also confusingly didn't say anything in the documentation about it. Document that the options are incompatible, and explicitly check to see if they are both passed -- if so, raise an error message pointing out that only install_dir should be used. Fixes #10046
2022-02-28Allow setting method/separator in environment() and meson.add_devenv()Xavier Claessens1-1/+22
2022-02-20add all supported arguments in docs for summary()Stone Tickle1-5/+28
2022-02-14shared module: Allow linking on AndroidNirbheek Chauhan1-5/+11
Android requires shared modules that use symbols from other shared modules to be linked before they can be dlopen()ed in the correct order. Not doing so leads to a missing symbol error: https://github.com/android/ndk/issues/201 We need to always allow linking for this. Also add a soname, although it's not confirmed that it's needed, and it doesn't really hurt if it isn't needed.
2022-02-09meson: Allow directory options outside of prefixJan Tojnar2-14/+12
This bring us in line with Autotools and CMake and it is useful for platforms like Nix, which install projects into multiple independent prefixes. As a consequence, `get_option` might return absolute paths for some directory options, if a directory outside of prefix is passed. This is technically a backwards incompatible change but its effect should be minimal, thanks to widespread use of `join_paths`/`/` operator and pkg-config generator module. It should only cause an issue when a path were constructed by concatenating the value of directory path option. Also remove a comment about commonpath since we do not use that since <https://github.com/mesonbuild/meson/commit/00f5dadd5b7d71c30bd7393d165a87f554eb92e5>. Fixes: https://github.com/mesonbuild/meson/issues/2561
2022-02-03docs: strongly recommend the use of SPDX instead of array of licenseDylan Baker1-9/+17
The array of licenses is not clear, where and SPDX expression using AND and OR is very clear, take for example this: `['Apache', 'GPLv2']`. What does that mean? Any Apache license you like and GPLv2? Using a valid SPDX license identifier however makes it extremely clear what is meant: `'Apache-2.0 OR GPL-2.0-only'`. It is very clear that you mean, "this is Apache 2.0, however, you can use as GPL-2.0 for the purpose of linking it into your GPL-2.0 project".
2022-02-01interpreter: support for forcibly verbose logging of some testsPaolo Bonzini2-0/+15
Add a new keyword argument to test() and benchmark(), completing the implementation of the feature. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-01-29docs: find_program can return the current Python3 interpreterAndrea Pappacoda1-1/+3
This was the case since 067ff7eeae26eda8edc9f7f7432f551c3e373eaa, i.e. version 0.50.0. Fixes #3856
2021-12-08docs: Add the `configuration` keyword argument to `configure_File`Dylan Baker1-0/+7
We were missing the most important keyword argument of them all!
2021-12-01add install_symlink functionPablo Correa Gómez1-0/+34
Allows installing symlinks directly from meson, which can become useful in multiple scenarios. Current main use is to help moving forward #9557
2021-11-29docs: add missing argument documentation for run_command captureDylan Baker1-0/+9
2021-11-24shared_module: Add soname when used as a link targetNirbheek Chauhan2-7/+9
Emit a detailed deprecation warning that explains what to do instead. Also add a unittest. ``` DEPRECATION: target prog links against shared module mymod, which is incorrect. This will be an error in the future, so please use shared_library() for mymod instead. If shared_module() was used for mymod because it has references to undefined symbols, use shared_libary() with `override_options: ['b_lundef=false']` instead. ``` Fixes https://github.com/mesonbuild/meson/issues/9492
2021-11-05Fix markdown formating in find_program.yamlrusty-snake1-2/+2
fixes #9528
2021-10-30Added warning if run_command is called without the check kwargVolker Weißmann1-1/+2
2021-10-26message: Allow boolXavier Claessens1-3/+3
It has always been working even if not documented and there is no reason to not accept it. However, change "True/False" to "true/false" to be consistent with meson language. Fixes: #9436
2021-10-21Fix typosHofer-Julian2-2/+2
"seperator" -> "separator"
2021-10-08doc: fix yaml indentation typo that broke building the websiteEli Schwartz1-6/+6
2021-10-08add install_emptydir functionEli Schwartz2-3/+33
This replaces the absolute hack of using ``` install_subdir('nonexisting', install_dir: 'share') ``` which requires you to make sure you don't accidentally or deliberately have a completely different directory with the same name in your source tree that is full of files you don't want installed. It also avoids splitting the name in two and listing them in the wrong order. You can also set the install mode of each directory component by listing them one at a time in order, and in fact create nested structures at all. Fixes #1604 Properly fixes #2904
2021-10-03docs: Update YAML docs after rebaseDaniel Mensinger2-8/+43
2021-10-03docs: Added new static docsDaniel Mensinger1-0/+3
2021-10-03docs: added install_tag docsDaniel Mensinger5-18/+62
2021-10-03docs: added unset_variable()Daniel Mensinger1-0/+11
2021-10-03docs: Add the YAML Reference manualDaniel Mensinger53-0/+2679