summaryrefslogtreecommitdiff
path: root/data
AgeCommit message (Collapse)Author
2025-10-15revert local_program()Eli Schwartz
This reverts https://github.com/mesonbuild/meson/pull/15107 Explicit objections regarding the design were raised and not answered, so it shouldn't have been merged. It needs to be discussed and revisited.
2025-10-15Add local_program() functionXavier Claessens
2025-09-03Use https for mesonbuild.comTobias Stoeckmann
Since http://mesonbuild.com redirects to https://mesonbuild.com anyway, use https directly in documentation.
2025-01-19zsh: Fix 'meson init --language' completionmeator
This commit fixes invalid syntax, which leads to (eval):1: number expected _arguments:465: command not found: _ when trying to complete 'meson init --language=<TAB>'.
2025-01-19zsh: Add missing flags to 'meson install'meator
Also start flag description with a lowercase letter.
2025-01-08Add macros for declarative buildsystems of rpm >= 4.20fundawang
2024-11-02Add -q as alternative to --quiet for meson installAndreas Karlsson
Since "meson test" already has both -q and --quiet it makes a lot of sense to add the short option to "meson install" too for reasons of symmetry.
2024-09-11Fix typosspaette
2024-07-21zsh: Fix incorrect __meson_wrap_modes expansionJoey Pabalinas
Signed-off-by: Joey Pabalinas <joeypabalinas@gmail.com>
2024-07-21zsh: Add completions for {rewrite,devenv,env2mfile,format,help} subcommandsJoey Pabalinas
Signed-off-by: Joey Pabalinas <joeypabalinas@gmail.com>
2024-07-21zsh: Fix spelling errorsJoey Pabalinas
Signed-off-by: Joey Pabalinas <joeypabalinas@gmail.com>
2024-07-21zsh: Add new vs backendsJoey Pabalinas
Signed-off-by: Joey Pabalinas <joeypabalinas@gmail.com>
2024-07-10tests: Clean up leftover files from source dirs.Jussi Pakkanen
2024-06-17Add meson test --max-linesDaan De Meyer
Let's allow users to configure how many lines are shown at most when a test fails.
2024-04-23Add meson test --interactiveDaan De Meyer
This is very similar to --gdb, except it doesn't spawn GDB, but connects stdin/stdout/stderr directly to the test itself. This allows interacting with integration tests that spawn a shell in a container or virtual machine when the test fails. In systemd we're migrating our integration tests to run using the meson test runner. We want to allow interactive debugging of failed tests directly in the virtual machine or container that is spawned to run the test. To make this possible, we need meson test to connect stdin/stdout/stderr of the test directly to the user's terminal, just like is done with the --gdb option.
2024-04-15Add bztar support to meson distTristan Partin
Some projects, like Postgres, distribute code in this format.
2024-03-17tests: rename skip_on_jobname to expect_skip_on_jobname and skip_on_os to ↵Christoph Reiter
expect_skip_on_os The test.json format currently has three keys related to skipping tests: * `skip_on_jobname` * `skip_on_os` * `skip_on_env` While `skip_on_env` marks the test itself as skipped, i.e. they don't get run when the conditions are met, the other two skip options are just marking the test as "expected to be skipped" if the conditions apply, i.e. they want to see `MESON_SKIP_TEST` in the output and things will fail if that doesn't happen. They don't actually skip the tests as the names imply. To make this clearer rename the keys: * `skip_on_jobname` -> `expect_skip_on_jobname` * `skip_on_os` -> `expect_skip_on_os` `skip_on_env` stays the same, since that actually skips. The docs were also confused about this, so adjust that too.
2024-02-16macros: Allow disabling verbose modeDaan De Meyer
This allows using "--undefine __meson_verbose" to disable the verbose mode. This is useful when running rpmbuild in an interactive terminal and you don't want to be flooded with compilation outputs. We also add --quiet to the meson install macro if __meson_verbose is undefined to reduce the output generated by meson install. The default output stays the same, the output is only affected if __meson_verbose is explicitly undefined.
2024-02-09Continue fleshing out bash completion scriptTristan Partin
This adds bash completion to everything that I could think of except for the rewriter.
2023-11-01completions: bash: add a bunch of missing completion optionsLuke Elliott
2023-09-13run_project_tests: support checking for symlinksArsen Arsenović
2023-09-07syntax-highlighting: vim: update builtin function listLiam Beguin
Update builtin function list using the refman python docs/genrefman.py \ -g vim \ -o data/syntax-highlighting/vim/syntax/ This also drops gettext() and find_library() from the list of builtin functions that have been deprecated since 2016. Changes are squashed here because test_vim_syntax_highlighting() would validate the file against the list of builtin functions that no longer matches the yaml documentation. Signed-off-by: Liam Beguin <liambeguin@gmail.com>
2023-09-07Fix crash when installing a vala library and python sourcesXavier Claessens
Installing python sources causes the python module to call create_install_data() before Ninja backends adds extra outputs to Vala targets. Target objects are supposed to be immutable, adding outputs that late is totally wrong. Add extra vala outputs immediately, but be careful because the main output is only added later in post_init(). Luckily the base class already puts a placeholder item in self.outputs for the main filename so we can just replace self.outputs[0] instead of replacing the whole list which would contain vala outputs at that stage. This is surprisingly what SharedLibrary was already doing.
2023-09-06completions: bash: don't show json errors when completing "meson test".Luke Elliott
E.g. "meson test<tab>" json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
2023-09-06completions: bash: added "compile" (and "help") completion.Luke Elliott
2023-09-06completions: bash: fix -x<tab>.Luke Elliott
If x was a known short option, would complete to "-". If unknown, "--".
2023-09-06completions: bash: added a bunch of missing completion options.Luke Elliott
2023-08-14Python: Add 'limited_api' kwarg to extension_moduleAndrew McNulty
This commit adds a new keyword arg to extension_module() that enables a user to target the Python Limited API, declaring the version of the limited API that they wish to target. Two new unittests have been added to test this functionality.
2023-04-11zsh: fix help / descriptionsJosh Soref
* --load-average * --gdb-path * description for install Found by https://www.check-spelling.dev/ Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-04-11syntax-highlighting: vim: fix mesonSpaceErrorJosh Soref
Fixes regression from 388fa6e7761712a7b1d3422a879fa9e90b6fa606 Found by https://www.check-spelling.dev/ Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-03-28Add support for meson.options as a replacement for meson_options.txtDylan Baker
We will still try to load `meson_options.txt` if `meson.options` doesn't exist. Because there are some advantages to using `meson.options` even with older versions of meson (such as better text editor handling) we will not warn about the existence of a `meson.options` file if a `meson_options.txt` file or symlink also exists. The name `meson.options` was picked instead of alternative proposals, such as `meson_options.build` for a couple of reasons: 1. meson.options is shorter 2. While the syntax is the same, only the `option()` function may be called in meson.options, while, it may not be called in meson.build 3. While the two files share a syntax and elementary types (strings, arrays, etc), they have different purposes: `meson.build` declares build targets, `meson.options` declares options. This is similar to the difference between C's `.c` and `.h` extensions. As an implementation detail `Interpreter.option_file` has been removed, as it is used exactly once, in the `project()` call to read the options, and we can just calculate it there and not store it. Fixes: #11176
2022-12-05Use meson setup [options] in meson RPM macroJani Välimaa
Fixes the following warning when building a rpm pkg using %meson macro: WARNING: Running the setup command as `meson [options]` instead of `meson setup [options]` is ambiguous and deprecated.
2022-09-18completions: bash: add simple init competionLiam Beguin
Populate the _meson-init() completion function. Signed-off-by: Liam Beguin <liambeguin@gmail.com>
2022-09-18completions: bash: define sub-commands as an arrayLiam Beguin
Define subcommands as an array so that they can be reused for the top-level sub-command completion. Signed-off-by: Liam Beguin <liambeguin@gmail.com>
2022-09-18completions: bash: update meson sub-command listLiam Beguin
Add all meson sub-commands to the autocompletion script. Signed-off-by: Liam Beguin <liambeguin@gmail.com>
2022-09-18completions: bash: add missing functionsLiam Beguin
Add empty functions for all commands defined in the autocompletion script. When these functions are not defined, bash raises the following error: $ meson init <TAB>-bash: _meson-init: command not found Signed-off-by: Liam Beguin <liambeguin@gmail.com>
2022-09-18completions: bash: order function definitions like in helpLiam Beguin
Move _meson-introspect() to follow the command list defined at the top of the script which follows the help message order. Signed-off-by: Liam Beguin <liambeguin@gmail.com>
2022-05-03interpreter: new function add_project_dependencies()Paolo Bonzini
This function can be used to add fundamental dependencies such as glib to all build products in one fell swoop. This can be useful whenever, due to a project's coding conventions, it is not really possible to compile any source file without including the dependency. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-03-30Add new debug() functionMarvin Scholz
Adds a new debug() function that can be used in the meson.build to log messages to the meson-log.txt that will not be printed to stdout when configuring the project.
2022-03-07interpreter: add an implementation for structured_sourcesDylan Baker
2022-02-10implement 'dist --allow-dirty' flagandy5995
closes #9824
2022-02-04Drop emacs meson-modeMarc-André Lureau
The one on MELPA is way more advanced: https://melpa.org/#/meson-mode https://github.com/wentasah/meson-mode Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2021-12-01add install_symlink functionPablo Correa Gómez
Allows installing symlinks directly from meson, which can become useful in multiple scenarios. Current main use is to help moving forward #9557
2021-10-12syntax-highlighting: vim: whitespace fixesDoug Kearns
2021-10-12syntax-highlighting: vim: improve the ftpluginDoug Kearns
Add 'formatoptions' to improve comment formatting. Set b:match_words. See :help matchit Set b:browsefilter. See :help browsefilter Add 'expandtab' from the style guide and a meson_recommended_style config variable to allow users to disable style-related settings. This is a defacto standard feature for ftplugins.
2021-10-12syntax-highlighting: vim: set b:undo_ftpluginDoug Kearns
See :help undo_ftplugin for details.
2021-10-12syntax-highlighting: vim: use Boolean highlight group for booleansDoug Kearns
2021-10-12syntax-highlighting: vim: match octal and hexadecimal numbersDoug Kearns
2021-10-10Fix typos discovered by codespellChristian Clauss
2021-10-08add install_emptydir functionEli Schwartz
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