aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
AgeCommit message (Collapse)AuthorFilesLines
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
2021-09-01add release note formally allowing run_target in an aliasEli Schwartz1-0/+20
We've now fixed it so it works, and it provides useful functionality, e.g. creating a custom target that builds multiple gettext domains in one action.
2021-09-01msvc: Assume UTF8 source by defaultXavier Claessens1-0/+16
Currently every project that uses UTF8 for its source files must add '/utf-8' argument otherwise they don't work non-English locale MSVC. Since meson.build itself is assumed to be UTF8 by default, seems better to assume it for source files by default too. For example: - https://gitlab.freedesktop.org/gstreamer/gst-build/-/blob/master/meson.build#L62 - https://gitlab.gnome.org/GNOME/glib/-/blob/main/meson.build#L29
2021-08-31i18n module: provide targets as return value for gettext()Eli Schwartz1-0/+6
Users may wish to make use of these files for their own purposes. For example, the -pot and -update-po pseudo targets could be reused in an alias_target(), and at least one person wanted to reuse the built .mo files as custom_target input. Fixes #6227
2021-08-31interpreter: Make comparisons of different types a hard errorDaniel Mensinger1-0/+5
2021-08-23interpreter: Fix dependency(..., static: true) fallbackXavier Claessens1-0/+46
It should build the fallback subprject with default_library=static and override the dependency for both static=True and static kwarg not given. Fixes: #8050.
2021-08-22Add Java moduleTristan Partin1-0/+18
The Java module will serve as a source for easing Java development within Meson. Currently it only supports generating native header files.
2021-08-20Merge pull request #9012 from dcbaker/submit/qt-custom-targetsJussi Pakkanen1-0/+13
Qt module generated sources
2021-08-20external-project: Add support for WAF build systemXavier Claessens1-0/+5
Fixes: #7638
2021-08-18docs: add snippet for qt compile_ method generated inputsDylan Baker1-0/+13
2021-08-17Add install tagsXavier Claessens1-0/+6
Fixes: #7007.
2021-08-16interpreter/compiler: remove unittest_args methodDylan Baker1-0/+4
It's not documented, and it's been marked deprecated for who knows how long.
2021-08-16Add unset_variable()Tristan Partin1-0/+16
This should be useful for helping to control variable scope within Meson. CMake has something similar for controlling scope.
2021-08-15Revert "compilers/c++: Add MSVC option to make the __cplusplus define accurate"Jussi Pakkanen1-7/+0
This reverts commit 0b97d585480e973d8b149618901f7a4ddfa1a906.
2021-08-11compilers/c++: Add MSVC option to make the __cplusplus define accurateDylan Baker1-0/+7
Otherwise it always returns the value for c++98, starting with MSVC 2017 15.7 or later. Earlier versions are not affected by this mis-feature
2021-08-08Add support for finding Javascript source libraries with Emscripten.Jussi Pakkanen1-0/+13
2021-08-04destdir: Allow relative to build directoryXavier Claessens1-0/+6
Meson already works like that, except in do_copydir() that requires absolute destdir. Better explicitly support that instead of leaving it undefined and unconsistent.
2021-07-26coredata: throw a MesonException on unknown optionsFlorian Schmaus1-0/+5
Fixes #7288.
2021-07-25Added release snippetmiebka1-0/+3
2021-07-22Merge pull request #8992 from dcbaker/submit/modernize-python-module-dependencyJussi Pakkanen1-0/+3
Cleanup the python module
2021-07-18Set up the 0.59.0 release.0.59.0Jussi Pakkanen17-211/+0
2021-07-13modules/python: Add type annotationsDylan Baker1-0/+3
There's still a number of things that don't properly type check, that's expected though as the input is often unvalidated and assumed good.
2021-07-07windows: Support wrc resource compilerConnor Abbott1-0/+7
It has a similar interface to windres, but it produces ELF instead of COFF binaries. It uses its own preprocessor which doesn't support creating depfiles, but we can convince it to use the system preprocessor instead and pass those arguments using the --preprocessor option. Together with some hacks to override the shared library/executable suffix and some wine patches [1] this is enough to compile dxvk when ripping out the hand-rolled rc support. [1] https://www.winehq.org/pipermail/wine-devel/2021-July/190100.html https://www.winehq.org/pipermail/wine-devel/2021-July/190098.html https://www.winehq.org/pipermail/wine-devel/2021-July/190099.html https://www.winehq.org/pipermail/wine-devel/2021-July/190101.html
2021-06-30interpreter: add required and disabled to importDylan Baker1-0/+5
This is useful both from the perspective of optional functionality that requires a module, and also as I continue to progress with Meson++, which will probably not implement all of the modules that Meson itself does.
2021-06-29Merge pull request #8882 from xclaesse/msubprojects-parallelJussi Pakkanen1-0/+7
msubprojects: Run action on all subprojects in parallel
2021-06-29Add feed arg to custom_target()Simon Ser1-0/+4