aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2022-07-06pkgconfig: do not add valgrind as requirementMarc-André Lureau1-0/+2
For the same reasons commit 7aa28456d ("Add dependency type for Valgrind") removed linking with valgrind, pkgconfig shouldn't generate "Requirements" for it, in general. This solves dbus meson port question/issue from: https://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/303#note_1444819 Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2022-07-04Update Users.mdAmit D1-0/+3
2022-07-04Update Users.mdAmit D1-0/+9
2022-07-03move various unused typing-only imports into type-checking blocksEli Schwartz19-34/+77
2022-07-03fix totally invalid import of an importEli Schwartz1-1/+3
MachineChoice is a mesonlib object, not a compilers object, so it makes no sense to import it from the latter simply because the latter imports it too. This results in brittle module dependencies and everything breaking when a refactor removes it from the latter. ... also it is a typing-only import so while we are fixing it to import from the right place, we can also put it in a type-checking block.
2022-07-03sort imports for neatnessEli Schwartz3-18/+17
2022-07-03Bump version number for new development.Jussi Pakkanen1-1/+1
2022-07-03Finalize the release.0.63.0Jussi Pakkanen22-246/+272
2022-07-02Users.md: remove wxFormBuildersmowzy1-1/+0
according to commit https://github.com/wxFormBuilder/wxFormBuilder/commit/8a3d1697c819b8a8b41a136a865439b205997ae1
2022-06-30test cases: Don't fall off the end of main() without an exit statusSimon McVittie3-0/+3
This is undefined behaviour, and seems to have caused test failures when backporting Meson to an older toolchain in the Steam Runtime. Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-06-29docs: update various function references to be linkifiedEli Schwartz7-26/+26
2022-06-27docs: fix broken link to structured sourcesEli Schwartz1-2/+2
We used the wrong spelling for both the object and the function. Link to both, once in the description and once in the example code.
2022-06-27docs: fix broken links in i18n modueEli Schwartz1-2/+2
We want to talk about the kwargs to the custom_target() function, but tried to link to custom_tgt instead, which is not a function. It is an object, but this was the wrong reference method for a type. We want the function anyway, so use that.
2022-06-27docs: correctly classify module methods as a method, not a functionEli Schwartz1-7/+7
2022-06-27docs: grammar nitEli Schwartz1-1/+1
2022-06-27docs: encourage using the "setup" subcommand where appropriateEli Schwartz1-1/+1
2022-06-27docs: fix confusing repetitionEli Schwartz1-6/+4
The end of the paragraph indicates that the options which support --foo will be listed in the help text. The beginning of the paragraph seems to suggest the same thing, except it doesn't distinguish between -Dfoo and --foo style options. The first mention is redundant and feels like the wrong part of the paragraph to mention it anyway.
2022-06-27docs: linkify some function referencesEli Schwartz3-4/+4
2022-06-27dependencies: update llvm versionsDylan Baker1-1/+3
15 is the current snapshot version, 13 and 14 are released.
2022-06-27Bump version number for rc2.0.63.0.rc2Jussi Pakkanen1-1/+1
2022-06-27docs: fix yaml refman example of embedding links in a code commentEli Schwartz1-1/+1
With the previous commit, we made this smartly detect when parentheses are not needed. But the example was broken, because it doesn't follow its own documented rules to use `[[#` syntax. Add the missing hash character.
2022-06-27docs: make the refman linkification slightly prettier for codeblocksEli Schwartz1-3/+6
If we link to ```meson [[#function]]('posarg') ``` then the ideal linkification would operate on "function" in the formatted text: ``` function('posarg') ``` Instead, it operated on "function()" in the formatted text: ``` function()('posarg') ``` Fix this by detecting the next character after the reference, and skipping the usual "automatically append the () for you" stage if it already has that opening parenthesis.
2022-06-26Fix destdir_joinAkihiko Odaki1-3/+3
The old implementation assumed a path is of Windows iff the second character is a colon. However, that is not always true. First, a colon can be included in a non-Windows path. For example, it is totally fine to have a directory named ':' on Linux 5.17.0 tmpfs. Second, a Windows path may start with \\ for UNC or extended length. Use pathlib to handle all of these cases.
2022-06-26add missing lower() to fix msvc backend platform detectionTad Young1-1/+1
Regardless of which MachineChoice we base the platform on, we compare its value to lowercased identifiers. So we need to lowercase the targetplatform too... but we only did so sometimes. This broke e.g. on "Win32", but only when *not* doing a cross build. Fixes #10539
2022-06-24chore: Set permissions for GitHub actionsneilnaveen7-0/+21
Restrict the GitHub token permissions only to the required ones; this way, even if the attackers will succeed in compromising your workflow, they won’t be able to do much. - Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs [Keeping your GitHub Actions and workflows secure Part 1: Preventing pwn requests](https://securitylab.github.com/research/github-actions-preventing-pwn-requests/) Signed-off-by: neilnaveen <42328488+neilnaveen@users.noreply.github.com>
2022-06-24fix: handle the case where the last item of `four_column` results in being < ↵fxxf1-1/+2
1 (COLUMNS <= 60) by falling back to `_col`, relevant issue #10211
2022-06-22Move python version check as first thingXavier Claessens2-6/+9
2022-06-21fix type checking for declare_dependency to allow linking to executableEli Schwartz2-3/+8
We have to handle this, because Windows needs to link to the implib of the executable (???) in order to create a shared module. This is explicitly checked for and handled in the backend, and creating a build target with `link_with: some_exe` still works, even. But updating declare_dependency to typed_kwargs neglected to take that into account, so creating a convenience interface for those same arguments failed.
2022-06-21docs: grammar and formatting nitsEli Schwartz1-2/+8
2022-06-21docs: remove incorrect information about nonexisting kwargEli Schwartz1-2/+2
2022-06-21Update Unit-tests.md (#10515)CLanguagePurist1-0/+8
2022-06-21visualstudio.py: Apply /utf-8 only on clang or VS2015+Chun-wei Fan1-7/+5
In PR 10263, we didn't account for that we may have initialize the Visual Studio-like compiler two times, once for a C compiler and once for the C++ compiler, so we end up with Meson breaking on Visual Studio 2013 or earlier, such as when building GLib. Fix this by setting up the always_args member of the VisualStudioLikeCompiler instance during __init__() as needed, so that we avoid falling into modifying shared objects.
2022-06-19Update version numbers for rc1.0.63.0rc1Jussi Pakkanen2-2/+2
2022-06-19Merge pull request #10464 from rtbo/fix_generated_depsJussi Pakkanen5-2/+50
add D generated files to order-only deps
2022-06-19python module: implicitly add python dep to extensionsEli Schwartz6-15/+35
If there isn't a preexisting dependency on python, append one. It's almost assuredly needed, so just do the right thing out of the box.
2022-06-19python module: cache dependency() lookup between invocationsEli Schwartz1-14/+26
Modeled similarly after the installations cache, but using the coredata dependency cache because it has a nice mechanism for handling the cache key.
2022-06-19update gnome test to cover built gresource filesEli Schwartz3-4/+29
Co-authored-by: Dylan Baker <dylan@pnwbakers.com>
2022-06-19gnome module: fix regression that broke using built xml files as gresourcesEli Schwartz1-1/+8
In commit 3dcc7125833cae138987aa4535c88dbd4dbd960d we moved to typed_pos_args. In the process, we deleted some code to specifically raise an error if you use custom_target or generator outputs, instead leaving it out of the typed pos args. However, that support was specifically supposed to be there. It was only an error in part of an if statement for handling old versions of glib-compile-resources. The specific error it calls out is that we need to manually parse the depfile at configure time, due to an external bug; obviously this is impossible if the gresource is only created at build time. Reinstate the original error message check, and allow built outputs to be used as compile_resources() inputs. Fixes #10367
2022-06-19Update CUDA Toolkit/driver version table for recent releases.Olexa Bilaniuk1-0/+5
Agrees with Release Notes, Section 1.1, Table 3. https://docs.nvidia.com/cuda/cuda-toolkit-release-notes/index.html
2022-06-17always run external projects multi-threaded if possibleStaz M1-4/+3
The check for if the project supports the -j flag was needlessly complex. We support two types of project: - waf, always supports -j - make, if GNU, supports -j We never checked waf, and the make check assumed that the entire command, rather than just the last component, was "make". It also neglects "gmake". Since any possible build command *may* support -j, always run the --version check. Detect either build command in the output.
2022-06-17always set DESTDIR via the environment for external projectsStaz M1-4/+1
It doesn't matter whether it is make or not, because make, too, supports setting it via the env. This reduces the use of special cases in the code.
2022-06-17external-project: Add depends kwargXavier Claessens3-5/+17
The unit test was racy but surprisingly never failed on CI. The reason is we need to ensure ninja build somelib.so before running `make` into the external project.
2022-06-17migrate declare_dependency to typed_kwargsEli Schwartz2-32/+94
2022-06-17refactor logic for parsing dependency variables into type_checking moduleEli Schwartz5-15/+44
We will momentarily use this to implement typed_kwargs, but not for all usage sites.
2022-06-17docs: d_module_versions has an undocumented ability to accept integersEli Schwartz4-8/+10
Dlang uses both integer version "levels" and arbitrary string identifiers, and we support both, but don't mention it in the docs. Also update a test case to pass one via declare_dependency. We already test this kwarg for build_target.
2022-06-17docs: fix incorrect info for declare_dependency sourcesEli Schwartz1-1/+1
The type information is clearly wrong as it disagrees with the description w.r.t. generated headers. We also rely on it accepting custom targets for the obvious reason that we accept it in a build target too! In fact, we rely on this in the testsuite too.
2022-06-17fix confusing incorrect default name for a KwargInfoEli Schwartz2-2/+2
We can use this lots of places, and it's always the same kwarg. There doesn't seem to be a point in naming it badly, then evolving it to the standard name in the one place it is currently used. This made it not shareable.
2022-06-17typed_kwargs: support dict/list as "new since" typesEli Schwartz1-6/+12
Given a kwarg value that is itself a dict/list, we would only check if the since_values was present within that container. If the since_values is itself the dict or list type, then we aren't looking for recursive structures, we just want to know when the function began to accept that type. This is relevant in cases where a function accepted a dict, and at one point began accepting a list (of strings in the form 'key=value'), or vice versa.
2022-06-17interpreter: fix a subproject check with symlinksHemmo Nieminen6-4/+26
The check for whether or not a file is allowed to be accessed from a subproject fails if the subproject is accessed via a symlink. Use the absolute path of the subproject without resolving symlinks to fix the check. Extend unit test 106 to check for this in the future.
2022-06-17fix parameter expansion in several error messagesMichael Mera3-5/+5
At several points in the code base, f-strings are not correctly expanded due to missing 'f' string prefix. This fixes all the occurrences I could find.