aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
AgeCommit message (Collapse)AuthorFilesLines
2020-06-22arglist: Fix remaining mypy errors and warningsDylan Baker1-5/+4
So we can lint it with mypy
2020-06-22arglist: Split the C/C++ specifics parts into a subclass for CLikeDylan Baker2-78/+71
This means that we don't need work arounds for D-like compilers, as the special c-like hanlding wont be used for D compilers.
2020-06-22compilers: Return CompilerArgs from compiler instanceDylan Baker8-44/+55
Since the CompileArgs class already needs to know about the compiler, and we really need at least per-lanaguage if not per-compiler CompilerArgs classes, let's get the CompilerArgs instance from the compiler using a method.
2020-06-22compilers: Split CompilerArgs into a separate moduleDylan Baker8-379/+411
I've also moved this out of the compilers pacakge because we're soon going to need it in linkers, and that creates some serious spagetti
2020-06-22compilers: Add missing annotations to CompilerArgs classDylan Baker1-16/+14
2020-06-22compilers: Use enum for for deupdlication returns in CompilerArgsDylan Baker1-27/+36
2020-06-21mcompile: Add --verbose modeIgor Raits1-1/+10
Closes: https://github.com/mesonbuild/meson/issues/7352 Signed-off-by: Igor Raits <i.gnatenko.brain@gmail.com>
2020-06-21wrap: Add patch_directory supportXavier Claessens1-12/+20
Copy a tree instead of extracting an archive. Closes: #7216
2020-06-21compiler: add 'force_align_arg_pointer' function attributeTim-Philipp Müller1-0/+2
2020-06-21Merge pull request #7359 from dcbaker/submit/2020-06/sh4Jussi Pakkanen1-2/+3
Add SuperH SH-4 support
2020-06-21update meson init info message. [skip ci]Michael Brockus1-2/+2
2020-06-19envconfig: Add support SuperH SH-4Dylan Baker1-2/+3
Fixes: #7358
2020-06-18Merge pull request #7196 from cconverse711/llvm-covJussi Pakkanen3-14/+53
coverage: llvm-cov support
2020-06-18mconf: Fix regression when printing all optionsXavier Claessens1-8/+8
This is a regression introduced by #5489
2020-06-17coverage: llvm-cov supportCary Converse3-14/+53
2020-06-16interpreter: Allow dependecy or subproject name in force_fallback_forXavier Claessens1-3/+6
2020-06-16interpreter: Avoid new feature warning when using old has_exe_wrapper()Xavier Claessens1-1/+4
2020-06-16interpreter: add support for --force-fallback-forMathieu Duponchelle2-2/+10
This new command line option allows specifying dependencies for which to force fallback. See the documentation for more information Fixes: #7218
2020-06-16Update mesonbuild/modules/gnome.pyXavier Claessens1-1/+1
Co-authored-by: Nirbheek Chauhan <nirbheek.chauhan@gmail.com>
2020-06-16Update mesonbuild/modules/gnome.pyXavier Claessens1-1/+1
Co-authored-by: Nirbheek Chauhan <nirbheek.chauhan@gmail.com>
2020-06-16gnome: Add fatal_warnings kwarg to generate_gir()Xavier Claessens1-2/+11
Fixes: #7130
2020-06-15environment: fallback regex for versions like 2020.01Michael Hirsch1-2/+8
add four-digit version unit_test cases
2020-06-15Add exception handling to be also written to the VS project xmlVili Väinölä1-0/+12
When changing meson option cpp_eh, it was passed to cl with AdditionalOptions and resulted in unsuppressable warning "cl : command line warning D9025: overriding '/EHs' with '/EHa'"
2020-06-14windows: Canonicalize `:` in filenamesNirbheek Chauhan2-2/+8
Fixes https://github.com/mesonbuild/meson/issues/7265
2020-06-14Use cmake args also when calling get_cmake_infoVili Väinölä1-4/+4
- vcpkg libraries are not found when given cmake_toolchain_file and vcpkg_target_triplet as cmake_args when looking for the dependency if the first call to cmake has different arguments. The libraries are found if the first call has same arguments or if the CMakeCache.txt is deleted in call_with_fake_build.
2020-06-13cmake: fix definitions with interface libraries (fixes #7299)Daniel Mensinger1-7/+6
2020-06-13Also adjust PATH in gtkdochelper for CygwinJon Turney1-3/+5
Also do Windows loader specific PATH adjustment (to emulate rpath) in gtkdochelper for Cygwin.
2020-06-13Include the dep itself in extra_paths for WindowsJon Turney1-0/+1
This is needed in the case where a custom_target directly depends on a shared library, and somehow loads it. (Specifically this can be the case with gtkdoc, when it invokes gtkdoc-scangobj, which will build and run it's own code to load a shared library, to introspect it)
2020-06-13Handle multiple substitutions in eval_custom_target_command()Jon Turney1-29/+30
Handle command arguments which contain multiple substitutions correctly in Backend.eval_custom_target_command() In particular, gnome.gtkdoc() makes arguments of the form '--cflags -I@SOURCE_ROOT@ -I@BUILD_ROOT' (where these arguments are then passed down to a compiler invocation) Normally, these are subsequently made right by NinjaBackend.replace_paths(), but if Backend.as_meson_exe_cmdline() decides that the command needs to be pickled, that doesn't happen. (Although having two places where this substitution might happen smells really bad)
2020-06-13cmake: Fix handling of path seperators (fixes #7294)Daniel Mensinger2-4/+9
2020-06-13mdist: Filter out buildtype to avoid warningNirbheek Chauhan1-1/+1
Since we parse buildoptions.json to pass options, we end up passing -Dbuildtype and also -Doptimization and -Ddebug which triggers the warning: WARNING: Recommend using either -Dbuildtype or -Doptimization + -Ddebug [...] Filter out buildtype. It is redundant.
2020-06-12dependencies: Add a couple of type annotationsDylan Baker1-2/+3
2020-06-12dependencies: Don't allow using the default binary for host on cross compilesDylan Baker2-5/+5
Otherwise we can end up finding dependencies from the build machine for the host machine, which is incorrect. This alters cmake, pkg-config, and all config-tool based dependencies. Fixes: #7276
2020-06-12dependencies: Don't try to find a binary by "default_path" when cross compilingDylan Baker1-4/+7
2020-06-12cmake: Use shared find_external_program instead of open codingDylan Baker1-22/+5
2020-06-12dependencies: Split search_tool out of ExternalDependencyDylan Baker2-24/+29
it really doesn't make sense to put this in the ExternalDependency class. It doesn't rely on any of the state of that class, and it's generically useful inside meson.
2020-06-12mintro: typings again x2TheQwertiest1-1/+1
Co-authored-by: Dylan Baker <dylan@pnwbakers.com>
2020-06-12mintro: more typing shenanigansTheQwertiest1-1/+1
2020-06-12mintro: typing fixTheQwertiest1-1/+1
2020-06-12mintro: typing fixTheQwertiest1-1/+1
2020-06-12mintro: enforced order for subcommandsTheQwertiest1-12/+14
2020-06-12modules/cmake: Fix setting install_dirDylan Baker1-2/+1
Fixes: #7301
2020-06-12cmake: Subprojects support CMAKE_PREFIX_PATH (fixes #7249)Daniel Mensinger2-15/+23
2020-06-11apple: -headerpad args are ignored when bitcode is enabledNirbheek Chauhan2-7/+13
Causes spammy warnings from the linker: ld: warning: -headerpad_max_install_names is ignored when used with -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES)
2020-06-11Fix typo in bitcode messageNirbheek Chauhan1-1/+1
2020-06-11compilers: corretify deduplication directionMarcel Hollerbach1-2/+2
so: when building compile args, meson is deduplicating flags. When a compiler argument is appended, a later appearance of a dedup'ed is going to remove a earlier one. If the argument is prepended, the element *before* the new one is going to be removed. And that is where the problem reported in https://github.com/mesonbuild/meson/pull/7119 is coming in. In the revision linked there, the order of replacement in the prepend case was revesered. With this patch, we restore this behaviour again.
2020-06-10Updated to resolve issue identifying SGI CPUs on IRIX systemsEric Dodd3-2/+11
2020-06-10Fix python3 installed from the Windows StoreD Scott Phillips2-4/+26
When meson is currently being run with a python that seems to have been installed from the Windows Store, replace the general WindowsApps directory in search paths with dirname(sys.executable), and also handle failures with pathlib.resolve on WindowsApps exe files.
2020-06-10dependencies: Remove finish_init methodDylan Baker3-26/+37
This is a holdover from before we had the DependencyFactory. It should have already been refactored into the initializer, but wasn't for some reason.
2020-06-10tell variable name when erroring on bad combo optionMichael Hirsch1-1/+3
fixes #7269