aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
AgeCommit message (Collapse)AuthorFilesLines
2021-08-07Fix --force-fallack-for with --wrap-mode=nofallbackXavier Claessens1-4/+4
Fixes: #9065
2021-08-06modules: Add API to add testXavier Claessens2-5/+14
This fix kwargs not going through typed_kwargs() decorator that sets defaults. Fixes: #9009
2021-08-06minstall: restore_selinux_contexts: fix env testStéphane Cerveau1-6/+3
To avoid extra env test, test destdir presence upper in restore_selinux_contexts
2021-08-06install: apply ldconfig at the end of the installStéphane Cerveau1-1/+19
On linux system ldconfig needs to be called to update the ld.so.cache to be able to load libraries from /usr/local/lib/x86_64-linux-gnu on debian based distributions for example.
2021-08-06install: update restore_selinux to use popen_safeStéphane Cerveau1-7/+8
Use Popen_safe to simplify the code.
2021-08-06fix spelling error in user output ("depencency" -> "dependency")Felix Schwarz1-2/+2
2021-08-04interpreterbase/decorators: fix typed_kwargs return typeDylan Baker1-2/+4
Because of the convertor function we have no guarantee that what we're getting is in fact a `Dict[str, TYPE_var]`, it might well be anything in the values, so we need to do some casting and set the return type to object. This works out fine in practice as our declared `TypeDict` inputs in the actual function signatures will be used instead.
2021-08-04interpreterbase/decorators: use a named function for lowering stringsDylan Baker1-1/+9
Mypy gets confused by the lambda, so we might as well just use a named function.
2021-08-04interpreter/typing: Add some type annotationsDylan Baker1-2/+2
We really need PEP464 to annotate many fo thse correctly, but until then we can manually annotate many of them to fix typing issues.
2021-08-04interpreter: split keyword definitions out of the interpreterDylan Baker2-104/+121
2021-08-04Escape path in exclude filter passed to gcovrAlois Wohlschlager1-5/+5
Gcovr interprets exclude filters, as passed to the -e option, as regexes. Since we want to exclude a raw path, the argument must be escaped.
2021-08-04add boolean parameter use_system for searching boostKevin Meagher1-23/+21
This boolean parameter is added to check_and_set_roots() and detect_lib_dirs() when true it will first search the compiler library directories before checking the standard lib directories. This is set to false when using BOOST_ROOT and set to true when useing other system directories like /usr/local Also simplify using a set to remove duplicate lib files Also remove the part where you search the Cellar in homebrew, this is unnescessary now that symlinks can be followed it should find boost when searching /usr/local so no need to search the Cellar
2021-08-04Make libs a set from the beginingKevin Meagher1-3/+3
2021-08-04Relax restrictions on detecting boost dependencyKevin Meagher1-10/+10
This does two things: * allows the library files to be symlinks * searches `lib` and `lib64` in `BOOST_ROOT` even if it finds lib directories from the compiler The first condition is needed for the homebrew on macOS because boost and boost python are provided in seperate packages and are put together in /usr/local/lib with symlinks to the library files. The both conditions are needed for high performace computing environments where dependencies are often provided in nonstandard directories with symlinks A test case was added which looks for boost libraries in seperate directories which have been symlinked to BOOST_ROOT/lib
2021-08-04destdir: Allow relative to build directoryXavier Claessens1-5/+10
Meson already works like that, except in do_copydir() that requires absolute destdir. Better explicitly support that instead of leaving it undefined and unconsistent.
2021-08-03ninjabackend: use get_subdir() instead of subdir attribute for cythonDylan Baker1-1/+1
As this works correctly for CustomTarget, CustomTargetIndex, and GeneratedList, but .subdir doesn't work for CustomTargetIndex.
2021-08-03build: Add annotation to CustomTargetIndex.get_subdirDylan Baker1-1/+1
2021-08-03build: Add get_subdir() to GeneratedListDylan Baker1-0/+4
It needs this to match the behavior of CustomTarget and CustomTargetIndex, the later of which doesn't have a subdir attribute, just `get_subdir()`
2021-08-03Fix python module leaving PKG_CONFIG_LIBDIR set in os.environ.Xavier Claessens1-4/+7
2021-08-03modules/dlang: Fix dependencies that should have been updatedDylan Baker1-15/+9
2021-08-03Fix when gtest dep is found but does not pass version checkXavier Claessens1-0/+1
GTestDependencySystem (and other similar dep classes) sets self.is_found=True, but the version check could still fail. In the case the dependency is not required `ExternalDependency._check_version()` won't raise an exception and thus the dependency is accepted. _check_version() sets self.is_found() in the case self.version is not empty, we should do it too when self.version is empty. Fixes: #9036.
2021-08-03fix bat_info UTF-8 string errorxth1-0/+1
" bat_info = json.loads(bat_json) " may produce error UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc3 ... Because the vswhere.exe's output is not utf-8 by default Use UTF-8 encoding for vswhere.exe can fixing it .
2021-07-28intl dep: support static kwargEli Schwartz1-1/+4
Since intl links internally to iconv, try to pull in iconv too, but only if we specifically ask for static libs. If PREFER_SHARED, we have no way to tell which type we got, so do not try handling that...
2021-07-28intl: fix incorrect detection of headerEli Schwartz1-1/+1
Although find_library returns the library as a list of args, has_header returns a tuple(is_found, is_cached) which is non-empty and thus always true. Which is confusing... Check whether it actually got found.
2021-07-28dependencies: make the preferred LibType available to any ExternalDependencyEli Schwartz2-4/+4
Just like we automatically provide some reusable glue for self.static, provide it here too. It seems plausibly like something people would commonly want.
2021-07-27build: learn to take CustomTargetIndex as custom_target commandMarc-André Lureau1-0/+4
Fix ERROR: Argument <CustomTargetIndex:...>[0]> in "command" is invalid. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2021-07-27msubprojects: make purge print full paths to comply with the testsAndrei Alexeyev1-0/+2
2021-07-27msubprojects: do not follow symlinks when purgingAndrei Alexeyev1-1/+2
Fixes #8891
2021-07-26coredata: throw a MesonException on unknown optionsFlorian Schmaus1-8/+7
Fixes #7288.
2021-07-25ast: Add dummy "support" for fstrings in the ast packageDaniel Mensinger3-0/+14
2021-07-25C2000 compiler also accepts *.cla filesmiebka1-2/+4
2021-07-23Add support for gcovr --sonarqube reportWeston Schmidt2-0/+21
Sonarcloud.io only can read the sonarqube based report that gcovr can produce. This change enables support for this output in meson and ninja. Signed-off-by: Weston Schmidt <Weston_Schmidt@alumni.purdue.edu>
2021-07-23qt: Allow CustomTargets for qt.preprocess source argumentsDylan Baker1-11/+11
This works for `moc_*` and `ui_files`, but it never could have worked for `qresources` due to the implementation assuming a `str` or `File`. To restore previous compatibility I've added `CustomTarget` where it would have worked, but not where it would have failed, the former would raised an exception along the lines anyway. Fixes #9007
2021-07-22Merge pull request #8992 from dcbaker/submit/modernize-python-module-dependencyJussi Pakkanen13-351/+269
Cleanup the python module
2021-07-21Merge pull request #8994 from SoapGentoo/cuda-fixesJussi Pakkanen2-14/+34
Cuda fixes
2021-07-21Merge pull request #9011 from xclaesse/meson-version-compareJussi Pakkanen4-4/+4
Regression: Fix version check for MesonMain methods
2021-07-21msubprojects: catch exceptions and continue with othersXavier Claessens1-1/+5
If the command fails for one subproject we should still continue with others. Failed subprojects are reported at the end. This issue became more problematic when doing parallel tasks because the reason the command fails was completely hidden by other parallel tasks.
2021-07-21Fix meson.version().version_compare() regression in subprojectXavier Claessens4-4/+4
2021-07-18Cuda: Fix linking with shared versioned internal libsDavid Seifert1-2/+6
2021-07-18Cuda: Enable PGODavid Seifert1-0/+6
2021-07-18Cuda: Filter -isystem with system pathsDavid Seifert1-12/+19
2021-07-18Cuda: Pass -DNDEBUG throughDavid Seifert1-0/+3
2021-07-18Merge pull request #8953 from dcbaker/submit/interpreter-easy-typingJussi Pakkanen2-104/+74
Do some of the easy type checking of in the interpreter
2021-07-18gnome: Always pass absolute -L paths to g-ir-scannerNirbheek Chauhan1-2/+6
g-ir-scanner does not convert relative -L paths to runtime paths which are added to -Wl,-rpath and LD_LIBRARY_PATH / DYLD_LIBRARY_PATH / PATH. This means that the local library will either not be found at runtime (while building introspection data), or the system-wide library will be picked instead. See: giscanner/ccompiler.py:get_internal_link_flags() in gobject-introspection for more details.
2021-07-18Bump version number for new development.Jussi Pakkanen1-1/+1
2021-07-18Merge pull request #8972 from bonzini/C-symlinkJussi Pakkanen6-15/+27
resolve symlinks passed to -C
2021-07-18Merge pull request #8996 from bonzini/fix8746Jussi Pakkanen6-41/+23
Do not add SONAME to shared modules
2021-07-18Set up the 0.59.0 release.0.59.0Jussi Pakkanen1-1/+1
2021-07-17Update linkers.pyIan Harvey1-0/+6
Add /subsystem:xxx to xilink command line, either as specified in the build settings or as "console" by default.
2021-07-14linkers: remove is_shared_module argument to get_soname_argsPaolo Bonzini6-36/+19
The argument is now unused, drop it.