aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2020-06-17ci: Remove PostgreSQL from PATHNirbheek Chauhan4-15/+2
It's one of the causes of the cmake test failures, and it's also plaguing the VS2019 jobs now because of the image update.
2020-06-17update Project-templates.mdMichael1-2/+21
2020-06-16interpreter: Allow dependecy or subproject name in force_fallback_forXavier Claessens1-3/+6
2020-06-16doc: Fix missing --force-fallback-for documentationXavier Claessens1-0/+8
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 Duponchelle6-2/+43
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 Claessens3-2/+17
Fixes: #7130
2020-06-15macros.meson: Switch to meson compile / installIgor Raits1-3/+9
Signed-off-by: Igor Raits <i.gnatenko.brain@gmail.com>
2020-06-15macros.meson: Switch to %{_smp_build_ncpus}Igor Raits1-9/+3
It is available since RPM 4.15 which has been around 1 year by now. Signed-off-by: Igor Raits <i.gnatenko.brain@gmail.com>
2020-06-15pep8: add missing import, remove unused variableMichael Hirsch2-26/+27
2020-06-15run_*tests*.py: print Meson version at start of test suiteMichael Hirsch5-7/+14
on some systems, tests may take over an hour to run--only to find you might have used an unintended Meson version (e.g. release instead of dev). This change prints the Meson version at the start of the run_*tests*.py scripts. Also, raise SystemExit(main()) is preferred in general over sys.exit(main())
2020-06-15Documentation, FAQ.md, generated_headers [skip ci]laolux1-1/+1
2020-06-15environment: fallback regex for versions like 2020.01Michael Hirsch2-6/+18
add four-digit version unit_test cases
2020-06-15test:fortran7: default static so Intel/VS-based compilers passMichael Hirsch1-3/+3
we did the same thing earlier with other Fortran tests for the same reason.
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-15Added docs for all meson commands + corresponding unit test (#7217)TheQwertiest3-0/+718
2020-06-15ci: Use test.json to skip VS2017 azure testsDaniel Mensinger5-19/+17
See also #7307 #7314 #7316 cc @nirbheek
2020-06-14windows: Canonicalize `:` in filenamesNirbheek Chauhan3-2/+10
Fixes https://github.com/mesonbuild/meson/issues/7265
2020-06-14fortran generated test: add code to reveal issueMichael Hirsch5-10/+22
used with Issue #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-14Disable failing cmake jobs on VS2017Nirbheek Chauhan3-0/+16
These only fail when building with msvc/clang-cl on the VS2017-Win2016 image. See: https://github.com/mesonbuild/meson/issues/7307
2020-06-13cmake: fix definitions with interface libraries (fixes #7299)Daniel Mensinger7-7/+28
2020-06-13Tweak gnome.gtkdoc() documentation for clarity and grammarJon Turney1-2/+2
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-13azure: Run gtkdoc tests for CygwinJon Turney1-0/+1
2020-06-13ci: Pin ninja to 1.9.0.post1 for nowNirbheek Chauhan1-1/+5
See: https://github.com/mesonbuild/meson/pull/7306#issuecomment-643606736
2020-06-13tests: reset CMakeDependency.class_cmakeinfoDaniel Mensinger1-0/+3
2020-06-13cmake: Fix handling of path seperators (fixes #7294)Daniel Mensinger6-5/+30
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-12[skip ci] docs: Bring up to date on options per machineJohn Ericson2-14/+64
I tried to fix the docs when the stuff was added, but it turns out I missed things, as noted in https://github.com/mesonbuild/meson/issues/7284#issuecomment-641641177
2020-06-12modules/cmake: Fix setting install_dirDylan Baker4-2/+21
Fixes: #7301
2020-06-12cmake: Subprojects support CMAKE_PREFIX_PATH (fixes #7249)Daniel Mensinger4-15/+37
2020-06-12docs: remove duplicated entry for gnome.generate_gir() documentation [skip ci]ć‚æœŹ èČŽćČ1-1/+0
The documentation of gnome.generate_gir() has duplicated entry for dependencies parameter. As a fix, this patch removes the entry added recently. Fixes: 893d101fff01 ("gnome: Add header kwarg to generate_gir()") Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2020-06-11Correct argument typo in partial_dependnecy (#7300) [skip ci]Phillip Johnston1-1/+1
Should be "sources" not "source" ``` ../meson.build:162: WARNING: Passed invalid keyword argument "source". WARNING: This will become a hard error in the future. Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/mesonbuild/mesonmain.py", line 131, in run return options.run_func(options) File "/usr/local/lib/python3.7/site-packages/mesonbuild/msetup.py", line 245, in run app.generate() File "/usr/local/lib/python3.7/site-packages/mesonbuild/msetup.py", line 159, in generate self._generate(env) File "/usr/local/lib/python3.7/site-packages/mesonbuild/msetup.py", line 192, in _generate intr.run() File "/usr/local/lib/python3.7/site-packages/mesonbuild/interpreter.py", line 4359, in run super().run() File "/usr/local/lib/python3.7/site-packages/mesonbuild/interpreterbase.py", line 465, in run self.evaluate_codeblock(self.ast, start=1) File "/usr/local/lib/python3.7/site-packages/mesonbuild/interpreterbase.py", line 490, in evaluate_codeblock raise e File "/usr/local/lib/python3.7/site-packages/mesonbuild/interpreterbase.py", line 483, in evaluate_codeblock self.evaluate_statement(cur) File "/usr/local/lib/python3.7/site-packages/mesonbuild/interpreterbase.py", line 498, in evaluate_statement self.assignment(cur) File "/usr/local/lib/python3.7/site-packages/mesonbuild/interpreterbase.py", line 1151, in assignment value = self.evaluate_statement(node.value) File "/usr/local/lib/python3.7/site-packages/mesonbuild/interpreterbase.py", line 500, in evaluate_statement return self.method_call(cur) File "/usr/local/lib/python3.7/site-packages/mesonbuild/interpreterbase.py", line 895, in method_call return obj.method_call(method_name, args, self.kwargs_string_keys(kwargs)) File "/usr/local/lib/python3.7/site-packages/mesonbuild/interpreterbase.py", line 39, in method_call return method(args, kwargs) File "/usr/local/lib/python3.7/site-packages/mesonbuild/interpreterbase.py", line 285, in wrapped return f(*wrapped_args, **wrapped_kwargs) File "/usr/local/lib/python3.7/site-packages/mesonbuild/interpreterbase.py", line 151, in wrapped return f(*wrapped_args, **wrapped_kwargs) File "/usr/local/lib/python3.7/site-packages/mesonbuild/interpreterbase.py", line 213, in wrapped return f(*wrapped_args, **wrapped_kwargs) File "/usr/local/lib/python3.7/site-packages/mesonbuild/interpreter.py", line 484, in partial_dependency_method pdep = self.held_object.get_partial_dependency(**kwargs) TypeError: get_partial_dependency() got an unexpected keyword argument 'source' FAILED: build.ninja ```
2020-06-11unit tests: Pass args to pytestNirbheek Chauhan1-0/+3
Gets --help working and --failfast too.
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)