Michał Wikliński
9154a6473b
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
Gabríel Arthúr Pétursson
24ff7da0d2
Remove leftover debug print statement in meson_install.py
7 years ago
Jussi Pakkanen
2d575757d6
Put some keyword arguments into alphabetical order to improve readability.
7 years ago
Jussi Pakkanen
a1326581a5
Fix coverage target breakage and add a test for it.
7 years ago
Jussi Pakkanen
e02f1dc809
Remove PHONY because Windows and OSX file systems are crap. Closes #2199 .
7 years ago
David Seifert
ece243d9ab
Add warning about `sources` in declare_dependency
7 years ago
TingPing
8a636052bd
docs: Clarify project() no longer requires a language
7 years ago
Mohammed Sadiq
747c3af52c
docs: fix typo
7 years ago
Peter Harris
ee34f454ca
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
9607abbe0d
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
c2a5ac3981
Ensure log file gets closed.
7 years ago
Jussi Pakkanen
50fb7d37ab
Make all functionality invokable via the main Meson binary,
...
which can be a Windows .exe file.
7 years ago
Jussi Pakkanen
62aabb5a8b
Missing version info added.
7 years ago
Jussi Pakkanen
e76ed84677
Documented the merge_from method.
7 years ago
Nirbheek Chauhan
e2cf999ad4
Users.md: link to the Meson Porting GNOME goal
7 years ago
Florian Zwoch
3fda1ba3ed
docs: fix generator code sample
7 years ago
Jussi Pakkanen
aa49c3cebd
Ignore encoding when scanning Fortran sources.
7 years ago
Konstantin Mochalov
6bf65d8763
Documentation: fix broken link (now in docs)
...
Was [external link on github wiki](https://github.com/mesonbuild/wrapweb/wiki ), now markdown file in docs
7 years ago
Jussi Pakkanen
30bb55df3d
Missing dots are fun.
7 years ago
Jussi Pakkanen
244ef43651
Bumped version number for new development.
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
Bruce Richardson
0a6f848aa3
add unit test case for pcap dependency object
7 years ago
Bruce Richardson
c89b8c5c4b
add support for pcap dependencies
...
Libpcap has its own pcap-config tool rather than using pkg-config. Add
support for pcap-config, based on the existing implementation of
sdl2-config that is there already.
7 years ago
YmrDtnJu
0929812eb5
Do not ignore stderr on gcc type check in get_gnu_compiler_defines.
...
As stderr may contain information the user can use to solve the problem with
the gcc installation, it should not be ignore but added to the error message.
7 years ago
Paulo Antonio Alvarez
bc30ad6dba
environment: Read VALAC from the environment and use it if set
...
The valac binary was hard coded in meson. We now check if VALAC is
defined in the environment, and if it is, use its value as the vala
compiler, if not, we proceed with the hard coded binary name.
7 years ago
Nirbheek Chauhan
b663937f8c
Clarify what an "external dependency" is
...
And add a link to the Dependencies.md page.
7 years ago
Jussi Pakkanen
e44926e2b2
Renamed test dir to remove duplicatec number. Closes #2158 .
7 years ago