aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-05-25Autodetect installer path location.pkgfixJussi Pakkanen1-1/+5
2023-05-25run_single_test: add a --quick option to skip compiler/tool checkingDylan Baker1-2/+5
This can be the longest part of the entire test process, often with no benefit because we already know the environment is sane. So, let's have an option save some time.
2023-05-25mtest: wildcard selectionCharles Brunet5-7/+99
Allow the use of wildcards (e.g. *) to match test names in `meson test`. Raise an error is given test name does not match any test. Optimize the search by looping through the list of tests only once.
2023-05-25ProgressBar: Fix some rendering issuesXavier Claessens3-13/+27
- Do not hardcode terminal width of 100 chars, that breaks rendering on smaller terminal. It already uses current console width by default. - Disable progress bar when downloading from msubprojects because it fetches multiple wraps in parallel. - Scale unit when downloading e.g. MB/s. - Do not display rate when it's not a download. - Do not display time elapsed to simplify the rendering.
2023-05-24repair install_mode support for uid/gid effectively everywhereEli Schwartz8-2/+32
We silently dropped all integer values to install_mode since the original implementation of doing this in KwargInfo, in commit 596c8d4af50d0e5a25ee0ee1e177e46b6c7ad22e. This happened because install_mode is supposed to convert False (exactly) to None, and otherwise pass all arguments in place. But a generator is homogeneous and attempting to do this correctly produced a mypy error that FileMode arguments were allowed to be ints -- well of course they are -- so that resulted in the convertor... treating ints like False instead, to make mypy happy. Fixes #11538
2023-05-24remove inaccurate commentEli Schwartz1-6/+1
This convertor was initially implemented doing all the things the TODO says it doesn't yet do. The freestanding interpreter function is what doesn't do this.
2023-05-24Remove pointless install_umask validation check for NoneEli Schwartz1-1/+1
This option can never have a value of None. There are only two sources of values at all: - the class instance initializer when defining BUILTIN_CORE_OPTIONS - user-provided command-line or machine file values etc. which can only be meson types We know we don't construct the Option instance with None, and users cannot pass a None anywhere since that's not a meson type. The only reason this was ever checked for was as an artifact during the initial implementation of the option in commit 8651d55c6a317de37dcaa9965157151095a88292. At the time, a review comment was made that `-Dinstall_umask=none` was a bad UX and "preserve" should be used instead. Before that, this option type accepted `None` (in the BUILTIN_CORE_OPTIONS initializer) and `'none'` (provided by users) which is odd and should have consistently been the latter. Then inside set_value, it checked for the magic initializer value and converted it to the real value. After review comments and a force-push, the patch ended up using `None` in the initializer, and `'preserve'` everywhere else, and still handling both in set_value and converting both to a proper string. In the very next commit in the patch series, the initializer was migrated to use an actual umask of 022, and now `None` was entirely impossible to get anywhere at all. But the wart of checking for it was never removed. Remove it at long last.
2023-05-24azure pipelines: fix branch patterns to support 1.x release branchesEli Schwartz1-1/+1
I would like to use the same pattern rule as github actions uses: '[0-9]+.[0-9]+' But azure pipelines doesn't document what the syntax here is, and it scares me that perhaps the reason we didn't already do this is because it doesn't work at all.
2023-05-23docs: gnome: mention that compile_resources adds dependencies by defaultPablo Correa Gómez1-0/+2
It is not very clear from the documentation that the dependencies in the resource file are added as default dependencies to the target.
2023-05-23deprecate the buildtarget.get_id() methodEli Schwartz1-0/+3
This has never been undocumented and there's no obvious value to having it or using it. We're not even sure anyone ever has used it. Closes #6061
2023-05-23llvm: Bump broken micro version for CINirbheek Chauhan1-2/+2
16.0.4 didn't fix the LLVM breakage.
2023-05-23docs: Fix some typos in feature option examplesNirbheek Chauhan1-2/+2
2023-05-23qt: Allow specifying separate tools for qt4/5/6Nirbheek Chauhan3-11/+15
Currently you can only use one of qt4, qt5, qt6 in a single project when using a machine file because the config-tool lookup for qt only looks at `qmake` in the machine files, instead of looking up the binary names directly. Allow specifying `qmake` `qmake4` `qmake5` and `qmake6`. This is necessary for gstreamer, which can build separate qt5 and qt6 plugins that are distributed as static libraries, so the user can pick which one to use.
2023-05-22i18n module: check for a good enough msgfmt before permitting merge_fileEli Schwartz1-1/+10
The concept of merge_file intrinsically requires some GNU-specific functionality, so let's emit a useful error message during configuration, when we don't have that. The relevant GNU gettext versions date back to around 2015 so *probably* anyone has that too, but we may as well verify that while we are here.
2023-05-22i18n module: be broadly supportive of portable gettext toolsEli Schwartz1-1/+1
There are a number of implementations for msgfmt, supporting various options. The simplest, and most common, use case is to compile .po files into .mo files, and this should be able to work on gettext implementations other than the GNU one. The problem is that we were passing some pretty portable arguments in an unportable manner. The `-o` option-argument and its associated argument came after the input file operand, which violates the POSIX Utility Syntax Guidelines, and happens to not be supported by Solaris gettext. The GNU gettext doesn't care; GNU invented GNU argument permutation. Switch the order around so that our use respects the POSIX style.
2023-05-22intro: add more details to generated files(part 2)Charles Brunet2-2/+9
- add `extra_paths` to intro-tests.json to know paths needed to run a test on Windows; - add `depends` to alias targets in intro-targets.json to know what targets does an alias point to; - add `depends` to intro-dependencies.json to know libraries linked with an internal dependency; - renamed `deps` to `dependencies` in `intro-dependencies.json` for more uniformity.
2023-05-21Allow generator.process(generator.process(...))Volker Weißmann8-65/+148
Fixes #1141
2023-05-20rust: Add system libs used by rust std to staticlib external depsXavier Claessens4-10/+25
2023-05-20rust: Use Popen_safe() for sanity checksXavier Claessens1-11/+2
2023-05-20wrap: Check for common "provides" typoXavier Claessens1-0/+2
It is a common mistake that is hard to find because Meson silently ignore unknown sections. Better have an explicit error message.
2023-05-18Check dub version (#11794)Remi Thebault3-28/+62
* DubDependency._check_dub returns the version * check for compatible Dub version Dub versions starting at 1.32 have a new cache structure into which Meson doesn't know where to find compatible artifacts * skipping D tests involving Dub * refactor _check_dub makes mypy happier * make linters happy * localize some logic
2023-05-17summary: Add from which subproject each subproject have been calledXavier Claessens3-7/+13
2023-05-16rust compiler: use better sanity check logging comparable to the clike oneEli Schwartz1-7/+13
Don't spew debug-level info. Log the actual command line run.
2023-05-16meson_exe: print suitable debug information for DLL not found errorsEli Schwartz1-1/+2
It's particularly inscrutable if you do not know where DLLs weren't found because you don't know what the PATH was in the child process.
2023-05-15Metrowerks: move PCH args to the end of the command lineNomura1-1/+7
2023-05-13Make `dependency('foo', static: true, method: 'cmake') link staticallyVolker Weißmann3-1/+7
Fixes #1709
2023-05-13During reconfigure, show that no compiler was found, if compiler fails ↵Volker Weißmann6-19/+21
sanity check.
2023-05-13Fix paths of Fortran order dependenciesVolker Weißmann5-4/+22
Fixes #11047
2023-05-09docs: mention additional python modules needed for buildingEli Schwartz2-0/+14
Also check that they are available in meson.build. Closes #11772
2023-05-09docs: make the man page installableEli Schwartz1-0/+2
Users now have the *option* to run the documentation build and use `meson install` to install man pages.
2023-05-09docs: add option to skip building HTML docsEli Schwartz2-33/+40
Reorder meson targets to handle those all at the end, and exit early if HTML documentation is disabled. This makes it possible to build just the manpage, without hotdoc installed.
2023-05-09docs: add meson option to use the unsafe loaderEli Schwartz2-1/+4
2023-05-09Enable fatal warnings in HotDoc when building website.Jussi Pakkanen1-0/+1
2023-05-08docs/prebuilt: fix sanity check logic in the exampleJoel Rosdahl1-1/+1
2023-05-06Initial support for Metrowerks AssemblerNomura4-1/+127
2023-05-05mcompile: Fix target name suggestionsXavier Claessens1-1/+1
2023-05-05Fix building python extensions on win-arm64Radek Bartoň1-17/+8
2023-05-05Python module: emit warning for debug buildtypes with MSVC and no debug PythonRalf Gommers1-1/+24
CPython adds a hard to avoid hardcoded link flag to look for a debug libpython. This results in a very puzzling error, so emit a warning with a clear message. Note that pybind11 has a workaround for this, which undefines `_DEBUG`. So users who use only pybind11 can use non-release buildtypes, but they won't get debug symbols on Windows unless they have a debug build.
2023-05-05Fix unit test that hardcoded `/` and hence broke on WindowsRalf Gommers1-4/+4
2023-05-05Fix `ERROR: no toolchain found` when run from unittestsRalf Gommers1-1/+1
[skip actions]
2023-05-05Add Cython to Windows CI jobs on AzureRalf Gommers1-0/+3
[skip actions]
2023-05-05Use release buildtype in Cython tests, and skip unless ninja backendRalf Gommers5-21/+33
This matches the tests for Python extensions. Also include some other cleanups to these `meson.build` files: Adding `python_dep` is no longer needed, this is automatic now. Use a single line for `import('python').find_installation()`, because the result of `import('python')` by itself is not used for anything.
2023-05-03dependencies: allow config-tool to fallback to default program namesEli Schwartz2-1/+5
If the dependency permits it, we can just do a PATH search instead of mandating that it be listed in the cross file. This is useful for the limited case where a specific dependency is known to be compatible with any machine choice. Mark the pybind11 dependency as supporting this. It's a valid choice because pybind11 is a header-only C++ library.
2023-05-03cmake module: fix many typing issuesEli Schwartz1-23/+25
In #11761 it turned out that we failed to correctly handle all compiler.sizeof API changes in an old commit, breaking use of the module. And mypy could have caught this for us, except that the module is neither typed nor checked in CI. Partially solve this by adding lots of type annotations, greatly reducing the number of mypy errors in this file from 35 down to 12.
2023-05-03cmake module: make configured file correctly handle the do_conf_file APIEli Schwartz1-5/+5
This doesn't accept a dict, only an actual ConfigurationData object. Due to the way we poke at it, a dict can sort of work anyway, but might not if the internal layout isn't exactly correct. This is evidenced by the way we make the dict values be hard-to-read tuples containing emptiness, because that's how ConfigurationData objects handle descriptions. Simplify and make the seed dictionary readable, then actually convert it into a real ConfigurationData. Bonus: this now passes type checking.
2023-05-03cmake module: use more typed_pos_args for consistencyEli Schwartz2-20/+10
It's shorter and more descriptive. Although we always enforce the same rules either way, a unified decorator is one less line of code for each location, and also tells you how many "too few" arguments you *did* pass.
2023-05-03doc: Add link to argument detailsXavier Claessens2-3/+10
2023-05-03Visual studio: Generate vcxproj.filters files to adds filters to imitated ↵Renan Lavarec2-0/+66
directories to navigate more easily in the source files.
2023-05-03tests: fix `test_always_prefer_c_compiler_for_asm`Benoit Pierre1-1/+1
Handle the case where `sccache` is installed and used over `ccache`.
2023-05-03python bytecompile: use correct install tagEli Schwartz1-1/+1