Commit Graph

1329 Commits

Author SHA1 Message Date
Xavier Claessens c016401f95 coredata: Make warning_level per subproject builtin option 2020-07-22 19:19:50 -04:00
cmcneish a7a6a4833f
Add boost_root support to properties files (#7210)
* Add boost_root support to properties files

This commit implements `boost_root`, `boost_includedir`, and
`boost_librarydir` variable support to native and cross properties
files. The search order is currently environment variables, then
these variables, and finally a platform-dependent search.

* Add preliminary boost_root / boost_includedir tests

Each test contains a fake "version.hpp", as that's how boost detection is
currently being done. We look for this file relative to the root directory,
which probably shouldn't be allowed (it previously was for BOOST_LIBRARYDIR
but not for BOOST_ROOT). It also cannot help with breakage detection in
libraries, however it looks like this wasn't getting tested beforehand.

I've given the two unique version numbers that shouldn't be present in any
stock version of boost (001 and 002).

* Add return type to detect_split_root

* Return empty list when nothing found in BOOST_ROOT, rather than None

* Update boost_root tests

* Create nativefile.ini based on location of run_project_tests.py
* Add fake libraries to ensure boost_librarydir is being used

* Require all search paths for boost to be absolute

* Redo boost search ordering

To better match things like pkg-config, we now look through native/cross files,
then environment variables, then system locations for boost installations.

Path detection does not fall back from one method to the next for properties or
environment variables--if boost_root, boost_librarydir, or boost_includedir is
specified, they must be sufficient to find boost. Likewise for BOOST_ROOT and
friends. pkg-config detection is still optional falling back to system-wide
detection, for Conan.

