Commit Graph

9592 Commits

Author SHA1 Message Date
TheQwertiest 96609da8d2 docs: replaced `ninja` with appropriate `meson` commands [skip ci] 2020-06-18 17:47:10 +03:00
Xavier Claessens e191cbf6e9 mconf: Fix regression when printing all options
This is a regression introduced by #5489
2020-06-18 17:39:43 +03:00
Cary Converse 8620ca2066 disable coverage tests on msys2 2020-06-17 23:08:51 -04:00
Cary Converse f3e2e4c63e add missing gcovr dependencies for msys2 ci 2020-06-17 23:03:45 -04:00
Cary Converse 5bb7f743fd add missing gcovr dependencies for cygwin ci 2020-06-17 23:03:25 -04:00
Cary Converse a198e5d191 coverage: llvm-cov support 2020-06-17 23:02:50 -04:00
Nirbheek Chauhan 804cefc94c ci: Remove PostgreSQL from PATH
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-17 16:51:58 +00:00
Michael f7b7514014 update Project-templates.md 2020-06-17 17:35:15 +03:00
Xavier Claessens 07d2331d23 interpreter: Allow dependecy or subproject name in force_fallback_for 2020-06-16 17:36:33 -04:00
Xavier Claessens 972cac13f4 doc: Fix missing --force-fallback-for documentation 2020-06-16 15:15:00 -04:00
Xavier Claessens 4180f04433 interpreter: Avoid new feature warning when using old has_exe_wrapper() 2020-06-16 15:04:03 -04:00
Mathieu Duponchelle 20709af4d2 interpreter: add support for --force-fallback-for
This new command line option allows specifying dependencies for
which to force fallback.

See the documentation for more information

