aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
AgeCommit message (Collapse)AuthorFilesLines
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-12Add unity block size option.Jussi Pakkanen2-15/+31
2020-02-12Refactor UserIntegerOption to work with BuiltinOption.Jussi Pakkanen2-8/+8
2020-02-12cmake: Add support for the new JSON trace formatDaniel Mensinger1-15/+38
2020-02-12Improve error reported when language has no compilerJon Turney3-3/+24
This gives consistent reporting of this error for all platforms. Also, reporting this error when constructing the BuildTarget, rather than discovering the problem during backend generation means that the error is reported against with a location.
2020-02-12Refine behaviour of add_languages() when native: is missingJon Turney1-2/+2
This improves the common case of a simple meson.build which doesn't contain any 'native: true' targets to not require a native compiler when cross-compiling, without needing any changes in the meson.build. v2: Do it the right way around!
2020-02-12meson: unbreak --profile-selfMarcel Hollerbach1-1/+1
This broke in 668610c0d2b0f3a66d96022eb57afe5b09c3a2b7.
2020-02-11configure_file: Also copy timestamps to avoid useless rebuildsNirbheek Chauhan1-1/+1
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-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-09Add add_languages(native:)Jon Turney1-6/+15
v2: Retain not using logical-and, to avoid short-circuiting side-effects of add_languages()
2020-02-07Merge pull request #6421 from dcbaker/zlib-system-depJussi Pakkanen2-1/+55
Add a "system" dependency for zlib
2020-02-06Make 'default_library' per-subproject builtin optionXavier Claessens3-25/+61
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-06add FeatureNewMichael Hirsch, Ph.D1-0/+5
2020-02-06add fs.stem()Michael Hirsch, Ph.D1-2/+11
2020-02-06fs: add expanduser methodMichael Hirsch, Ph.D1-1/+8
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.D1-7/+43
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-05Merge pull request #6161 from scivision/native_propertyJussi Pakkanen3-4/+37
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.D1-2/+2
2020-02-05add get_external_property to replace get_cross_propertyMichael Hirsch, Ph.D1-14/+29
2020-02-05add meson.get_native_property for native filesMichael Hirsch, Ph.D3-1/+19
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 Pakkanen6-56/+719
Add new Meson sample templates
2020-02-05Merge pull request #6582 from mensinda/cmQuotesJussi Pakkanen1-5/+13
cmake: Fix spaces in compile flags (fixes #6566)
2020-02-05dependencies/ui: Honor static argument with wxwidgetsDylan Baker1-2/+14
Fixes #6564
2020-02-05dependencies/ui: Add type annotations to WxDependencyDylan Baker1-2/+6
2020-02-05dependencies/ui: wxwidgets requires C++Dylan Baker1-1/+1
so set the language field appropriately
2020-02-05pkgconfig: Generate -uninstalled.pc filesXavier Claessens1-17/+61
Closes: #3472.
2020-02-05pkgconfig: Fix code that make relative pathXavier Claessens1-2/+6
When subdir is '/foo/bar' and prefix '/foo' it was returning '/bar', which is an absolute path. It was then constructing '-L${prefix}//bar' with bogus double slash. When subdir is '/fooo/bar' and prefix '/foo' it was returning 'o/bar'.
2020-02-04Fix prefix dependent option defaults (#6552)Jon Turney1-3/+3
* Extend test_prefix_dependent_defaults unit test to cover default case Extend test_prefix_dependent_defaults unit test to cover the default case, when the default prefix is '/usr/local'. (On Windows, the default prefix is 'c:/') * Restore adjusting option defaults depending on the default prefix Restore adjusting option defaults, depending on the default prefix. Droppped in d778a371
2020-02-04interpreter: Iterate custom target outputsXavier Claessens2-5/+26
2020-02-04environment: Handle cases of no cs compiler being installed correctlyDylan Baker1-0/+2
2020-02-04cmake: Fix spaces in compile flags (fixes #6566)Daniel Mensinger1-5/+13
2020-02-04cmake: Sanitize CMake names (fixes #6554)Daniel Mensinger1-12/+10
2020-02-03environment: Be stricter about detecting iclDylan Baker1-1/+1
Only detect a compiler as icl if the name is "icl" or "icl.exe"
2020-02-02update the init commandMichael1-56/+80
2020-02-02add new templatesMichael5-0/+639
2020-02-01summary: Fix empty list caseXavier Claessens1-0/+2
Fixes: #6557.
2020-01-31dependencies: Add a zlib system dependency for windowsDylan Baker1-2/+20
2020-01-31dependencies: Add system zlib method for freebsd and dragonflybsdDylan Baker1-3/+8
I've tested this on FreeBSD, and dragonfly's userland is close enough I'm willing to call it good without testing. OpenBSD and NetBSD also have a zlib in their base configurations, but I'm not confident enough to enable those without testing.
2020-01-31dependencies: Add a zlib system dependency for macOSDylan Baker2-1/+32
This comes pre-installed, but currently we don't have a way to detect it without relying on pkg-config or cmake. This is only valid with the apple clang-based compilers, as they do some special magic to get headers.
2020-01-31dependencies: netcdf always look for netcdf-fortran for fortranDylan Baker1-4/+4
Otherwise it tries to link with the C bindings and fails. This is why the test is broken on archlinux
2020-01-31typing: Fix Any --> T.AnyDaniel Mensinger1-1/+1
2020-01-30Small cleanups for the LLVM dependency class (#6548)Dylan Baker1-1/+6