summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add mypy annotations.cppmodulesJussi Pakkanen2020-12-132-12/+14
|
* Scan all C++ sources and ignore everything else.Jussi Pakkanen2020-12-133-5/+39
|
* Add unit test.Jussi Pakkanen2020-12-131-0/+10
|
* C++ module compilation works for a simple project.Jussi Pakkanen2020-12-132-5/+108
|
* Generate dependency scanning hooks in the Ninja file.Jussi Pakkanen2020-12-121-9/+45
|
* Create unit test for C++ modules and accept ixx as C++ source extension.Jussi Pakkanen2020-12-1113-1/+93
|
* Generate scanning rules for C++ modules.Jussi Pakkanen2020-12-111-0/+24
|
* unit tests: correctly skip c++20 checks if the compiler doesn't supportDylan Baker2020-12-111-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.
* ci: run msys2 on run_unittests.py changesDylan Baker2020-12-111-0/+2
|
* ci: rebuild macos image on run_unittest.py changesDylan Baker2020-12-111-0/+2
|
* compilers: add support for c++20/gnu++20Florian Schmaus2020-12-103-6/+9
| | | | Fixes #8084.
* Respect MESON_INSTALL_QUIET in gettext.pyDaan De Meyer2020-12-101-1/+2
| | | | Fixes #8068.
* pkgconfig: Respect variable ordering when passed as listXavier Claessens2020-12-102-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.
* install: don't elevate when using destdirThomas Weißschuh2020-12-101-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.
* docs: fix "edit on GitHub" linksThomas Weißschuh2020-12-101-1/+1
|
* Remove "Found runner: " logging message from meson compileDaan De Meyer2020-12-071-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.
* msubprojects: Ignore worktrees when checking outNirbheek Chauhan2020-12-071-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.
* Add prelinking support for static libraries.Jussi Pakkanen2020-12-0315-2/+155
|
* Update Vala Preprocessor section in documentation. Closes: #8040 [skip ci]Jerry Casiano2020-11-291-1/+7
|
* Add aarch64 assembly testmimi899992020-11-291-1/+10
|
* Add script to create a zipapp.Eli Schwartz2020-11-273-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
* createmsi: move to generic packaging directoryEli Schwartz2020-11-272-1/+1
| | | | | We might want to create other dedicated packaging scripts, and put them all in one directory.
* Bump Ninja requirement to 1.8.Jussi Pakkanen2020-11-263-6/+6
|
* rename .lgtm.yml to reduce top-level directory ls clutterMichael Hirsch, Ph.D2020-11-251-0/+0
| | | | | .lgtm.yml is also good filename: https://lgtm.com/help/lgtm/lgtm.yml-configuration-file
* compilers/fortran: Add "none" to intel compielrs for standardsDylan Baker2020-11-241-2/+2
| | | | Fixes #8023
* compiler: allow non-built internal dependencies as argumentsPaolo Bonzini2020-11-244-13/+35
| | | | | | | | | 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.
* Merge pull request #7982 from dcbaker/submit/unittest-fixupsJussi Pakkanen2020-11-241-74/+55
|\ | | | | Unittest fixups
| * unittests: ignore nix rpathsDylan Baker2020-11-181-5/+12
| | | | | | | | | | | | | | As a necessity nix adds a bunch of rpaths to files, this is unavoidable do to the way nix package management works. Meson doesn't expect this however, and fails all rpath tests. To correct this we just ignore any rpath entries that start with `/nix`.
| * unittests: Simplify and make test_templates more reliableDylan Baker2020-11-161-46/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | env.detect_<lang>_compiler only checks that there is a binary called whatever that returns a version. There are several cases where the found binary doesn't work: 1) gcc for ojbc[pp], when support isn't compiled in. 2) the compiler is broken (rust in appveyor somtimes) Because of that we need to call compiler.sanity_check() as well, and if we get an EnvironmentException from that skip the language Also, instead of having a long line of try: ... except: pass, roll all of the checking up into a loop using getattr(), which is less code and makes adding a new language easier
| * run_unittests: correctly handle users setting init.defaultBranchDylan Baker2020-11-161-2/+18
| |
| * run_unittests: Don't assume things are in /usr/binDylan Baker2020-11-161-21/+17
| | | | | | | | | | This is generally a safe assumption, except for some of the more exotic OSes/distros like nixos, where env is the only thing in /usr/bin
* | add dependency recommendation [skip ci]Michael Brockus2020-11-231-0/+8
| | | | | | Co-authored-by: Eli Schwartz <eschwartz@archlinux.org>
* | Remove AutoDeletedDirChristoph Reiter2020-11-231-16/+4
| | | | | | | | Replace the only usage with a simple try/finally and remove the class.
* | Replace various calls to AutoDeletedDir with TemporaryDirectoryWinProofChristoph Reiter2020-11-231-6/+6
| | | | | | | | | | | | AutoDeletedDir was a workaround to TemporaryDirectory not using windows_proof_rmtree(). TemporaryDirectoryWinProof does now, so replace it.
* | Add a variant of TemporaryDirectory that uses windows_proof_rmtree()Christoph Reiter2020-11-232-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().
* | doc: fix confusing use of "build" as a directory argument [skip ci]Eli Schwartz2020-11-223-9/+9
| | | | | | | | | | | | | | | | | | | | In most places, we now refer to "builddir/" which is a lot less likely to make people think it is a subcommand which needs to be used literally. This is a regression since commit 276d342ebaf859dd53e145ead3e98e2cebb360ab due to the existence of new docs which were added later on, using the wrong form.
* | CI: install glib for the MSYS2 jobs to make pkgconf happyChristoph Reiter2020-11-231-0/+1
| | | | | | | | | | | | | | Fixes a test when using pkgconf instead of pkg-config. The .pc file in the pkgconfig-gen test requires it and pkgconf seems be stricter here and fails to validate.
* | CI: fix a typo in the msys2 workflow trigger pathsChristoph Reiter2020-11-231-2/+2
| |
* | Merge pull request #8010 from dcbaker/submit/optinterpreter-cleanupsJussi Pakkanen2020-11-223-36/+58
|\ \ | | | | | | Opt Interpreter cleanups and type annotations
| * | optinterpreter: organize the validation of arguments to be more readableDylan Baker2020-11-201-10/+13
| | |
| * | optinterpreter: use PEP8 compliant namesDylan Baker2020-11-201-10/+10
| | |
| * | optinterpreter: fix value being set in loopDylan Baker2020-11-201-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.
| * | Add type annotations to optinterpreterDylan Baker2020-11-202-19/+34
| | |
| * | Allow setting attributes in MesonException intializerDylan Baker2020-11-201-3/+7
| | | | | | | | | | | | Instead of forcing them to be set afterwards
* | | Merge pull request #8011 from dcbaker/submit/post-python36-cleanupsJussi Pakkanen2020-11-2246-96/+46
|\ \ \ | | | | | | | | Python 3.6 cleanups
| * | | setup.cfg: fix python requires to be 3.6.0Dylan Baker2020-11-201-1/+1
| | | |
| * | | setup.py: fix check fro 3.5.2 which should be 3.6Dylan Baker2020-11-201-2/+2
| | | |
| * | | Delete now dead < python 3.6 checkDylan Baker2020-11-201-1/+1
| | | |
| * | | use real pathlib moduleDylan Baker2020-11-2044-92/+42
| |/ / | | | | | | | | | | | | 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
* | | Handle cmake dependencies which require a specified versionJason Ekstrand2020-11-219-5/+56
| | | | | | | | | | | | | | | | | | 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.