Fixes: #7218
2020-06-16 13:45:40 -04:00
Xavier Claessens f40e1567f5 Update mesonbuild/modules/gnome.py
Co-authored-by: Nirbheek Chauhan <nirbheek.chauhan@gmail.com>
2020-06-16 08:21:35 -04:00
Xavier Claessens 2ebda584ad Update mesonbuild/modules/gnome.py
Co-authored-by: Nirbheek Chauhan <nirbheek.chauhan@gmail.com>
2020-06-16 08:21:35 -04:00
Xavier Claessens 0b4cf5a844 gnome: Add fatal_warnings kwarg to generate_gir()
Fixes: #7130
2020-06-16 08:21:35 -04:00
Igor Raits 0a61f511aa macros.meson: Switch to meson compile / install
Signed-off-by: Igor Raits <i.gnatenko.brain@gmail.com>
2020-06-15 23:53:41 +03:00
Igor Raits c4761afa63 macros.meson: Switch to %{_smp_build_ncpus}
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-15 23:53:41 +03:00
Michael Hirsch 6f2eb6233c pep8: add missing import, remove unused variable 2020-06-15 23:33:40 +03:00
Michael Hirsch 1ec84c570f run_*tests*.py: print Meson version at start of test suite
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-15 23:33:40 +03:00
laolux 0a583ac06a
Documentation, FAQ.md, generated_headers [skip ci] 2020-06-15 23:31:55 +03:00
Michael Hirsch 0b9e8e39dd environment: fallback regex for versions like 2020.01
add four-digit version unit_test cases
2020-06-15 10:06:34 -07:00
Michael Hirsch 4ba06fb4dd test:fortran7: default static so Intel/VS-based compilers pass
we did the same thing earlier with other Fortran tests for the same
reason.
2020-06-15 10:06:34 -07:00
Vili Väinölä 8905a637be Add exception handling to be also written to the VS project xml
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-15 06:08:32 +00:00
TheQwertiest 399303b534
Added docs for all meson commands + corresponding unit test (#7217) 2020-06-15 11:20:20 +05:30
Daniel Mensinger a44dc67cb7 ci: Use test.json to skip VS2017 azure tests
See also #7307 #7314 #7316

cc @nirbheek
2020-06-15 05:46:25 +00:00
Nirbheek Chauhan eab0e5a8b3 windows: Canonicalize `:` in filenames
Fixes https://github.com/mesonbuild/meson/issues/7265
2020-06-14 14:55:49 +00:00
Michael Hirsch e2379148a6 fortran generated test: add code to reveal issue
used with Issue #7265
2020-06-14 14:55:49 +00:00
Vili Väinölä 977dc4d19f Use cmake args also when calling get_cmake_info
- 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-14 15:33:14 +02:00
Nirbheek Chauhan e121942fcd Disable failing cmake jobs on VS2017
These only fail when building with msvc/clang-cl on the VS2017-Win2016
image. See: https://github.com/mesonbuild/meson/issues/7307
2020-06-14 08:42:16 +00:00
Daniel Mensinger 6c56478ee1 cmake: fix definitions with interface libraries (fixes #7299) 2020-06-13 18:50:00 +00:00
Jon Turney 3babaaaeec Tweak gnome.gtkdoc() documentation for clarity and grammar 2020-06-13 18:48:35 +00:00
Jon Turney 9f0e75bb40 Also adjust PATH in gtkdochelper for Cygwin
Also do Windows loader specific PATH adjustment (to emulate rpath) in
gtkdochelper for Cygwin.
2020-06-13 18:48:35 +00:00
Jon Turney b91355a29b Include the dep itself in extra_paths for Windows
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-13 18:48:35 +00:00
Jon Turney 1b7855c36d Handle multiple substitutions in eval_custom_target_command()
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-13 18:48:35 +00:00
Jon Turney bd7122beed azure: Run gtkdoc tests for Cygwin 2020-06-13 18:48:35 +00:00
Nirbheek Chauhan 4a5aec2fc0 ci: Pin ninja to 1.9.0.post1 for now
See: https://github.com/mesonbuild/meson/pull/7306#issuecomment-643606736
2020-06-13 12:47:45 +00:00
Daniel Mensinger 96379e51ed tests: reset CMakeDependency.class_cmakeinfo 2020-06-13 11:05:28 +00:00
Daniel Mensinger edcddb3a28 cmake: Fix handling of path seperators (fixes #7294) 2020-06-13 11:05:28 +00:00
Nirbheek Chauhan ec1bd22b15 mdist: Filter out buildtype to avoid warning
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-13 11:02:19 +00:00
Dylan Baker 36d4ccaf80 dependencies: Add a couple of type annotations 2020-06-12 11:16:24 -07:00
Dylan Baker f5bd3254e9 dependencies: Don't allow using the default binary for host on cross compiles
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-12 11:16:24 -07:00
Dylan Baker 18d8dbd3bd dependencies: Don't try to find a binary by "default_path" when cross compiling 2020-06-12 11:16:24 -07:00
Dylan Baker 01e0cc6735 cmake: Use shared find_external_program instead of open coding 2020-06-12 11:16:24 -07:00
Dylan Baker 85be45ea11 dependencies: Split search_tool out of ExternalDependency
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-12 11:16:24 -07:00
TheQwertiest 365b667dc5 mintro: typings again x2
Co-authored-by: Dylan Baker <dylan@pnwbakers.com>
2020-06-12 10:45:30 -07:00
TheQwertiest a8256e4900 mintro: more typing shenanigans 2020-06-12 10:45:30 -07:00
TheQwertiest b71e73fc64 mintro: typing fix 2020-06-12 10:45:30 -07:00
TheQwertiest a43e770071 mintro: typing fix 2020-06-12 10:45:30 -07:00
TheQwertiest f1288ac7ec mintro: enforced order for subcommands 2020-06-12 10:45:30 -07:00
John Ericson 58c2aeb5e4 [skip ci] docs: Bring up to date on options per machine
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-12 10:35:11 -07:00