summaryrefslogtreecommitdiff
path: root/docs
AgeCommit message (Collapse)Author
2021-08-17Add install tagsXavier Claessens
Fixes: #7007.
2021-08-16interpreter/compiler: remove unittest_args methodDylan Baker
It's not documented, and it's been marked deprecated for who knows how long.
2021-08-16Document new rules for green CI.Jussi Pakkanen
2021-08-16Add unset_variable()Tristan Partin
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 Schwartz
and clean up all outstanding issues Skip 'test cases/common/141 special characters/meson.build' since it intentionally uses trailing newlines.
2021-08-15Revert "compilers/c++: Add MSVC option to make the __cplusplus define accurate"Jussi Pakkanen
This reverts commit 0b97d585480e973d8b149618901f7a4ddfa1a906.
2021-08-13Document that custom_target() install_dir can be a listXavier Claessens
2021-08-12fix the previous commit which deleted a doc file but not the index entryEli Schwartz
The CI still passed, or should I say, didn't run, and I failed to notice this in manual review. Sorry!
2021-08-12Update wrap documentation to describe new submission processEli Schwartz
2021-08-11compilers/c++: Add MSVC option to make the __cplusplus define accurateDylan Baker
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 Pakkanen
2021-08-04destdir: Allow relative to build directoryXavier Claessens
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-27doc: mention CUDA_PATH in dependency('cuda') [skip ci]David Seifert
2021-07-26coredata: throw a MesonException on unknown optionsFlorian Schmaus
Fixes #7288.
2021-07-25Added release snippetmiebka
2021-07-23Add support for gcovr --sonarqube reportWeston Schmidt
Sonarcloud.io only can read the sonarqube based report that gcovr can produce. This change enables support for this output in meson and ninja. Signed-off-by: Weston Schmidt <Weston_Schmidt@alumni.purdue.edu>
2021-07-23qt: Allow CustomTargets for qt.preprocess source argumentsDylan Baker
This works for `moc_*` and `ui_files`, but it never could have worked for `qresources` due to the implementation assuming a `str` or `File`. To restore previous compatibility I've added `CustomTarget` where it would have worked, but not where it would have failed, the former would raised an exception along the lines anyway. Fixes #9007
2021-07-22Merge pull request #8992 from dcbaker/submit/modernize-python-module-dependencyJussi Pakkanen
Cleanup the python module
2021-07-18Set up the 0.59.0 release.Jussi Pakkanen
2021-07-13modules/python: Add type annotationsDylan Baker
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-08docs: fix minor typos in Machine-files.mdAndrea Pappacoda
2021-07-07Allow `skip_*` test.json keys at top-level or in `matrix:`Jon Turney
2021-07-07Add `skip_on_os` to test.jsonJon Turney
2021-07-07Add `skip_on_jobname` to test.jsonJon Turney
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-07-07windows: Support wrc resource compilerConnor Abbott
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-07-05Merge pull request #8957 from jon-turney/dependency-doc-improveJussi Pakkanen
Improvements to dependency doc
2021-07-04Users: Update URL for pacmanJon Turney
git.archlinux.org has been decomissioned [1] [1] https://lists.archlinux.org/pipermail/arch-dev-public/2021-June/030466.html
2021-07-04Consistently capitialize 'Meson' in Dependencies.mdJon Turney
Consistently capitialize 'Meson' where used as a proper name in Dependencies.md.
2021-07-03Improve text for dependency detection methodsJon Turney
Make it clear that search order for 'auto' there only applies to generic dependency names. Drop 'system' from that list, as it's not actually used for generic dependencies (nor is it defined what it would do).
2021-07-03Fix image link names.Jussi Pakkanen
2021-06-30interpreter: add required and disabled to importDylan Baker
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-30Alphabetize dependency names with special lookupJon Turney
2021-06-30Move 'builtin', 'config-tool' and 'system' methods to discussion of methodsJon Turney
2021-06-29Merge pull request #8882 from xclaesse/msubprojects-parallelJussi Pakkanen
msubprojects: Run action on all subprojects in parallel
2021-06-29Add feed arg to custom_target()Simon Ser
2021-06-29Merge pull request #8918 from mensinda/pathlibFixesJussi Pakkanen
pathlib: Patch pathlib to work around some bugs (fixes #8263 #7295)
2021-06-29Users.md:add rmwandy5995
2021-06-29fix: Always explicitly set encoding for text files (fixes #8263)Daniel Mensinger
2021-06-25msubprojects: Run action on all subprojects in parallelXavier Claessens
This moves all the code into a class and call its run() method in a thread. The class queues all logs to print them at the end to avoid mixing output of multiple actions.
2021-06-23gnome: add update_desktop_database to post_install()Xavier Claessens
2021-06-23gnome: Set GSETTINGS_SCHEMA_DIR in devenvXavier Claessens
2021-06-22Add Visual Studio 2012/2013 backends (#8803)fanc999
* backends: Add a Visual Studio 2013 backend This is more-or-less a quick port from the VS2015 backend, except that we update the Visual Studio version strings and toolset versions accordingly. Also correct the generator string for Visual Studio 2015 in mesonbuild/cmake/common.py. * backend: Add VS2012 backend Similar to what we did for Visual Studio 2013, add a Visual Studio 2012 backend. * vs2010backend.py: Implement `link_whole:` if needed We actually need Visual Studio 2015 Update 2 to use `/WHOLEARCHIVE:`, which is what we are currently using for `link_whole:` on Visual Studio. For Visual Studio versions before that, we need to expand from the static targets that were indicated by `link_whole:`, and any of the sub-dependent targets that were pulled in via the dependent target's `link_whole:`. This wil ensure `link_whole:` would actually work in such cases. * vs2010backend.py: Handle objects from generated sources Unforunately, we can't use backends.determine_ext_objs() reliably, as the Visual Studio backends handle this differently. * vs2010backend.py: Fix generating VS2010 projects Visual Studio 2010 (at least the Express Edition) does not set the envvar %VisualStudioVersion% in its command prompt, so fix generating VS2010 projects by taking account into this, so that we can determine the location of vcvarsall.bat correctly. * whole archive test: Disable on vs2012/2013 backends too The Visual Studio 2012/2013 IDE has problems handling the items that would be generated from this test case, so skip this test when using --backend=vs[2012|2013]. This test does work for the Ninja backend when VS2012 or VS2013 is used, though. Consolidate this error message with XCode along with the vs2010 backend. * docs: Add the new vs2012 and vs2013 backends Let people know that we have backends for vs2012 and 2013. Also let people know that generating Visual Studio 2010 projects have been fixed and the pre-vs2015 backends now handle the `link_whole:` project option.
2021-06-22Merge pull request #8900 from bonzini/extract-objects-docsJussi Pakkanen
extract_objects: fixes, tests and documentation for using the result in a custom_target
2021-06-22Merge pull request #8898 from e820/interpreter-required-argumentsDylan Baker
interpreter: Add checked kwarg to compiler.get_supported_arguments
2021-06-22extract_objects: test and document using the result in a custom_targetPaolo Bonzini
QEMU would like to use the result of extract_objects in a custom_target; examples are using objcopy, or using the object files as the key to look up command line arguments in compile_commands.json. This is slightly peculiar and not covered by the test suite, but it works; in order to avoid regressions, add a test case and document it.
2021-06-21fix: Ensure that build targets have all methods from ExternalProgramDaniel Mensinger
As a side-effect from #8885 `find_program()` returns now `Executable` objects when `meson.override_find_program` is called with an executable target. To resolve this conflict the missing methods from `ExternalProgram` are added to `BuildTarget`.
2021-06-21interpreter: Move argument checks from add_*_arguments to ↵Laurin-Luis Lehning
compiler.get_supported_arguments
2021-06-21docs: Fix snippet heading for required project argumentsLaurin-Luis Lehning
2021-06-21interprter: Add required kwarg to add_(project|global)_argumentsLaurin-Luis Lehning
To avoid manual compiler support checks add_project_arguments and add_global_arguments receive a new keyword argument to perform them automatically.
2021-06-19Update Quick-guide.mdOrta Therox