aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2019-11-17add fs.with_suffixMichael Hirsch, Ph.D3-1/+39
2019-11-17fs: improve exception feedbackMichael Hirsch, Ph.D1-1/+1
2019-11-17fs: use expanduserMichael Hirsch, Ph.D2-1/+4
2019-11-17fs: deduplicate functionsMichael Hirsch, Ph.D1-8/+5
2019-11-17fs: use pathlib.Path, add type hint checkMichael Hirsch, Ph.D2-15/+18
2019-11-17Issue #6174: run_command() with compiler object behind ccache fails.Jehan1-2/+4
When run_command() first parameter is a compiler object, keep additional exelist values as arguments.
2019-11-16environment: Only check compiler basename for compiler nameJan Tojnar1-4/+6
Nix uses absolute paths to compilers in Nix store with Meson. Those store paths contain a hash, which can contain short strings like icl, resulting in incorrectly matching the compiler. https://github.com/NixOS/nixpkgs/issues/73417#issuecomment-554077964
2019-11-16docs: fix non-existent "meson rewriter" command in examples [skip ci]Marc Herbert1-3/+3
Probably dating back to the former mesonrewriter command? Fixes commit d4fe805a51d5 In some corner cases, "rewriter" could be mistaken as a positional argument.
2019-11-14mintro: dependencies: added version keyDaniel Mensinger4-2/+8
2019-11-14Highlight '(cached)' and add color to the dependency versionDaniel Mensinger2-20/+19
2019-11-14dependencies: Print version of cached dependenciesDaniel Mensinger1-4/+7
2019-11-14mlog: add non bold version of colorsDaniel Mensinger1-0/+15
2019-11-13coredata: CmdLineFileParser no longer interpolates strings.Paulo Neves3-1/+7
Previously if a user tried to pass a command line build option that contained a '%' character the command line parser assumed that there was string interpolation to be done. As there is no sense in such a scenario no code provides any input for the interpolation. This then leads to a failure. In this commit we specifically override the defaults in ConfigParser and set interpolation to None, which disables command line build option interpolation. Fixes #6157
2019-11-13Revert "Add `-Wl,-rpath-link` for secondary dependencies"Jussi Pakkanen10-132/+5
This reverts commit 7b9c348102792030859ed0001a51416506a0a092. Closes #6027.
2019-11-12doc: readme note that can get ninja via pip install ninja [skip ci]Michael Hirsch, Ph.D1-0/+6
A new Meson user may not realize how easy it is to get Ninja via pip install ninja
2019-11-12cmake: Log warnings in CMakeLists.txtDaniel Mensinger1-4/+39
Previously, warnings genereated in CMake were not logged because CMake sends them to stderr alongside the trace information. With this PR, only real trace lines are send to the trace parser and all other lines in stderr are logged as warnings.
2019-11-12Prevent install_name_tool to run on EXE when cross compile on OSXBinh Nguyen1-2/+2
2019-11-12Raise an exception if we cannot detect the MSVC compiler target architectureLuca Bacci1-2/+4
2019-11-12Fixed issue that the key's value type wasn't checked correctly.fchin4-4/+23
Added two new failing tests.
2019-11-12Adding dictionary entry using string variable as key.franczc4-11/+51
2019-11-11Add missing openbsd to the operating system names table [skip ci]yshui1-0/+1
2019-11-11hotdoc: work around argparse syntax ambiguityMathieu Duponchelle1-3/+19
Fixes #5800
2019-11-10Document lack of clang support [skip ci]mayl1-0/+3
Meson doesn't currently provide a very helpful message when trying to generate a coverage report with clang, and in fact just silently fails for 2 of the 3 reports. Ideally Meson would support coverage with llvm-cov, or provide a more helpful error message. Until then, it seems it would be helpful to at least put a warning in the documentation
2019-11-10Store run target names in build.Jussi Pakkanen4-0/+17
This way we can easily check that we only provide builtin targets such as clang-format if the user has not provided their own.
2019-11-08docs: major revamp of the Wrap format description [skip ci]Eli Schwartz1-91/+65
The current state of this manual can best be described as... confusing. The flow of the page jumps from one topic to the next without ever actually telling you what you can do, so it's almost impossible to keep track of what is supported, while instead going into involved derails about why you'd want to use a wrap, and scattering some (but not all) information throughout the promo material. The most important changes this rewrite does (aside from turning supported keys into a list of bullet points) is adding documentation for the lead_directory_missing property, and mentioning that wrap-hg and wrap-svn exist. I had to find out all of this by reading the source code implementation, so let's try to save other people the effort. Other miscellania: as per @jpakkane's comment, take the opportunity to point out that wrap dependencies are also useful on Linux, in cases where your distro doesn't have a new enough version of "$dependency". It's a fairly common problem outside of select rolling-release distros, so well worth mentioning.
2019-11-08Make the hint about built-in options more usefulZbigniew Jędrzejewski-Szmek1-6/+12
In a large project, it can be hard to guess what meson "had in mind", when many different warnings are added in different places. Let's make the message precise and specify the location. WARNING: Consider using the built-in warning_level option instead of adding warning flags by hand. ↓ meson.build:414: WARNING: Consider using the built-in warning_level option instead of using "-Wextra".
2019-11-08"built-in" is the standard spelllingZbigniew Jędrzejewski-Szmek1-5/+5
2019-11-08pass sanitize option to linker on macOSmfurukawa1-0/+5
2019-11-08Created the filesystem module.Jussi Pakkanen14-1/+156
2019-11-07docs: Mention error LNK1181, linking for MSVC [skip ci]Vedran Miletić1-1/+1
Make FAQ entry about linking failing on Windows with MSVC more easily discoverable by including keywords LNK1181 and linking.
2019-11-07mesonbuild/mtest: plumb and report a test's start timeCamilo Celis Guzman1-11/+17
2019-11-07pkgconfig: only check import_filename for shared librariesRyan Lucia1-1/+1
2019-11-07CI: add initial type annotation checkingMichael Hirsch, Ph.D7-31/+35
2019-11-07wrap.py: catch connection error with WrapExceptionMichael Hirsch, Ph.D3-8/+14
fixes #6130 wrap: more error verbosity
2019-11-07wrap.py: apply type annotation, modernize syntaxMichael Hirsch, Ph.D3-59/+61
correct syntax issues, missing imports revealed by type annotation checking
2019-11-07syntax-highlighting: vim: fix setting cpo [skip ci]Liam Beguin1-1/+1
since 'cpo' is global, use `set` instead of `setlocal`. Reported-By: Bram Moolenaar <Bram@vim.org> Signed-off-by: Liam Beguin <liambeguin@gmail.com>
2019-11-07dependencies/pkgconfig: Log pkg-config exceptionsMarvin Scholz1-0/+1
This means that when either cflags or libs lookup fails, this will be logged always in the log, leading to much easier to debug messages like: Called `/usr/local/bin/pkg-config --cflags gnutls` -> 1 pkg-config error with 'gnutls': Could not generate cargs for gnutls: Package nettle was not found in the pkg-config search path. Perhaps you should add the directory containing `nettle.pc' to the PKG_CONFIG_PATH environment variable Package 'nettle', required by 'gnutls', not found Run-time dependency gnutls found: NO (tried pkgconfig)
2019-11-07dependencies/pkgconfig: Fix error reportingMarvin Scholz2-23/+24
The stderr of pkg-config was never used, leading to no details about failures at all in exception messages.
2019-11-07dependencies/pkgconfig: Fix found state ignoring errorsMarvin Scholz1-2/+2
Previously even when meson failed to obtain cflags or libs for a dependency it would lead to the dependency being found, causing very confusing errors at build time.
2019-11-06Add -L= to soname linker argument, too.Jussi Pakkanen1-1/+4
2019-11-06docs: Add backend vs2019 to table in Builtin-options.md [skip ci]Wolfgang Stöggl1-1/+1
2019-11-06Fix typos found by codespellWolfgang Stöggl55-110/+110
- Typos were found by codespell v1.16.0
2019-11-05dependency('cuda')Aleksey Gurtovoy24-2/+527
2019-11-05docs: Document that meson 0.52.0 allows layering cross files [skip ci]Dylan Baker2-3/+9
2019-11-05Change default pkgconfig directory on FreeBSDsghctoma1-1/+4
FreeBSD uses ${PREFIX}/libdata/pkgconfig as default pkgconf search path for non-base libraries. This commit makes that directory the default install_dir in the pkgconfig module on FreeBSD.
2019-11-02Fix split of CMAKE_PREFIX_PATH under WindowsWolfgang Stöggl1-2/+2
Under Windows, the colon ':' is used after the drive letter. So, the colon should not be used as a list separator or for splitting, otherwise it could lead to paths in CMAKE_PREFIX_PATH with a semicolon ';' between the drive letter and the rest of the path, e.g: -DCMAKE_PREFIX_PATH=C;/foo/bar instead of -DCMAKE_PREFIX_PATH=C:/foo/bar Use os.pathsep instead of ':' to split the environmental variable CMAKE_PREFIX_PATH
2019-11-02Merge pull request #6123 from scivision/bugfix-fortranJussi Pakkanen2-8/+7
bugfix: fortran compiler assertionerror from 0c22798
2019-11-02Minit templates modularizationMichael Hirsch, Ph.D11-335/+968
2019-11-02Add option for controlling RTTI.Jussi Pakkanen4-0/+30
2019-11-02Pass explicit command line argument to disable exceptions with MSVC.Jussi Pakkanen1-1/+3