aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
AgeCommit message (Collapse)AuthorFilesLines
2022-02-10implement 'dist --allow-dirty' flagandy59951-0/+7
closes #9824
2022-02-09meson: Allow directory options outside of prefixJan Tojnar1-0/+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-03cmake: Deprecate CMake <3.17 supportDaniel Mensinger1-0/+4
2022-02-03cmake: Drop CMake server support and bump min. CMake to >= 3.14Daniel Mensinger1-0/+9
2022-02-02Merge pull request #9834 from bonzini/test-verbose-kwargJussi Pakkanen1-0/+6
New keyword argument `verbose` for tests and benchmarks
2022-02-02Genericise TI compiler and add MSP430 supportWilliam Toohey1-0/+8
2022-02-01cmake: add arch_independent kwargAndrea Pappacoda1-0/+7
CMake's write_basic_package_version_file has supported since version 3.14 an ARCH_INDEPENDENT option that makes it skip its architecture check in the Version file. With this patch Meson now supports it as well, and the change is also compatible with older CMake versions, as they will simply ignore the option. This also slightly changes the contents of the generated Version file when arch_independent is not set: previously, the if() needed to skip the arch check was always filled with an empty string, while CMake puts "FALSE" (or "TRUE") in it. Now, that if() will always be filled with either "False" or "True", better matching CMake's behaviour.
2022-02-01minstall: stop running ldconfig for the userEli Schwartz1-0/+5
This was a nice idea in theory, but in practice it had various problems: - On the only platform where ldconfig is expected to be run, it is really slow, even when the user uses a non-default prefix and ldconfig doesn't even have permission to run, nor can do anything useful due to ld.so.conf state - On FreeBSD, it bricked the system: #9592 - On cross builds, it should not be used and broke installing, because ldconfig may not be runnable without binfmt + qemu: #9707 - it prints weird and confusing errors in the common "custom prefix" layout: #9241 Some of these problems can be or have been fixed. But it's a constant source of footguns and complaints and for something that was originally supposed to be just "it's the right thing to do anyway, so just do it automatically" it is entirely too risky. Ultimately I do not think there is justification for keeping this feature in since it doesn't actually make everyone happy. Better for users to decide whether they need this themselves. This is anyways the case for cmake and autotools and generally any other build system, so it should not be too intimidating... Fixes #9721
2022-02-01new custom dependency lookup for libdlAndrew Krasavin1-0/+8
2022-02-01interpreter: support for forcibly verbose logging of some testsPaolo Bonzini1-0/+6
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-22Merge pull request #9742 from ximion/wip/itstoolJussi Pakkanen1-0/+5
i18n: Add support for joining XML localization via itstool
2022-01-21i18n: Add support for joining XML localization via itstoolMatthias Klumpp1-0/+5
2022-01-10bump minimum required version of python to 3.7Eli Schwartz1-0/+7
Comment out the pending deprecation notice. It cannot be reached anymore, but is still useful for the next time we do a version bump.
2022-01-10remove the RPM moduleEli Schwartz1-0/+10
It is unmaintained, broken (frequently for long periods of time) and not really required for any meson functionality. Its purpose is to be used as a one-shot tool for creating a distro package recipe, and then deleted from your meson.build files. Due to its fragile dependency on coredata implementation details, we cannot assume it will reliably work, or continue to work, without someone who is actively willing to take responsibility for it. Even if that were to happen, this might be better off as an external script that parses introspection data. Closes #9764 Closes #9763
2022-01-10Merge pull request #9739 from mathstuf/armclang-supportJussi Pakkanen1-0/+6
Armclang support
2022-01-10Prepare release 0.61.0.0.61.0Jussi Pakkanen11-120/+0
2022-01-10add pending deprecation notice for python 3.6Eli Schwartz1-0/+13
2022-01-06add release notes for refman man pageStone Tickle1-0/+4
2022-01-03armltdclang: add support for ARM Ltd.'s `armclang` toolchainBen Boeckel1-0/+6
This is another toolchain also called `armclang`, but it is not a cross compiler like Keil's `armclang`. It is essentially the same as `clang` based on its interface and CMake's support of the toolchain. Use an `armltd` prefix for the compiler ID. Fixes: #7255
2021-12-15rewriter: create {add,rm}_extra_files commandsCeleste Wouters1-0/+26
Add ability to mutate a target's `extra_files` list through the rewriter. The logic is copied from sources add/rm, but changes the `extra_files` kwarg instead of the sources positional argument. Has additional logic to handle creating the `extra_files` list if it doesn't exist.
2021-12-06interpreter: allow extract_objects to receive generated sourcesPaolo Bonzini1-0/+4
Fixes: #8333
2021-12-02cmake: Deprecate CMake <3.14 and warn for <3.17 (#9677)Daniel Mensinger1-0/+7
* cmake: Deprecate CMake <3.14 and warn for <3.17 See: - #7832 - #9676 * cmake: Add deprecation release note snippet
2021-12-01add install_symlink functionPablo Correa Gómez1-0/+11
Allows installing symlinks directly from meson, which can become useful in multiple scenarios. Current main use is to help moving forward #9557
2021-11-25Stop backend_startup_project from erasing the last project in a VS solutionLuke Elliott1-0/+4
if it is not the specified project.
2021-11-21Support Visual Studio 2022 backendCrend King1-0/+10
2021-10-30Added warning if run_command is called without the check kwargVolker Weißmann1-0/+14
2021-10-29Merge pull request #9375 from dcbaker/submit/windows-module-typingJussi Pakkanen1-0/+22
Typing for the Windows module
2021-10-25Add sccache support.Jussi Pakkanen1-0/+5
2021-10-24Create release notes page for 0.60.Jussi Pakkanen31-360/+0
2021-10-10Add missing release snippet for option() deprecated kwargXavier Claessens1-0/+23
2021-10-10Add --vsenv command line option and active VS only when neededXavier Claessens1-0/+14
2021-10-10Fix typos discovered by codespellChristian Clauss1-1/+1
2021-10-10ar linker: generate thin archives for uninstalled static librariesEli Schwartz1-0/+11
Since they will never be used outside of the build directory, they do not need to literally contain the .o files, and references will be sufficient. This covers a major use of object libraries, which is that the static library would potentially take up a lot of space by including another copy of every .o file. Fixes #9292 Fixes #8057 Fixes #2129
2021-10-10Add release notes for `subprojects packagefiles`.Eli Schwartz1-0/+11
2021-10-09modules/windows: allow CustomTargets with more than one output for ↵Dylan Baker1-0/+22
compile_resources
2021-10-08python: Add platlibdir and purelibdir optionsXavier Claessens1-0/+12
2021-10-08add install_emptydir functionEli Schwartz1-0/+18
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-07modules/gnome: deprecate yelp variadic sourcesDylan Baker1-0/+6
Yelp currently can take sources two different ways, the first is via variadic arguments, the second is by a keyword argument. If the keyword is passed then the variadic arguments are silently ignored, which is obviously not ideal. Fortunately the variadic form was never documented, and is likely not in wide use. This patch fixes it by deprecating the variadic form, and warning if both are passed. It does not change behavior as someone may be relying on it.
2021-09-30dependency: Allow searching for multiple namesXavier Claessens1-0/+8
2021-09-30Make custom_target() name argument optionalXavier Claessens1-0/+4
2021-09-28Merge pull request #9014 from bonzini/mixed-language-linkJussi Pakkanen1-0/+21
Use appropriate compiler for the source file for "links" tests with file argument
2021-09-25Merge pull request #8773 from dcbaker/submit/rustc-enhancements-clippyJussi Pakkanen2-0/+12
More enhancements for Rust + clippy support
2021-09-25interpreter: Introduce StringHolderDaniel Mensinger1-0/+5
Another commit in my quest to rid InterpreterBase from all higher level object processing logic. Additionally, there is a a logic change here, since `str.join` now uses varargs and can now accept more than one argument (and supports list flattening).
2021-09-24compilers/rust: Add support for clippyDylan Baker1-0/+6
Clippy is a compiler wrapper for rust that provides an extra layer of linting. It's quite popular, but unfortunately doesn't provide the output of the compiler that it's wrapping in it's output, so we don't detect that clippy is rustc. This small patch adds a new compiler class (that is the Rustc class with a different id) and the necessary logic to detect that clippy is in fact rustc) Fixes: #8767
2021-09-24rustc: implement pic argsDylan Baker1-0/+1
2021-09-24compilers/rust: Implement warning levelsDylan Baker1-0/+1
Currently this implements 3 warning levels, 1 and 2 are just the "default" set by rustc, 3, is "everything is a warning", and 0 is "nothign is a warning".
2021-09-24rust: Add werror argumentsDylan Baker1-0/+4
2021-09-24Add option to to transpile Cython to C++Dylan Baker1-0/+22
This patch adds a new meson built-in option for cython, allowing it to target C++ instead of C as the intermediate language. This can, of course, be done on a per-target basis using the `override_options` keyword argument, or for the entire project in the project function. There are some things in this patch that are less than ideal. One of them is that we have to add compilers in the build layer, but there isn't a better place to do it because of per target override_options. There's also some design differences between Meson and setuptools, in that Meson only allows options on a per-target rather than a per-file granularity. Fixes #9015
2021-09-12new custom dependency lookup for iconvEli Schwartz1-0/+8
Also internally needed by intl, so add that as a proxied dependency instead of coding it manually.
2021-09-07docs: document new behavior with respect to mixed language link testsPaolo Bonzini1-0/+21