aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
AgeCommit message (Collapse)AuthorFilesLines
2020-12-16build: Use python 3.6 annotation syntax for Build initializerDylan Baker1-10/+10
2020-12-16build: Add annotation for Build.dataDylan Baker1-1/+1
2020-12-16build/interpreter: fix layering violations for ManPagesDylan Baker2-28/+44
Like `install_headers`, `install_man` used the same objects for both the interpreter and the build, this is bad. Let's have two separate objects.
2020-12-16build/interpreter: split representation of HeadersDylan Baker2-24/+57
This was all layering violations before. Now we have Headers in the build module, and a holder in the interpreter. All of the type validation is done in interpreter method for `install_headers`.
2020-12-15Merge pull request #7902 from bonzini/mtest-build-depends-onlyJussi Pakkanen3-29/+74
mtest: only build what is needed for the tests
2020-12-15Fix the subsystem options for lld in mingw modeMartin Storsjƶ1-15/+12
lld in gnu like mode (e.g. for mingw) needs these options in the same for as gnu ld, thus remove the lld specific code bit and move the code for gnu like options into GnuLikeDynamicLinkerMixin. This unbreaks linking with lld for mingw targets after 2fb4d1f7512a4ec125883fd65115ab33a5b06b6f.
2020-12-14Less restrictive get_win_subsystem_args implementationsLaurin-Luis Lehning1-6/+12
2020-12-14Propagate Windows target checks upLaurin-Luis Lehning5-37/+26
2020-12-14Give get_gui_app_args access to the EnvironmentLaurin-Luis Lehning4-8/+9
2020-12-14Slight consistency changes to get_gui_app_argsLaurin-Luis Lehning3-9/+12
2020-12-14Oversight in VisualStudioLikeLinkerMixinLaurin-Luis Lehning1-1/+1
2020-12-14Give get_win_subsystem_args access to envLaurin-Luis Lehning3-6/+6
2020-12-14Make win_subsystem a linker propertyLaurin-Luis Lehning5-28/+35
2020-12-14Merge pull request #8013 from mesonbuild/cppmodulesJussi Pakkanen4-10/+209
C++ module support
2020-12-14mtest: only build what is needed for the testsPaolo Bonzini2-12/+44
It is a usual workflow to fix something and retest to see if it is fixed using a particular test. When tests start to become numerous, it becomes time consuming for "meson test" to relink all of them (and in fact rebuild the whole project) where the user has already specified the tests they want to run, as well as the tests' dependencies. Teach meson to be smart and only build what is needed for the test (or suite) that were specified. Fixes: #7473 Related: #7830
2020-12-14mintro: export functions to load the meson-info filesPaolo Bonzini1-17/+30
With the next patch, "meson test" will be using the targets introspection information. Provide helper functions to share bits of code between mintro.py and mtest.py.
2020-12-13Add support for driving lld-link indirectly through clang on WindowsLaurin-Luis Lehning3-2/+20
2020-12-13Support native tests in crossbuildOleg B1-1/+1
2020-12-13Add mypy annotations.Jussi Pakkanen2-12/+14
2020-12-13Scan all C++ sources and ignore everything else.Jussi Pakkanen3-5/+39
2020-12-13C++ module compilation works for a simple project.Jussi Pakkanen2-5/+108
2020-12-13Add VCS ignore files to build dir on creation. Closes #6509.Jussi Pakkanen1-0/+19
2020-12-12Generate dependency scanning hooks in the Ninja file.Jussi Pakkanen1-9/+45
2020-12-11Create unit test for C++ modules and accept ixx as C++ source extension.Jussi Pakkanen1-1/+1
2020-12-11Generate scanning rules for C++ modules.Jussi Pakkanen1-0/+24
2020-12-10compilers: add support for c++20/gnu++20Florian Schmaus1-4/+7
Fixes #8084.
2020-12-10Respect MESON_INSTALL_QUIET in gettext.pyDaan De Meyer1-1/+2
Fixes #8068.
2020-12-10pkgconfig: Respect variable ordering when passed as listXavier Claessens1-1/+1
This fix a regression introduced in Meson 0.56.0 when using python 3.5. Also mention in documentation that using a meson dict does not guarantee ordering. Fixes: #8074.
2020-12-10install: don't elevate when using destdirThomas Weißschuh1-1/+1
Previously the destdir was ignored completely when using elevated privileges to install files as pkexec stripped the DESTDIR environment variable. As the destdir is not supposed to require any special privileges anyways, just re-raise the error.
2020-12-07Remove "Found runner: " logging message from meson compileDaan De Meyer1-1/+0
The ninja path is already logged as part of configure. Logging it again every time when using meson compile is overly verbose and doesn't add much value for the user.
2020-12-07msubprojects: Ignore worktrees when checking outNirbheek Chauhan1-1/+1
Otherwise it's not possible to share git subprojects via worktrees when creating a worktree of a git repository that uses meson subprojects. The downside is that the user needs to be careful while adding commits to each tree's index.
2020-12-03Add prelinking support for static libraries.Jussi Pakkanen4-2/+46
2020-11-26Bump Ninja requirement to 1.8.Jussi Pakkanen2-4/+4
2020-11-24compilers/fortran: Add "none" to intel compielrs for standardsDylan Baker1-2/+2
Fixes #8023
2020-11-24compiler: allow non-built internal dependencies as argumentsPaolo Bonzini2-13/+23
Allow methods on the compiler object to receive internal dependencies, as long as they only specify compiler/linker arguments or other dependencies that satisfy the same requirements. This is useful if you're using internal dependencies to add special "-D" flags such as -DNCURSES_WIDECHAR, -D_XOPEN_SOURCE_EXTENDED or -DGLIB_STATIC_COMPILATION.
2020-11-23Add a variant of TemporaryDirectory that uses windows_proof_rmtree()Christoph Reiter2-53/+68
Adds TemporaryDirectoryWinProof which calls windows_proof_rmtree() on error. Use instead of hacky error handling (which might shadow other OSError) in Compiler.compile().
2020-11-22Merge pull request #8010 from dcbaker/submit/optinterpreter-cleanupsJussi Pakkanen2-36/+57
Opt Interpreter cleanups and type annotations
2020-11-22Merge pull request #8011 from dcbaker/submit/post-python36-cleanupsJussi Pakkanen37-86/+37
Python 3.6 cleanups
2020-11-21Handle cmake dependencies which require a specified versionJason Ekstrand4-5/+19
Some CMake packages fail to find at all if no version is specified. This commit adds a cmake_version parameter to dependency() to allow you to specify the requested version.
2020-11-21envconfig: use debug for "using * from environment variables messagesDylan Baker1-1/+1
These are spammy, and being in the debug log is probably better anyway.
2020-11-20Delete now dead < python 3.6 checkDylan Baker1-1/+1
2020-11-20use real pathlib moduleDylan Baker37-85/+36
We added the _pathlib module to work around defeciencies in python 3.5's implementation, since we now rely on 3.6 lets drop this
2020-11-20optinterpreter: organize the validation of arguments to be more readableDylan Baker1-10/+13
2020-11-20optinterpreter: use PEP8 compliant namesDylan Baker1-10/+10
2020-11-20optinterpreter: fix value being set in loopDylan Baker1-1/+1
This value shouldn't be set in the loop, it's probably been making things slow, but also creates the potential that if choices is an empty list that value would be unbound. While that's exteremly unlikly to happen in practice, it is showing up as a warning from pylance.
2020-11-20Add type annotations to optinterpreterDylan Baker1-19/+33
2020-11-20Allow setting attributes in MesonException intializerDylan Baker1-3/+7
Instead of forcing them to be set afterwards
2020-11-18Merge pull request #7894 from obilaniu/cudaupdatesJussi Pakkanen1-41/+105
Update unstable CUDA Module to support newest toolkits and drivers.
2020-11-18Merge pull request #7836 from bonzini/mtest-asyncioJussi Pakkanen1-137/+212
[RFC] mtest: use asyncio instead of concurrency.futures
2020-11-18Merge pull request #7900 from bonzini/stabilize-hashJussi Pakkanen4-7/+7
Avoid build.ninja changes due to order of hash table iteration