(Also, fix a typo in test 33's nativefile)

* Correct return type for detect_roots

* Correct boost dependency search order in documentation

* Print debug information for boost library finding, to resolve CI issues

* Handle native/cross file templates in a more consistent way

All tests can now create a `nativefile.ini.in` if they need to use some
parameter that the testing framework knows about but they can't.

* Pass str--rather than PosixPath--to os.path.exists, for Python35

* Look for boost minor versions, rather than boost patch versions in test cases

* Drop fake dylib versions of boost_regex

* Prefer get_env_var to use of os.environ

* Correct error reporting for relative BOOST_ROOT paths

* Bump version this appears in. Also, change "properties file" to "machine file" as that appears to be the more common language.
2020-07-21 16:40:29 +02:00
Stéphane Cerveau 8f106a2b9a string: add substring method
This method aims to offer a simple way to 'substring'
an existing string with start and end values.
2020-07-20 20:04:01 -04:00
wb9688 4974fa39ac
Fix dirs typo in Vala docs [skip ci]
Co-authored-by: wb9688 <wb9688@users.noreply.github.com>
2020-07-19 22:41:36 +03:00
Marc-André Lureau aa0d75deae Stabilize keyval module
We have experimented with the module for about a year in a qemu
branch (https://wiki.qemu.org/Features/Meson), and we would like to
start moving the build system to meson. For that, keyval should have
the stability guarantees.

Cc: Paolo Bonzini <pbonzini@redhat.com>
2020-07-19 17:53:32 +03:00
Nathan Lanza 4b728293cd
Replace `dynamic linker` with `linker` [skip ci]
This header erroneously referred to the dynamic linker while the paragraph talks about
the "link editor." Change the title to account for the difference.
2020-07-14 20:48:11 +03:00
Xavier Claessens 825ba92b98 doc: Add warning about --force-fallback-for [skip ci] 2020-07-14 20:45:51 +03:00
Jussi Pakkanen d0c68dc115 Updated everything for release 0.55.0. 2020-07-12 17:25:51 +03:00
Xavier Claessens f1edb83bb6 doc: Small tweaks to fallback documentation [skip ci] 2020-07-09 01:35:03 +03:00
Xavier Claessens 1993fb602e doc: Improve documentation of [provide] section in wrap files
Explicitly document the behaviour of dependency('foo-1.0', required:
false).
2020-07-05 18:02:20 +03:00
Thibault Saunier 99e96133c8
doc: Minor typo fix in legal.md [skip ci] 2020-07-04 14:03:34 +03:00
Xavier Claessens 95c3fee47d wrap: Update doc to give dependency_names example first 2020-07-01 09:51:57 -04:00
Xavier Claessens fba796cf13 Fix typo: coma->comma 2020-07-01 09:51:57 -04:00
Xavier Claessens f08eed37cb find_program: Fallback if a wrap file provide the program name
We don't need the legacy variable name system as for dependency()
fallbacks because meson.override_find_program() is largely used already,
so we can just rely on it.
2020-07-01 09:51:57 -04:00
Xavier Claessens 71804e56eb wrap: Add special 'dependency_names' key in [provide] section
The value for that key must be a coma separated list of dependecy names
provided by that subproject, when no variable name is needed because the
subproject uses override_dependency().
2020-07-01 09:51:57 -04:00
Xavier Claessens 2a7f72885f wrap: Add 'provide' section 2020-07-01 09:51:44 -04:00
Xavier Claessens 56c9e95b04 Implicit dependency fallback when a subproject wrap or dir exists 2020-07-01 09:45:33 -04:00
Jussi Pakkanen 64f36613ef
Merge pull request #7231 from mensinda/cmOverride
cmake: Add more advanced subproject configuration options
2020-07-01 00:04:08 +03:00
TheQwertiest b6981bd16e
Made Commands.md dynamically generated (#7346) 2020-06-30 23:56:08 +03:00
TheQwertiest 83a973ca04 Replaced `ninja` with `meson` [skip ci] 2020-06-30 23:52:31 +03:00
TheQwertiest 9e0db0a05e Cleaned up Reference docs [skip ci] 2020-06-30 23:51:55 +03:00
Xavier Claessens 4a371c97f4 wrap: Apply patch even in VCS cases 2020-06-30 19:42:43 +03:00
Xavier Claessens 1c8731a100 envconfig: Add [constants] section in machine files
Machine files already supports `+` operator as an implementation detail,
since it's using eval(). Now make it an officially supported feature and
add a way to define constants that are used while evaluating an entry
value.
2020-06-29 20:16:21 +03:00
TheQwertiest 5696a5abba Added ability to specify target in `meson compile` 2020-06-29 19:54:38 +03:00
TheQwertiest 4d0233540f Added ability to pass arguments to backend in `meson compile` 2020-06-28 18:13:49 -04:00
Michael Hirsch, Ph.D b9b15816e8 syntax.md: document version_compare ambiguities [skip ci] 2020-06-28 23:54:16 +03:00
Michael Hirsch, Ph.D 1e140c002b syntax.md: correct markdown heading syntax [skip ci] 2020-06-28 23:54:16 +03:00
Daniel Mensinger 08f29c1812 docs: Add initial docs for the Meson CI [skip ci] 2020-06-24 22:43:38 +03:00
Nirbheek Chauhan 83df219747 docs: Document string path building with examples
Also document that line continuation didn't work before 0.50.

90c9b868b2 fixed it.
2020-06-24 16:56:54 +00:00
Igor Raits d6c6b933c4 mcompile: Add --verbose mode
Closes: https://github.com/mesonbuild/meson/issues/7352
Signed-off-by: Igor Raits <i.gnatenko.brain@gmail.com>
2020-06-21 23:49:39 +03:00
Xavier Claessens e353b2e8d4 wrap: Add patch_directory support
Copy a tree instead of extracting an archive.

Closes: #7216
2020-06-21 23:39:12 +03:00
Tim-Philipp Müller 246e5437aa compiler: add 'force_align_arg_pointer' function attribute 2020-06-21 23:34:11 +03:00
Jussi Pakkanen da018da753
Merge pull request #7359 from dcbaker/submit/2020-06/sh4
Add SuperH SH-4 support
2020-06-21 23:11:22 +03:00
Michael Brockus 9168032403
Update Style-guide.md [skip ci] 2020-06-21 23:06:48 +03:00
Michael Brockus 3f1108c923
Update Creating-releases.md [skip ci] 2020-06-21 22:35:33 +03:00
Dylan Baker b384f82b9a envconfig: Add support SuperH SH-4
Fixes: #7358
2020-06-19 10:56:09 -07:00
Dylan Baker 348b0ef671 docs: Alphabetically sort the cpu_family reference table
It's close, but not quite. This should make it easier to read
2020-06-19 10:54:18 -07:00
Cyril Richard 189d3b0513
Update Users.md [skip ci]
Update Users.md with the add of Siril (www.siril.org) that is migrating from autotools to meson.
2020-06-19 17:32:18 +03:00
Jussi Pakkanen 1309b06183
Merge pull request #7196 from cconverse711/llvm-cov
coverage: llvm-cov support
2020-06-18 18:57:25 +03:00
TheQwertiest 96609da8d2 docs: replaced `ninja` with appropriate `meson` commands [skip ci] 2020-06-18 17:47:10 +03:00
Cary Converse a198e5d191 coverage: llvm-cov support 2020-06-17 23:02:50 -04:00
Michael f7b7514014 update Project-templates.md 2020-06-17 17:35:15 +03:00
Xavier Claessens 972cac13f4 doc: Fix missing --force-fallback-for documentation 2020-06-16 15:15:00 -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 0b4cf5a844 gnome: Add fatal_warnings kwarg to generate_gir()
Fixes: #7130
2020-06-16 08:21:35 -04:00
laolux 0a583ac06a
Documentation, FAQ.md, generated_headers [skip ci] 2020-06-15 23:31:55 +03:00
TheQwertiest 399303b534
Added docs for all meson commands + corresponding unit test (#7217) 2020-06-15 11:20:20 +05:30
Jon Turney 3babaaaeec Tweak gnome.gtkdoc() documentation for clarity and grammar 2020-06-13 18:48:35 +00: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
坂本 貴史 5f8d89b707
docs: remove duplicated entry for gnome.generate_gir() documentation [skip ci]
The documentation of gnome.generate_gir() has duplicated entry for
dependencies parameter. As a fix, this patch removes the entry added
recently.

Fixes: 893d101fff ("gnome: Add header kwarg to generate_gir()")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
2020-06-12 00:33:47 +03:00