aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-04-20compilers: Silence warning about gnu_inline with clangNirbheek Chauhan4-6/+18
The warning is due to a change in behaviour in Clang 10 and newer: https://releases.llvm.org/10.0.0/tools/clang/docs/ReleaseNotes.html#c-language-changes-in-clang This was already fixed for clang++, but not for clang for some reason. It was also fixed incorrectly; by adding `extern` instead of moving from `-Werror` to `-Werror=attributes`.
2020-04-20add introspect --buildsystem-files info [skip ci]Michael1-0/+15
2020-04-17interpreter: Correctly ignore def files in build directoryXavier Claessens4-7/+51
See https://gitlab.freedesktop.org/gstreamer/gst-build/-/issues/85.
2020-04-17tests: Convert sdl2 to use a matrix optionDylan Baker3-17/+22
2020-04-17tests: use a json matrix for MPIDylan Baker1-0/+15
This is a nice way to ensure that all of the methods continue to work
2020-04-17Add a json schema for the test.json used in testsDylan Baker4-2/+143
This does a couple of nice things, one is that editors like vscode can be configured to use this schema to provide auto completion and error highlighting if invalid values are added or required values are missing. It also allows us test that the format of the test matrix work in a unit test, which I've added. It does require that the python jsonschema package is installed.
2020-04-17ci: Add python-jsonschemaDylan Baker5-5/+7
Which is used to validate the json schema files in the various test directories in a unit test.
2020-04-17run_project_tests: Allow matrix tests to skipDylan Baker1-1/+5
Since they generate some tests that are only valid on specific operating systems.
2020-04-17run_project_tests: Add an option to put temprorary files in /tmpDylan Baker1-21/+22
I have an NVME drive, I really don't want to be thrashing it with temporary files. It's also annoying to watch vscode thrash about with files that are quickly created and deleted. I'd rather put them in /tmp, so I've added a non-default option to do so.
2020-04-17cmake: Do not compile explicit header filesDaniel Mensinger13-15/+200
2020-04-17compilers: Honor <lang>_ld when linking C-like outputsOle André Vadla RavnÄs1-0/+4
2020-04-17Merge pull request #6980 from fooishbar/cmake-windows-system-lib-depsJussi Pakkanen1-2/+16
Fix CMake Windows system library deps
2020-04-17tests/common/203: Use a test matrixDylan Baker3-24/+41
This allows us to test the one at a time, and the many at a time functions without the second test getting cached. We really don't want to get cached.
2020-04-17compilers: Update gnu_inline test to work correctly with Clang >= 10Dylan Baker1-0/+3
Which has changed the way it handles gnu_inline in C++.
2020-04-17docs/users: Update freedesktop users to point at gitlab [skip ci]Dylan Baker1-5/+5
Rather than the legacy cgit
2020-04-17docs: The X Test Suite uses meson [skip ci]Dylan Baker1-0/+1
2020-04-17tests/common/93: Fix cross building when no exe_wrapper is availableDylan Baker1-1/+13
By building the generator for the build machine always, and only for the host machine if an exe_wrapper is available. This makes sense to me as generally you are going to build the generator for the build machine, not the host machine, but testing on the host machine makes sense too.
2020-04-16backend: Fix file name confilcts by using the complete pathDaniel Mensinger1-2/+2
2020-04-15dependencies/cmake: Only use abs paths as link argsDaniel Stone1-1/+5
When taking library dependencies from CMake, we first attempt to look the dependency up in the target list, then fall back to treating it as a path, which we add if the path exists. As there is no check for whether or not the path is really a path, this can cause false positives; for example if a 'uuid' dependency was passed intending to be a target, but it cannot be found and the current directory also contains a file or directory named 'uuid', we will just include the string 'uuid' in library dependencies. This is particularly prevalent on Windows, where a system library called 'version' exists, and thanks to case insensitivity will match a file called 'VERSION' if found in the source root when running Meson from the source directory, or a generated file when running Meson from the build directory. Fix this check to only look up filesystem existence on absolute paths, not unqualified. This also adds a fallback warning in case an argument cannot be found, rather than silently falling back.
2020-04-15dependencies/cmake: Suffix bare library dependencies on WindowsDaniel Stone1-0/+9
On Windows, library dependencies can be passed with no prefix or suffix; rather than -lfoo or foo.dll, they can just be passed as 'foo'. CMake handles this and suffixes the library with '.lib' or '.dll', depending on the link mode. Do the same here, and if we've been passed an unqualified non-option bare name on Windows, add the appropriate suffix and pass it through to the linker. This fixes dependencies on system libraries.
2020-04-15dependencies/cmake: Add Windows/VS library regexDaniel Stone1-1/+2
When finding dependencies from CMake, use a smarter regex to determine whether or not a dependency is actually a link argument, and pass through Windows link arguments properly.
2020-04-14Corrected prefix path [skip ci]Jonas MĂžller1-1/+1
Using meson version `0.53.2` prefix defaulted to `/usr/local`, not `/usr/local/` (not the trailing slash)
2020-04-14interpreter: find_program: Store program's name when not foundAriel D'Alessandro1-3/+3
Currently, looking for a nonexisting program using find_program() will return an NonExistingExternalProgram instace with the default name 'nonexistingprogram'. Let's store the target program's name in it, so it can be printed if needed. Signed-off-by: Ariel D'Alessandro <ariel@vanguardiasur.com.ar>
2020-04-14interpreter: Show program's name on run_command error messageAriel D'Alessandro1-1/+1
Currently, the error message is printing the object itself. Showing the program's name is better. Signed-off-by: Ariel D'Alessandro <ariel@vanguardiasur.com.ar>
2020-04-13wrap: Add fallback urlsXavier Claessens4-10/+27
It can happen that a server is temporaly down, tarballs often have many mirrors available so we should be able to add at least one fallback mirror in wrap files.
2020-04-13Remove alignment syntax not supported by hotdoc. Closes: #6954. [skip ci]Jussi Pakkanen1-5/+5
2020-04-12Merge pull request #6963 from mensinda/cmFixCCmdJussi Pakkanen4-5/+55
cmake: some fixes for add_custom_command
2020-04-12Merge pull request #6943 from dcbaker/gdc-coverageJussi Pakkanen4-10/+10
Fix coverage generation with D compilers
2020-04-12Merge pull request #6958 from jon-turney/fix-name-prefix-explicit-defaultJussi Pakkanen4-11/+18
Fix library(name_prefix: [])
2020-04-12cmake: Preserve include directory order (fixes #6959)Daniel Mensinger20-11/+145
2020-04-12azure: Do not skip boost testsDaniel Mensinger1-1/+4
2020-04-12cmake: Capture stdout with UNIX pipesDaniel Mensinger3-1/+38
2020-04-12cmake: Fix custom command CMake list issueDaniel Mensinger2-4/+17
2020-04-12Fix VS Intellisense for projects which depend on LLVM found via CMake.Jesse Natalie1-0/+3
2020-04-11opts: Allow `-` and `not` in meson_options.txt (fixes #6948)Daniel Mensinger3-2/+17
2020-04-11Handle BuildTarget as custom_target() argument #6914Marc-André Lureau5-11/+28
2020-04-11docs: fix the docs for install_subdir's strip_directory [skip ci]Peter Hutterer1-1/+1
When set to **true** only the last component is used. And throw in two minor grammatical fixes while we're there.
2020-04-11Refine documentation of default name_prefixJon Turney1-4/+4
Refine documentation of the default name_prefix, so people don't get the impression they can write logic which uses 'lib' as the default, when they should be defaulting to '[]', to let us take care of the complexities.
2020-04-11Fix handling of library(name_prefix: [])Jon Turney1-6/+7
Adjust the handling of a name_prefix: [] kwarg to be the same as name_suffix: [] kwarg, i.e. identically to the case where it's omitted, so BuildTarget.prefix doesn't get set (so the default is used). Also clarify the error reported when a non-empty list is used.
2020-04-11Extend test to cover using library(name_prefix: []) for defaultJon Turney2-1/+7
Also test library(name_suffix: [])
2020-04-11References-tables.md: repair broken tableVanadiae1-1/+1
At https://mesonbuild.com/Reference-tables.html#compiler-and-linker-selection-variables, the table is broken and it seems that the only difference with other well-working tables on this page is the semi-column ":" that are present under Language.
2020-04-11Add rust stdlib dir to PATH on Windows.Jussi Pakkanen1-0/+3
2020-04-10compilers/d: Add missing method for dmd and ldcDylan Baker1-0/+3
This allows coverage to be generated, although we can't yet do anything useful with it.
2020-04-10compilers/d: Implement coverage for GDCDylan Baker1-4/+1
Since GDC a GNU compiler, we just need to pass the normal GNU options and coverage is generated. Related: ##5669
2020-04-10compilers: Move things out of clikeDylan Baker3-6/+6
One method belongs in the base Compiler class, the other belongs in the GnuLikeCompiler class.
2020-04-10compilers: disable b_sanitize on hurdPino Toscano1-1/+3
ASAN is not supported on the Hurd yet.
2020-04-10symbolextractor: add support for hurdPino Toscano1-1/+1
Use the GNU toolchain for that.
2020-04-10symbolextractor: rename linux_syms to gnu_symsPino Toscano1-2/+2
It is not specific to Linux but works with the GNU toolchain, so give it a better name. No functional changes.
2020-04-10Recognize Hurd as platform/OSPino Toscano2-0/+10
2020-04-10cmake: support cmake config file syntax (#6917)dabrain342-14/+96
* cmake: enhance support of cmake config file syntax Enhance the cmakedefine support by accepting 2 or 3 tokens in the conf line as mesondefine supports strictly 2 tokens * fixup! cmake: enhance support of cmake config file syntax * fixup! fixup! cmake: enhance support of cmake config file syntax