aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-12-16Merge pull request #8103 from dcbaker/submit/module-typing-cleanupsJussi Pakkanen2-77/+156
Fix some layering violations and add some type annotations in the interpreter
2020-12-16mlog: make mlog helper take once keyword argumentDylan Baker1-5/+10
We really want to have this in the log method as well. Fixes: #8002
2020-12-16build/interpreter: Add some type annotationsDylan Baker2-9/+11
2020-12-16interpreter: Use a typing.NamedTuple instead of collections.namedtupleDylan Baker1-6/+34
The former can hold type annotations, unlike the other. It also uses the class syntax, which is easier to read.
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 Pakkanen4-29/+91
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-15docs: Update link to libspng [skip ci]Jean-Michel Gorius1-1/+1
libspng moved from Gitlab to Github. Update the link to point to the new location.
2020-12-14doc: fix typos for doubled words [skip ci]Eli Schwartz1-2/+2
"more more" is one place where we don't need more. Fixes #8097
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 Pakkanen17-10/+311
C++ module support
2020-12-14mtest: only build what is needed for the testsPaolo Bonzini3-12/+61
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 B4-1/+37
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-13Add unit test.Jussi Pakkanen1-0/+10
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-11CI: Move all remaining jobs from travis-ci to GHAChristoph Reiter7-118/+66
Some changes: * Set HOME to /root, since github mounts its own HOME and 'wine' (because of permissions) and 'dub' (can't find packages) don't like that. * Remove the seccomp option, doesn't seem to be needed.
2020-12-11Create unit test for C++ modules and accept ixx as C++ source extension.Jussi Pakkanen13-1/+93
2020-12-11Generate scanning rules for C++ modules.Jussi Pakkanen1-0/+24
2020-12-11unit tests: correctly skip c++20 checks if the compiler doesn't supportDylan Baker1-3/+12
them I can't find a supported version for AppleClang, and you need relatively recent versions of GCC and Clang for -std=c++20 to work.
2020-12-11ci: run msys2 on run_unittests.py changesDylan Baker1-0/+2
2020-12-11ci: rebuild macos image on run_unittest.py changesDylan Baker1-0/+2
2020-12-10compilers: add support for c++20/gnu++20Florian Schmaus3-6/+9
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 Claessens2-2/+3
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-10docs: fix "edit on GitHub" linksThomas Weißschuh1-1/+1
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 Pakkanen15-2/+155
2020-11-29Update Vala Preprocessor section in documentation. Closes: #8040 [skip ci]Jerry Casiano1-1/+7
2020-11-29Add aarch64 assembly testmimi899991-1/+10
2020-11-27Add script to create a zipapp.Eli Schwartz3-22/+25
Invoke create_zipapp.py from the root of the repository and it will create a minimal zipapp with only the mesonbuild module code and a __main__.py directly copied from meson.py The meson.py launcher already tracks the desired entry point, and its only other effect is to add the mesonbuild directory to the path if it exists, which it won't in the zipapp. So there's no need to duplicate this into another __main__.py
2020-11-27createmsi: move to generic packaging directoryEli Schwartz2-1/+1
We might want to create other dedicated packaging scripts, and put them all in one directory.
2020-11-26Bump Ninja requirement to 1.8.Jussi Pakkanen3-6/+6
2020-11-25rename .lgtm.yml to reduce top-level directory ls clutterMichael Hirsch, Ph.D1-0/+0
.lgtm.yml is also good filename: https://lgtm.com/help/lgtm/lgtm.yml-configuration-file