aboutsummaryrefslogtreecommitdiff
path: root/data
AgeCommit message (Collapse)AuthorFilesLines
2023-09-13run_project_tests: support checking for symlinksArsen Arsenović1-1/+2
2023-09-07syntax-highlighting: vim: update builtin function listLiam Beguin1-11/+9
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 Claessens1-0/+1
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 Elliott1-7/+24
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 Elliott1-2/+63
2023-09-06completions: bash: fix -x<tab>.Luke Elliott1-48/+45
If x was a known short option, would complete to "-". If unknown, "--".
2023-09-06completions: bash: added a bunch of missing completion options.Luke Elliott1-42/+137
2023-08-14Python: Add 'limited_api' kwarg to extension_moduleAndrew McNulty1-0/+2
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 Soref1-3/+3
* --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 Soref1-1/+1
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 Baker1-0/+1
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Ă€limaa1-1/+1
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 Beguin1-1/+35
Populate the _meson-init() completion function. Signed-off-by: Liam Beguin <liambeguin@gmail.com>
2022-09-18completions: bash: define sub-commands as an arrayLiam Beguin1-20/+21
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 Beguin1-1/+26
Add all meson sub-commands to the autocompletion script. Signed-off-by: Liam Beguin <liambeguin@gmail.com>
2022-09-18completions: bash: add missing functionsLiam Beguin1-0/+16
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 Beguin1-44/+44
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 Bonzini1-0/+1
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 Scholz1-0/+1
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 Baker1-0/+1
2022-02-10implement 'dist --allow-dirty' flagandy59951-0/+1
closes #9824
2022-02-04Drop emacs meson-modeMarc-André Lureau1-31/+0
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Ăłmez1-0/+1
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 Kearns1-4/+4
2021-10-12syntax-highlighting: vim: improve the ftpluginDoug Kearns1-3/+20
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 Kearns1-0/+2
See :help undo_ftplugin for details.
2021-10-12syntax-highlighting: vim: use Boolean highlight group for booleansDoug Kearns1-2/+2
2021-10-12syntax-highlighting: vim: match octal and hexadecimal numbersDoug Kearns1-0/+2
2021-10-10Fix typos discovered by codespellChristian Clauss1-1/+1
2021-10-08add install_emptydir functionEli Schwartz1-0/+1
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-09-30syntax-highlighting: vim: set b:undo_indentDoug Kearns1-0/+2
The b:undo_indent variable gets executed to undo the effects of the options set earlier in the file. Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Liam Beguin <liambeguin@gmail.com>
2021-08-18test runner: add the ability to configure test.json for python pathsEli Schwartz1-0/+3
Adds new installed file types with @VAR@ substitution.
2021-08-16Add unset_variable()Tristan Partin1-1/+2
This should be useful for helping to control variable scope within Meson. CMake has something similar for controlling scope.
2021-08-15editorconfig: add setting to trim trailing whitespaceEli Schwartz1-1/+0
and clean up all outstanding issues Skip 'test cases/common/141 special characters/meson.build' since it intentionally uses trailing newlines.
2021-07-07Allow `skip_*` test.json keys at top-level or in `matrix:`Jon Turney1-0/+18
2021-07-07Add `skip_on_os` to test.jsonJon Turney1-0/+6
2021-07-07Add `skip_on_jobname` to test.jsonJon Turney1-0/+6
Plan to replace the hard-coded list of 'may be skipped' framework tests in skippable() with annotations in test.json which record 'will be skipped in these specific CI jobs'. If the value of the MESON_CI_JOBNAME env var (an arbitrary string expected to be unique for each CI configuration) contains any of the strings in the `skip_on_jobname` key in test.json, the test is expected to output MESON_SKIP_TEST. Unexpected skips or runs are treated as an error. Future work: Maybe we should add additional count categories 'unexpected skip' and 'unexpected not skipped', rather than counting those as 'skipped' and 'failed', respectively.
2021-06-24Fix test.json schema for 'matrix'Jon Turney1-5/+11
I'm not sure what the current schema is describing, but it's not doing anything useful to validate 'matrix' entries, as I discover when I come to add something to that. 'matrix' is a dict with possible keys 'options' and 'exclude'. 'options' is a dict with arbitrary keys, whose's values are arrays Once we describe those dicts correctly, also fix that 'val' keys may be string, boolean or null, and the corresponding 'exclude' keys may be string or boolean. v2: Also allow 'val' and 'exclude' to be an array of strings.
2021-06-23Enforce all dicts with a fixed set of keys in test.json schemaJon Turney1-0/+9
Improve test.json schema to disallow arbitrary keys in all dicts which have a defined set of keys (the 'installed', matrix 'options' and 'stdout' dicts). Add 'count' and 'comment' keys to 'stdout' dict.
2021-06-22coverage: Enable coverage reportsDaniel Mensinger1-0/+25
2021-05-06syntax-highlighting: vim: add myself as a maintainerLiam Beguin3-0/+3
Add myself as a maintainer of these files since I'll be keeping them in sync with the Vim repository. Signed-off-by: Liam Beguin <liambeguin@gmail.com>
2021-05-06syntax-highlighting: vim: fix setting cpoLiam Beguin1-1/+1
Since 'cpo' is global, use `set` instead of `setlocal`. See: b66f0372cc11 Signed-off-by: Liam Beguin <liambeguin@gmail.com>
2021-03-16Add range() functionXavier Claessens1-0/+1
Fixes: #5026.
2021-01-13Fix misspellsAntonin DĂ©cimo1-3/+3
Signed-off-by: Antonin DĂ©cimo <antonin.decimo@gmail.com>
2020-11-03vim: Drop backwards compatibility with Vim 5.Aman Verma1-30/+15
2020-09-23zsh: Add completions for meson compileDylan Baker1-0/+16
2020-09-23zsh: add completions for subprojectsDylan Baker1-3/+77
2020-09-23zsh: add wrap completionsDylan Baker1-1/+54
This is still missing completions for promote, but I can't figure out how to find the wraps in subprojects that are not in the parent project when those projects haven't been fetched yet.
2020-09-23zsh: add missing arguments to meson test completionsDylan Baker1-5/+6
This also reorders the options internally to match the output of meson test --help, which makes it easier to diff
2020-09-23zsh: Add completions for meson initDylan Baker1-2/+22