Commit Graph

4206 Commits

Author SHA1 Message Date
Jussi Pakkanen aa49c3cebd Ignore encoding when scanning Fortran sources. 2017-08-17 00:20:34 +03:00
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
2017-08-15 22:10:36 +05:30
Jussi Pakkanen 30bb55df3d Missing dots are fun. 2017-08-15 02:06:53 +03:00
Jussi Pakkanen 244ef43651 Bumped version number for new development. 2017-08-15 01:54:07 +03:00
Jussi Pakkanen a629642f1e Bump numbers for new release. 2017-08-15 00:43:54 +03:00
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
2017-08-15 00:39:49 +03:00
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
2017-08-15 01:46:59 +05:30
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
2017-08-15 01:42:37 +05:30
Nirbheek Chauhan 5764a26a4c gfortran: Add coverage arguments 2017-08-15 01:38:01 +05:30
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.
2017-08-15 01:38:01 +05:30
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
2017-08-15 01:38:01 +05:30
Jussi Pakkanen 4a766147fb Printing unknown kwarg error message no longer crashes the parser. 2017-08-14 22:32:29 +03:00
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
2017-08-15 00:01:33 +05:30
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.
2017-08-15 00:01:33 +05:30
Marinus Schraal c8e61f112d gnome: use VAPIGEN from the environment if set
Allow setting the vapigen binary by passing it as an environment
variable.
2017-08-14 20:28:53 +03:00
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
2017-08-14 19:40:36 +03:00
Jussi Pakkanen c69a4aee1e Store current line number so it can be printed in warning messages. Closes #2181. 2017-08-14 18:44:39 +03:00
Jussi Pakkanen 5c8328d27f Use "meson test" in test invocations so it will not print the deprecation warning. 2017-08-14 15:54:57 +03:00
Jussi Pakkanen 55165ba504 Added documentation for pcap dependency. 2017-08-13 23:42:38 +03:00
Jussi Pakkanen 8c8e9230a5 Merge pull request #2130 from bruce-richardson/pcap_config_support
add support for pcap dependencies
2017-08-13 22:46:23 +03:00
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
2017-08-13 21:24:28 +03:00
Nirbheek Chauhan 556966003e gnome: Allow passing build_by_default: to some functions
Closes https://github.com/mesonbuild/meson/issues/2174
2017-08-13 21:17:47 +03:00
Tim-Philipp Müller 60b83a5f0a gnome: add 'ignore_headers' to permitted kwarg list for gnome.gtkdoc() 2017-08-13 21:17:04 +03:00
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.
2017-08-13 21:16:22 +03:00
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.
2017-08-13 21:13:28 +03:00
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.
2017-08-13 21:12:43 +03:00
Stefan Sonski 462813f8f1 Exclude system sources from test coverage
Exclude /usr/src/ from code coverage, this is included for e.g. gtest/gmock.
2017-08-11 00:39:59 +03:00
Nirbheek Chauhan ca4778a500 Update wrap-mode FAQ 2017-08-10 10:40:02 +00:00
Bruce Richardson 0a6f848aa3 add unit test case for pcap dependency object 2017-08-10 11:22:41 +01:00
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.
2017-08-10 10:37:07 +01:00
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.
2017-08-10 10:43:39 +03:00
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.
2017-08-09 21:47:19 +03:00
Nirbheek Chauhan b663937f8c Clarify what an "external dependency" is
And add a link to the Dependencies.md page.
2017-08-09 10:32:25 +00:00
Jussi Pakkanen e44926e2b2 Renamed test dir to remove duplicatec number. Closes #2158. 2017-08-07 23:59:38 +03:00
Jussi Pakkanen d94e06db21 Merged singleexe branch. 2017-08-06 17:00:51 +03:00
Jussi Pakkanen 06f195e9ec Merged exclude_dir branch. 2017-08-06 13:09:46 +03:00
Jussi Pakkanen a19f906258 Merge branch 'QuLogic-mpi' 2017-08-06 13:07:46 +03:00
Jussi Pakkanen b5d829e5ac Print system information to aid in debugging remote machines. 2017-08-06 13:07:34 +03:00
Elliott Sales de Andrade 5cb1d00537 Allow excluding files from `install_subdir`
The install_subdir command now accepts a new `exclude` keyword argument
that allows specified files to be excluded from the installed
subdirectory.
2017-08-06 03:58:35 -04:00
Elliott Sales de Andrade d9f01ffcea Disallow language keyword for unsupported deps.
Also, document it in the manual.
2017-08-05 16:44:39 -04:00
Jussi Pakkanen e765091c2e Updated release notes. 2017-08-05 17:00:22 +03:00
Elliott Sales de Andrade edb260b4f4 Move MPI tests into frameworks.
This prevents them being cross-compiled (which wouldn't work without MPI
cross-compilers) and disables Windows builds (will need to be fixed
later.)
2017-08-04 20:07:08 -04:00
Elliott Sales de Andrade 4cbfb9a08d Add support for MS-MPI. 2017-08-04 20:07:08 -04:00
Elliott Sales de Andrade 271601124e Filter out extra args from MPI wrappers. 2017-08-04 20:07:08 -04:00
Elliott Sales de Andrade 17b051c8b1 Add info on module include flag for Fortran compilers. 2017-08-04 20:07:08 -04:00
Elliott Sales de Andrade 4c9611c2d6 Add documentation for new MPI dependency. 2017-08-04 20:07:07 -04:00
Elliott Sales de Andrade 5a7e06a64f Add MPI dependency.
We prefer pkg-config files, though only OpenMPI supplies them.
Otherwise, check environment variables and search for wrappers and ask
them for what to do.
2017-08-04 20:06:47 -04:00
Jussi Pakkanen 58bd1e83b4 Renamed test dir to avoid duplicate numbers. 2017-08-05 00:33:03 +03:00
Jussi Pakkanen 61a05f26e3 Add option to disable implicit include directories. Closes #2139. 2017-08-05 00:26:13 +03:00
Jussi Pakkanen a800c96f99 Add option to limit maximum number of concurrent link processes. 2017-08-05 00:24:59 +03:00