Commit Graph

9486 Commits

Author SHA1 Message Date
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
georgev93 5acd8acd51 Move mesonbuild/cmake/data/run_ctgt.py to mesonbuild/scripts/cmake_run_ctgt.py, as well as enclose everything in a run() function so it can be called by `meson --internal cmake_run_ctgt ...`. Also, include mesonbuild/cmake/data/ in the msi package. 2020-06-30 23:50:10 +03:00
Xavier Claessens 4a371c97f4 wrap: Apply patch even in VCS cases 2020-06-30 19:42:43 +03:00
Mike Gorse eb3b35ae02 test: fix enum generation for GNOME
Fixes: #7252
2020-06-29 20:23:17 +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
Eli Schwartz 33167d40a2 wrap: add user agent when downloading files
This lets servers know when they're being used by meson. It also avoids
issues where the Independent JPEG Group decided to ban the
"Python-urllib" default user agent.

Fixes https://github.com/mesonbuild/libjpeg/issues/9
2020-06-26 16:07:29 -04:00
Nirbheek Chauhan 6aabc205f7 ci: Workaround MSYS2 update breakage
Also kill all MSYS2 processes after the first update, and constantly
print update status.
2020-06-25 00:35:01 +00:00
Nirbheek Chauhan e9dbe82d3e ci: Bump the cygwin timeout to 120 minutes
The default timeout is 60 min and we're timing out, but the maximum we
can have is 6 hours. Bump it to 120 min for now.
2020-06-25 00:35:01 +00:00
Xavier Claessens d0f468fef1 pkgconfig: Add missing cflags in uninstalled files
Fixes: #7365
2020-06-24 22:53:09 +03:00
Jussi Pakkanen 35f2a2444f
Merge pull request #7370 from alanc/solaris-fixes
Solaris fixes
2020-06-24 22:48:13 +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
Alan Coopersmith 28d1bb9016 SolarisDynamicLinker: add get_asneeded_args() & get_pie_args()
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-06-22 15:02:19 -07:00
Alan Coopersmith e4330eff6d Fix "test cases/common/125 object only target" on Solaris
If object is not built pic, trying to link it into libshr.so fails:

[6/8] Linking target libshr.so.
FAILED: libshr.so
gcc  -o libshr.so 'shr@sha/source2.o' -Wl,--no-undefined -Wl,--as-needed -shared -fPIC -Wl,--start-group -Wl,-soname,libshr.so -Wl,--end-group
Text relocation remains                         referenced
    against symbol                  offset      in file
.text (section)                     0x20        shr@sha/source2.o
ld: fatal: relocations remain against allocatable but non-writable sections
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-06-22 15:02:05 -07:00
Alan Coopersmith feef5a1c06 unittests: Fix 51 ldflagdedup on Solaris
If the linker doesn't support --export-dynamic, skip test to deduplicate
it, since it always fails finding 0 copies instead of 1.
2020-06-22 15:01:45 -07:00
Alan Coopersmith f71c828d99 unittests: Fix test_identity_cross on Solaris
Since mesonbuild/environment.py doesn't recognize Studio compilers,
force use of gcc on Solaris for now.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-06-22 15:01:34 -07:00
Alan Coopersmith 77935db7b0 test: Fix linuxlike/3 linker script on Solaris 11.4
Solaris linker added support for GNU-style --version-script in Solaris 11.4,
but requires adding the -z gnu-version-script-compat flag to enable it.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-06-22 15:01:17 -07:00
Alan Coopersmith e06b04dc80 unittests: Fix test_compiler_detection on Solaris
Accept Solaris linker in addition to GNU linker.  Previously using the
system provided gcc (which calls the Solaris linker) caused it to fail with:

======================================================================
FAIL: test_compiler_detection (__main__.AllPlatformTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "run_unittests.py", line 2525, in test_compiler_detection
    self.assertIsInstance(cc.linker, mesonbuild.linkers.GnuLikeDynamicLinkerMixin)
AssertionError: <SolarisDynamicLinker: v9.2.0 `gcc`> is not an instance of <class 'mesonbuild.linkers.GnuLikeDynamicLinkerMixin'>

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-06-22 15:00:27 -07:00
Alan Coopersmith 45793b6ee2 symbolextractor: Add support for Solaris
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2020-06-22 15:00:17 -07:00
Dylan Baker d42cd735a4 arglist: Fix remaining mypy errors and warnings
So we can lint it with mypy
2020-06-22 12:06:10 -07:00
Dylan Baker 4f6bd29ac9 arglist: Split the C/C++ specifics parts into a subclass for CLike
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-22 12:06:10 -07:00
Dylan Baker 93c3ec7e2d compilers: Return CompilerArgs from compiler instance
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-22 12:06:10 -07:00
Dylan Baker 9d0ad66c29 compilers: Split CompilerArgs into a separate module
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-22 12:06:10 -07:00
Dylan Baker 386721f7fd compilers: Add missing annotations to CompilerArgs class 2020-06-22 12:06:10 -07:00
Dylan Baker b887212bee compilers: Use enum for for deupdlication returns in CompilerArgs 2020-06-22 12:06:10 -07: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
Michael Brockus 52a36a5521
update meson init info message. [skip ci] 2020-06-21 22:34:12 +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
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