aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2022-07-13docs: Suggest using depth=1 by default for wrap-gitPhilip Withnall1-1/+5
It saves bandwidth and disk usage on downloaded subprojects, and people very rarely need more than the single commit they’re using. Add `depth=1` to the `[wrap-git]` examples in the rest of the documentation, to make it more likely that people will copy-and-paste it into their `.wrap` files. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2022-07-11Revert /utf-8 changes in the visualstudio mixin to the 0.62.0 stateEli Schwartz1-5/+3
Specifically, this is a combination of the following: - Revert "visualstudio.py: Apply /utf-8 only on clang or VS2015+" This reverts commit 6e7c3efa793c25259891d3b5471343f95fb061fa. - Revert "Visual Studio: Only use /utf-8 on VS2015 or later or clang-cl" This reverts commit 8ed151bbd786d2c52e6ea7b7cfe3147fc41ec041. The changes were broken and untested, although this is because of a lack of general CI testing for all languages on Windows. At least, this broke the use of ifort, and possibly more. The changes are fundamentally a bit "exciting", as they step out of the hierarchy of compiler definitions and apply arguments almost willy-nilly. And apparently it's leaky all over the place. I don't understand all of what is going on with it, but it plainly failed to achieve its desired goal and needs to be rolled back ASAP.
2022-07-11CI: install ifort on WindowsEli Schwartz7-1/+116
This enables the fortran tests for Azure. We only test on x64, because: - ifort isn't arm64 compatible - x86 may in theory exist, but Meson reports it cannot compile executables
2022-07-11tests: unskip windows mixing msvc and fortran, for non-gcc fortranEli Schwartz2-2/+4
These checked that e.g. the cpp and fc ids are identical, which isn't strictly what we want. Particularly, msvc doesn't even have a fortran compiler, and what we really care about is whether we mix both gcc and something else.
2022-07-11tests: skip template test for windows shared fortranEli Schwartz1-0/+6
This is only supported with gfortran, see "test cases/fortran/6 dynamic" for more details. Skip it explicitly here too.
2022-07-11run_single_test: Allow passing extra args like run_project_testDylan Baker1-1/+4
So you can do things like `run_single_test.py <path> -- -Ddefault_library=both`
2022-07-11docs: add cross-file exampleMichael Davidsaver1-1/+28
2022-07-08implement the new preserve_path kwarg for install_data tooEli Schwartz36-11/+123
Primarily interesting to me because it is then available for the python module's install_sources method. Based on the new feature in install_headers.
2022-07-08fix incorrect type annotationEli Schwartz1-1/+1
In my attempts at actually using this, I discovered that no, it actually does take None.
2022-07-07Users.md: Add SciPyAmit D1-0/+1
2022-07-07Fix test case numbers.Jussi Pakkanen124-24/+24
2022-07-06cuda: don't inject `-lstdc++` when linkingDavid Seifert1-1/+10
Fixes: #10570
2022-07-06run_project_tests: Don't try to use tqdm when stdout is not a ttyDylan Baker1-1/+1
Like when piped to something like less, where tqdm just makes a mess of the output instead of providing something helpful.
2022-07-06gnome module: Use --quiet to supress printing the link command lineRichard Hughes1-0/+1
This removes one line of stderr output per GObject Introspection file processed, e.g. g-ir-scanner: link: gcc -o Fwupd-2.0 Fwupd-2.0.o -L. -Wl,-rpath...
2022-07-06Improve error message for `include_directories(abs_path_intree)`Ralf Gommers2-3/+8
This error message was quite confusing when triggered by use of an absolute path to the include dir of an external dependency (numpy in my case). Changing that to a relative dir also isn't a solution, because Meson will *not* do the "busywork to make paths work" that the error message says it will.
2022-07-06Detect Cython and Vala compilers on the build machine alwaysTristan Partin1-4/+3
Transpilers need to run on the build machine in order to generate their output, which can then be taken by a cross-compiler to create the final output.
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