aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-08-15Refresh Ninja cache files on regeneration.ninjarestatJussi Pakkanen1-0/+3
2021-08-15Disable Rust + clangcl.Jussi Pakkanen1-0/+3
2021-08-15Disable vs2017 + 32bit Rust combo as it is broken.Jussi Pakkanen1-2/+11
2021-08-14Force unity builds off in Flex test.Jussi Pakkanen1-1/+3
2021-08-13Document that custom_target() install_dir can be a listXavier Claessens1-1/+20
2021-08-12Allow gettext test to skip on macOS.Jussi Pakkanen1-0/+3
2021-08-12fix the previous commit which deleted a doc file but not the index entryEli Schwartz1-1/+0
The CI still passed, or should I say, didn't run, and I failed to notice this in manual review. Sorry!
2021-08-12Update wrap documentation to describe new submission processEli Schwartz2-243/+57
2021-08-12Fix building framework test.Jussi Pakkanen1-0/+2
2021-08-12Disable asan memory leak checks on a Cuda test.Jussi Pakkanen1-2/+5
2021-08-12Pass a test file to flex test.Jussi Pakkanen3-2/+5
2021-08-11Always generate Java rule, it is platform agnostic.Jussi Pakkanen1-2/+1
2021-08-11compilers/c++: Add MSVC option to make the __cplusplus define accurateDylan Baker6-2/+40
Otherwise it always returns the value for c++98, starting with MSVC 2017 15.7 or later. Earlier versions are not affected by this mis-feature
2021-08-11Make the flex test case workAdrien Plazas2-11/+3
This adds the noyywrap option so flex doesn't wait for more input once we reached EOF. This also adds the nounput and noinput options to fix compilation warnings. We can now run the test as expected.
2021-08-09build: store global and project args per-machine even when not cross compilingDylan Baker1-8/+4
The problem is what happens in this case: ```meson add_project_arguments('-DHOST', language : 'c', native : false) add_project_arguments('-DBUILD', langauge : 'c', native : true) ``` The original meson behavior was that in an host == build configuration only the `native : false` would be applied. This doesn't really make sense as in that case the build machine is the host machine, so it is both the native and non-native machine at once. We changed this so that the both would be applied in a host == build configuration, but this is a behavioral change, and needs to be reverted. Fixes: #9037
2021-08-09build: add a few annotationsDylan Baker1-4/+4
I was debugging this code, these were trivial, so I added them.
2021-08-09Fix i18n target name when using @BASENAME@ and configure_file() inputXavier Claessens5-13/+55
Fixes: #9022
2021-08-09i18n: use real build/install targets for gmo filesEli Schwartz2-51/+23
Don't just create a .PHONY target which runs a script that magically generates files ninja doesn't know about. It results in untracked files, and `meson install` has to run additional commands instead of copying over files, and then cannot track them to uninstall them later. I'm not even really sure why it was originally done via a proxy script, most likely bad legacy design. This is after all one of the oldest modules... One side effect of this is that meson doesn't know how to rename build.CustomTarget files on install (only data files are supported?), and every file needs to be installed as "domainname.mo" so it must be named that in-tree too. To prevent clashes, every locale gets its own locale-specific subdirectory. Once we are doing that anyway, we can output them to the actual structure required by the gettext family of functions, and bindtextdomain() can therefore point to this location if desired. This might be useful for running localized programs from the build tree.
2021-08-09interpreter: Fix spurious warning in configure_data()Xavier Claessens1-2/+2
This is a regression when porting to typed_pos_args().
2021-08-09gnome: Filter all compiler and linker flagsEmmanuele Bassi1-7/+13
When sending them to the introspection scanner, we must always filter all compiler and linker flags, because g-ir-scanner does not accept any random argument but only a specific subset. Fixes: #8876
2021-08-09Fix native targets for vs backend cross compilationGustavoLCR1-10/+40
2021-08-09interpreter: Fix missing subsubproject summary when subproject failsXavier Claessens4-4/+14
In the case main->subp->subsubp, if subsubp succeed to configure but subp subsequentially fails, subsubp is still being built but its summary was missing.
2021-08-09interpreter: Fix holder_map not being updated when subproject failsXavier Claessens3-12/+17
Fixes: #9038
2021-08-09modules: Fix typo in state.test()Xavier Claessens1-1/+1
Fixes: #9081
2021-08-09pkg-config: support for `-l:libfoo.a`lilinzhe7-0/+134
fixs: #9000 Meson not correctly process with -l:xxx.a link arguments in pkgconfig .pc file. see also:https://stackoverflow.com/questions/48532868/gcc-library-option-with-a-colon-llibevent-a with unit test, unit test will be partially skiped if pkg-config version < 0.28 . see: https://gitlab.freedesktop.org/pkg-config/pkg-config/-/blob/master/NEWS
2021-08-09interpreter: Fix list contains for Holders (fixes #9020 #9047)Daniel Mensinger5-2/+26
2021-08-08Add support for finding Javascript source libraries with Emscripten.Jussi Pakkanen7-6/+78
2021-08-08Update iphone cross building.Jussi Pakkanen2-16/+27
2021-08-07Fix --force-fallack-for with --wrap-mode=nofallbackXavier Claessens2-4/+10
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-04run_mypy: Add interpreter/type_checking to the list of checked modulesDylan Baker1-0/+1
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 Wohlschlager4-5/+32
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 Meagher17-10/+28
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 Claessens5-5/+31
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 Baker2-1/+11
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.