aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-02-17mdist: Use windows_proof_rmtree when deletingNirbheek Chauhan1-4/+4
2020-02-17mdist: Don't delete builddir on dist failureNirbheek Chauhan1-26/+31
Closes https://github.com/mesonbuild/meson/issues/1976
2020-02-17modules/python: Do not error out if positional args are passedNirbheek Chauhan2-3/+8
Also update the documentation. Fixes https://github.com/mesonbuild/meson/issues/6470
2020-02-17Merge pull request #6621 from jon-turney/project_tests_cleanupJussi Pakkanen3-49/+90
Various cleanups and documentation improvements for run_project_tests.py
2020-02-17version parsing: match only when version starts with a numberGerion Entrup2-2/+2
This leads to better version parsing. An concrete example use case is llc. When invoking llc with "--version", the output is ``` LLVM (http://llvm.org/): LLVM version 9.0.1 ... ``` The old version parsing recognizes the dot in the first line as version. This commit also tries to adapt the two regexes to each other. Reported-by: Björn Fiedler <fiedler@sra.uni-hannover.de>
2020-02-17base.py: remove trailing whitespaceGerion Entrup1-2/+2
2020-02-16Popen_safe: Always re-setup the console colorsNirbheek Chauhan1-4/+9
2020-02-16Split console colourization into a separate functionNirbheek Chauhan2-9/+10
Use it instead of making a direct call to mlog._windows_ansi().
2020-02-16mesonlib: Set stdin to DEVNULL for all programs run by usNirbheek Chauhan1-0/+4
Otherwise there's a high likelihood that some program run by us will mess up the console settings and break ANSI colors. F.ex., running `uname` in the Visual Studio 2019 x86 developer prompt using `run_command()` does this.
2020-02-15msvc: add prefix to build type argumentsDmitry Kozlyuk1-0/+3
2020-02-15cmake: Fix crash when no C++ compiler is not installed (fixes #6559)Daniel Mensinger1-46/+50
2020-02-14docs: Update documentation about linker selectionNirbheek Chauhan2-5/+23
We missed this in https://github.com/mesonbuild/meson/pull/6457
2020-02-13Remove unused no-installed-files test featureJon Turney2-5/+1
Looking at 45c8557d, the idea behind this seems to be that a test could conditionally indicate that the list of installed files should not be validated by creating that file. It's no longer used anywhere. Also remove a lingering no-install-files file which isn't used since commit c693bd9b.
2020-02-13Document some more details of how project tests workJon Turney1-8/+29
2020-02-13Refactor TestResult object initializationJon Turney1-36/+60
Just add or alter attributes of the TestResult object, rather than many, many invocations of the constructor with very similar arguments. Define helper methods for TestResult to add the results of a step and set the failure reason.
2020-02-12Add unity block size option.Jussi Pakkanen5-17/+46
2020-02-12Refactor UserIntegerOption to work with BuiltinOption.Jussi Pakkanen2-8/+8
2020-02-12cmake: Add support for the new JSON trace formatDaniel Mensinger2-15/+43
2020-02-12unit tests: Ensure that --profile-self keeps workingNirbheek Chauhan1-2/+3
2020-02-12meson: unbreak --profile-selfMarcel Hollerbach1-1/+1
This broke in 668610c0d2b0f3a66d96022eb57afe5b09c3a2b7.
2020-02-11tests: Make the cups test more robustDaniel Mensinger1-5/+5
2020-02-11ci: Add Fedora and OpenSUSE imagesDaniel Mensinger6-0/+106
2020-02-11configure_file: Also copy timestamps to avoid useless rebuildsNirbheek Chauhan2-4/+10
If we always copy files over without timestamps, we're forcing a (probably unnecessary) rebuild. Also include a test for this.
2020-02-11minstall: Make --only-changed less verboseNirbheek Chauhan1-1/+5
When `--only-changed` is passed, we only want to know about files that were newly-installed. Everything else is noise. The full list can always be found in `install-log.txt` anyway. Sample output: ``` ninja: Entering directory `.' ninja: no work to do. Preserved 667 unchanged files, see meson-logs\install-log.txt for the full list ```
2020-02-10test cases/python3/3 cython: fix dependency filesGerion Entrup1-0/+1
The Cython generation depends on cstorer.pxd as well, so add that as dependency.
2020-02-10Exclude .hg* from dist tarballsRichard Laager1-1/+10
Debian's lintian checker complaints when upstream tarballs contain an .hgtags file. This excludes ".hg[a-z]*". This is mostly consistent with the git handling in del_gitfiles() which deletes .git*. hg archive --help shows an example of -X ".hg*". However, instead of ".hg*", I have used ".hg[a-z]*" to keep the automatically added hg_archival.txt. This file may be useful to link the tarball to the Mercurial revision for either manual inspection or in case any code interprets it for a --version or similar. This also excludes .hgignore and other things like .hgflow, which seems desirable. Fixes #6575
2020-02-09Remove vs2015 jobs as Azure will stop supporting it.Jussi Pakkanen2-40/+5
2020-02-07Merge pull request #6421 from dcbaker/zlib-system-depJussi Pakkanen5-1/+97
Add a "system" dependency for zlib
2020-02-07run_project_tests: Fix it to actually workDylan Baker1-5/+10
This move the sorting logic into the TestDef class itself, which simplifies sorting them. Additionally it remove overcomplicated sort logic, because python strings are compared character by character, we don't need to do the split and cast to int, we know that realistically a maximum of 4 characters (the first 4 numbers) are going to be compared in most cases.
2020-02-06Make 'default_library' per-subproject builtin optionXavier Claessens11-26/+117
Currently it's just like if all builtin/base/compiler options are yielding. This patch makes possible to have non-yielding builtin options. The value in is overriden in this order: - Value from parent project - Value from subproject's default_options if set - Value from subproject() default_options if set - Value from command line if set
2020-02-06backends: Remove unused methodXavier Claessens1-4/+0
2020-02-06topbar HTML module listMichael Hirsch, Ph.D1-21/+27
2020-02-06html fs-module linkMichael Hirsch, Ph.D1-1/+2
2020-02-06add FeatureNewMichael Hirsch, Ph.D2-1/+14
2020-02-06add fs.stem()Michael Hirsch, Ph.D3-2/+33
2020-02-06doc: filesystem moduleMichael Hirsch, Ph.D1-4/+8
2020-02-06fs: add expanduser methodMichael Hirsch, Ph.D3-5/+28
this should help users specify leading `~` in various Meson options and variables without refactoring lots of places inside Meson itself.
2020-02-06fs: add methods as_posix, is_absoluteMichael Hirsch, Ph.D3-12/+101
fs: make exception specify method name fs: actually raise exceptions fs: resolve path e.g. /opt/foo/.. => /opt/foo fs: correct behavior of is_symlink
2020-02-06docs: explain the purpose of order-only deps for generated files [skip ci]Marc Herbert1-5/+6
The documentation of "order-only" dependencies is limited and their various purposes are especially not clear. See issue #6391 for a recent example, search the internet for many more. So mention the particular purpose here while making the documentation barely longer.
2020-02-05Merge pull request #6161 from scivision/native_propertyJussi Pakkanen10-15/+111
add meson.get_external_property()
2020-02-05depdenencies/qt: Second attempt to allow qt --no-framework on MacOS.nikolayp1-4/+12
Sometimes qt can be installed not as framework on MacOS. One way to achieve this behaviour is to use conan package manager. Allow falling back to simple library search if framework was not found. In addition, allow to find the debug version of qt debug libraries which have "_debug" suffix added to them. Fixes #5091
2020-02-05Merge pull request #6589 from dcbaker/wx-widgets-staticJussi Pakkanen1-5/+21
Wx widgets static
2020-02-05Fix import dependency from dubMax1-0/+8
2020-02-05docMichael Hirsch, Ph.D3-5/+5
2020-02-05ci: properly handle cross/native casesMichael Hirsch, Ph.D2-2/+6
2020-02-05add get_external_property to replace get_cross_propertyMichael Hirsch, Ph.D9-39/+81
2020-02-05add native-file properties testsMichael Hirsch, Ph.D5-7/+23
2020-02-05add meson.get_native_property for native filesMichael Hirsch, Ph.D4-1/+35
This allows Meson native-file [properties] to be used. This avoids the need to call meson from a script file or have a long command line invocation of `meson setup` The method meson.get_native_property('prop', 'fallback') is added. The native file can contain properties like ``` [properties] myprop1 = 'foo' mydir2 = 'lib/custom' ``` Then from within `meson.build` ```meson x1 = meson.get_native_property('myprop1') thedir = meson.get_native_property('mydir2', 'libs') ``` fallback values are optional
2020-02-05Merge pull request #6573 from michaelbadcrumble/add_sample_templatesJussi Pakkanen8-59/+746
Add new Meson sample templates
2020-02-05Merge pull request #6582 from mensinda/cmQuotesJussi Pakkanen7-32/+133
cmake: Fix spaces in compile flags (fixes #6566)