Jussi Pakkanen
f5d530ef71
Updated version number for 0.42.1 release.
7 years ago
Nirbheek Chauhan
b6723b3d7c
wrap-mode: Make the error output more useful
...
Now it errors out while displaying the possible options
See: https://bugs.python.org/issue25061 for native support
7 years ago
Nirbheek Chauhan
15c1f43964
tests/common/48: Don't read newline
...
To avoid platform-specific differences in git settings.
7 years ago
Nirbheek Chauhan
f85d4bb14c
Fix regression in test definitions
...
Caused by #2236 . Also add a test for this.
7 years ago
Nirbheek Chauhan
66a5b0c566
interpreter: Always flatten when unholding arrays
...
Otherwise we might end up with wrapper holders in the Build object and
pickling will then fail, defeating the purpose of the holder objects.
Closes https://github.com/mesonbuild/meson/issues/2211
7 years ago
Nirbheek Chauhan
6beefac09a
Add a test for the custom target incdirs change
...
https://github.com/mesonbuild/meson/pull/2291
7 years ago
Nirbheek Chauhan
62f45cd8b4
backends: Add custom target inc dirs before target inc dirs
...
Custom target include dirs must be overridable by target-specific
include dirs otherwise in case of header name collisions, the user has
no way to override this behaviour.
7 years ago
Hemmo Nieminen
f2573fa847
Add a regression test for test suites.
...
Ensure test setup environment variables can from now on be given also as
strings.
7 years ago
Hemmo Nieminen
fa97463434
Fix a stack trace caused by environment variables in test setups.
...
An example trace:
[snip]
> File "/usr/lib/python3.6/concurrent/futures/thread.py", line 55, in run
> result = self.fn(*self.args, **self.kwargs)
> File "/home/trhd/Projects/meson/mesonbuild/mtest.py", line 221, in run_single_test
> child_env.update(self.options.global_env.get_env(child_env))
> AttributeError: 'dict' object has no attribute 'get_env'
7 years ago
Michal Koutný
a6ad07f54a
Allow version labels with trailing dots
...
Fixes #1586
7 years ago
Nirbheek Chauhan
8dc9d315a5
install: Also ignore PermissionError for selinux
...
When the user does not have permissions to run `selinuxenabled`, a
PermissionError is raised instead of FileNotFoundError.
Closes https://github.com/mesonbuild/meson/issues/2257
7 years ago
Matthias Klumpp
f56a058e68
gnome: Ensure gir always works with asan, even if used together with ubsan
...
This really resolves #1910 by making it also work in cases where asan
and ubsan are used together via "-Db_sanitize=address,undefined".
7 years ago
Matthias Klumpp
05b837848d
gnome: Fix typo in gtkdoc_html_dir, so it returns the correct path
7 years ago
William D. Jones
809f165cde
Check if Watcom version of cl exists in the path and avoid using it. ( #2237 )
7 years ago
Philippe Payant
184988d437
Remove trailing spaces.
7 years ago
Philippe Payant
6aef93026a
Fix detection of MSVC 2008 version.
7 years ago
Chet Gurevitch
1c8abfc618
Tell users about ninja rebuild and meson configure
7 years ago
Chet Gurevitch
ad1d260cb2
Don't error if build directory is already configured
7 years ago
Michał Wikliński
48fb8595d3
Add missing dependency of Boost Log to a Docker image
7 years ago
Michał Wikliński
af057ab5c6
Find Boost dep when there is an extra lib to link
...
There are several components in Boost which must be linked with extra
libraries. Boost Log is one of them and in special circumstances needs
linking with boost_log_setup.
http://www.boost.org/doc/libs/1_64_0/libs/log/doc/html/log/detailed/utilities.html#log.detailed.utilities.setup
This fix covers the case when there is no source file corresponding to
the additional library.
7 years ago
Jussi Pakkanen
46209bb68e
Fix coverage target breakage and add a test for it.
7 years ago
Jussi Pakkanen
97065a2252
Remove PHONY because Windows and OSX file systems are crap. Closes #2199 .
7 years ago
Peter Harris
0cb6a9819a
Fix detection of clang "optimization arguments"
...
In version 3.6.0, clang added -Wignored-optimization-argument. Without
setting this flag to -Werror, "ignored optimization arguments" such as
(for example) -fpeel-loops, are accepted but warned about, leading to
noisy builds if meson thinks the flag is supported.
See also #755
7 years ago
Jon Turney
200238a187
Fix warning when executable(implib:) is used
...
PR #1955 added implib to known_exe_kwargs, but since PR #2001 it needs to be
in exe_kwargs as well, to avoid 'WARNING: Passed invalid keyword argument
"implib"' when it is used.
7 years ago
Jussi Pakkanen
e969f1e703
Ensure log file gets closed.
7 years ago
Jussi Pakkanen
ef47b06dd6
Ignore encoding when scanning Fortran sources.
7 years ago
Jussi Pakkanen
a629642f1e
Bump numbers for new release.
7 years ago
Jussi Pakkanen
33c2bbc6e8
Merge pull request #2191 from centricular/fix-ninja-clean-target-dir
...
Fix ninja clean in some edge cases + a bonus windows fix
7 years ago
Nirbheek Chauhan
e191488cdf
tests/common/159: Disable phony test
...
Breaks on case-insensitive HFS+ on Travis
https://travis-ci.org/mesonbuild/meson/jobs/264468097
And on Appveyor:
https://ci.appveyor.com/project/jpakkane/meson/build/3344/job/k996o8g57qf68ryb
7 years ago
Nirbheek Chauhan
306cac70a6
tests/common/159: Disable b_coverage=true
...
Setting it seems to cause it to be set on all later tests, which causes
a lot of failures:
https://travis-ci.org/mesonbuild/meson/jobs/264468097
https://travis-ci.org/mesonbuild/meson/jobs/264468093
7 years ago
Nirbheek Chauhan
5764a26a4c
gfortran: Add coverage arguments
7 years ago
Nirbheek Chauhan
7d36776307
ninja: Fix detection of vs compiler usage
...
Just because cl.exe exists in PATH doesn't mean we are using it right
now. Instead, check the list of compilers that were configured.
7 years ago
Nirbheek Chauhan
be4428005d
ninja: Fix cleaning in various edge cases
...
We need to use target aliases for reserved target names and run
targets to workaround a ninja bug:
https://github.com/ninja-build/ninja/issues/828
Closes https://github.com/mesonbuild/meson/issues/1644
7 years ago
Jussi Pakkanen
4a766147fb
Printing unknown kwarg error message no longer crashes the parser.
7 years ago
Nirbheek Chauhan
0c518a8077
Add a test for dirs with reserved target names
...
And for dirs with the same name as run_target()s
Reproduces https://github.com/mesonbuild/meson/issues/1644
7 years ago
Nirbheek Chauhan
cae5caa7f1
run_unittests: Add a helper for asserting path existence
...
It is useful to have a message displayed if the assert is fired.
7 years ago
Marinus Schraal
c8e61f112d
gnome: use VAPIGEN from the environment if set
...
Allow setting the vapigen binary by passing it as an environment
variable.
7 years ago
Tim-Philipp Müller
4e476c82f3
gnome: add mkenums_simple()
...
99% of all mkenums uses in C libraries use the same basic template,
so add a mkenums_simple() function that takes care of everything for
us based on that template.
Features:
- optional function declaration decorator such as GLIB_AVAILABLE
- optional extra header prefix (e.g. for include needed for decorator)
- optional extra body prefix (e.g. for additional includes)
- optional function name prefix (e.g. to add leading underscores)
Fixes issue #1384
7 years ago
Jussi Pakkanen
c69a4aee1e
Store current line number so it can be printed in warning messages. Closes #2181 .
7 years ago
Jussi Pakkanen
5c8328d27f
Use "meson test" in test invocations so it will not print the deprecation warning.
7 years ago
Jussi Pakkanen
55165ba504
Added documentation for pcap dependency.
7 years ago
Jussi Pakkanen
8c8e9230a5
Merge pull request #2130 from bruce-richardson/pcap_config_support
...
add support for pcap dependencies
7 years ago
Gabríel Arthúr Pétursson
0ad448f890
Pass -fpch-preprocess to GCC when precompiled headers are used
...
CCache requires this flag when building with precompiled headers.
Without it, the preprocessor fails and CCache fallbacks to running the
real compiler.
Users still need to set 'sloppiness' to 'pch_defines,time_macros' in
their ccache.conf file for CCache to cache builds that use precompiled
headers. See the CCache manual for more info:
https://ccache.samba.org/manual.html#_precompiled_headers
7 years ago
Nirbheek Chauhan
556966003e
gnome: Allow passing build_by_default: to some functions
...
Closes https://github.com/mesonbuild/meson/issues/2174
7 years ago
Tim-Philipp Müller
60b83a5f0a
gnome: add 'ignore_headers' to permitted kwarg list for gnome.gtkdoc()
7 years ago
Nirbheek Chauhan
192d0dd0a7
unit tests: Select test cases inside run_unittests.py
...
This allows people to directly run ./run_unittests.py without having
to worry about selecting the right test cases for the platform they
are on.
7 years ago
Nirbheek Chauhan
7aed29e2c3
gnome: Fix parsing of resource custom target files
...
gnome.compile_resources() was not parsing custom target sources
properly. It was using the custom target name as the output of the
custom target instead of looking at the list of outputs.
Also modify the GNOME framework test to expose this.
7 years ago
Florian Müllner
691ad706ad
gnome: Only translate -l flags to --extra-library
...
Other linker arguments may contain '-l' as well, for instance
'-L/usr/lib/x86_64-linux-gnu/foo' with Debian-style multiarch.
7 years ago
Stefan Sonski
462813f8f1
Exclude system sources from test coverage
...
Exclude /usr/src/ from code coverage, this is included for e.g. gtest/gmock.
7 years ago
Nirbheek Chauhan
ca4778a500
Update wrap-mode FAQ
7 years ago