Commit Graph

5171 Commits

Author SHA1 Message Date
Jussi Pakkanen 8a68dc0179
Merge pull request #3132 from mesonbuild/csc
Visual Studio C# compiler support and some fixes
2018-02-25 14:03:02 +02:00
Hylke Bons f1ce7af2d5 [skip ci] docs: Add reference table for language args parameter names (#3126) 2018-02-25 14:02:34 +02:00
Jussi Pakkanen 67f3f80362 Determining whether to run C# tests is so difficult it deserves its own function. 2018-02-25 12:15:59 +02:00
Jussi Pakkanen dd74f3fb55 Hide banner when invoking csc. 2018-02-25 02:48:39 +02:00
Jussi Pakkanen f223aa56a7 Made test program consist of two source files. 2018-02-25 01:21:35 +02:00
Jussi Pakkanen 0b6f90caf7 Added release note snippet for csc support. 2018-02-25 01:16:06 +02:00
Jussi Pakkanen 26010807db Removed test dir 4 which was doing the same thing as the other test dir number 4. 2018-02-25 01:14:01 +02:00
Jussi Pakkanen 0c3af38c3e Renamed test dir with duplicate number. 2018-02-25 01:12:42 +02:00
Jussi Pakkanen 2488ccfa1c Skip tests if deps are not found. 2018-02-25 01:10:56 +02:00
Thibault Saunier c48b9594ff Add support for Visual Studio csc c# compiler 2018-02-25 01:10:52 +02:00
Jussi Pakkanen e2a4cff76f Robustify msi creator script. 2018-02-24 19:43:29 +02:00
Dylan Baker 221c3ec105 llvm: Add configs for freebsd 6.0 and debian 7svn
Debian has 7svn in their experimental repo, and FreeBSD has 6.0.r2 in
their ports.
2018-02-22 22:24:07 +02:00
Adam C. Foltzer 3332f33649 Fix Rust compiler-private library ambiguity
When building a Rust target with Rust library dependencies, an
`--extern` argument is now specified to avoid ambiguity between the
dependency library, and any crates of the same name in `rustc`'s
private sysroot.

Includes an illustrative test case.
2018-02-22 22:16:58 +02:00
Jussi Pakkanen 2f21e1ffc0
Merge pull request #3060 from jon-turney/always-run-framework-tests
Always run all framework tests on all platforms
2018-02-22 20:29:28 +02:00
Aleksey Filippov 56c6489a6c Fix wxwidgets dependency: pass modules to wx-config
Fixes #3123
2018-02-22 20:27:19 +02:00
Peter Hutterer 6b550ae91f Allow for missing install_dir in install_data()
The documentation doesn't require it and the interpreter code works around the
possibility of it being None. The ninja backend code however fails with

File "/home/whot/code/meson/mesonbuild/backend/ninjabackend.py", line 796, in generate_data_install
    dstabs = os.path.join(subdir or None, plain_f)
File "/usr/lib64/python3.6/posixpath.py", line 78, in join
    a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType

If install_dir is missing, default to datadir/projectname
2018-02-22 20:26:16 +02:00
Niclas Moeslund Overby c572d222da Use dependency link arguments in C# targets 2018-02-22 20:24:42 +02:00
TÖRÖK Attila 8c376a7fe4 docs: Add a paragraph to the Manual about @EXTRA_ARGS@. [skip ci] 2018-02-22 04:40:06 +05:30
Jon Turney cf98f5e370 Enable searching system crossfile locations on more platforms
There's no reason not to also look in these places on Cygwin or OSX.  Don't
do this on Windows, as these paths aren't meaningful there.

Move test_cross_file_system_paths from LinuxlikeTests to AllPlatformTests.
2018-02-21 23:58:14 +02:00
Jon Turney 0097ce4c4e Always run all framework tests on all platforms
Always run all framework tests on all platforms, but allow them to be
skipped when not running under CI for linux.
2018-02-21 17:11:25 +00:00
Jon Turney 845dbfcbbc Handle a warning location which evaluates to False
As written in PR #2856, this code isn't quite right.

An ArgumentNode object can evaluate as False (if it's arguments attribute is
an empty sequence).

If that happens, we then try to hand the location kwarg down to print(),
rather than removing it, which causes an invalid keyword argument exception.

This failure can be seen e.g. when generating for gnome-twitch (See [1])

[1] https://travis-ci.org/jon-turney/meson-corpus-test/jobs/343017109
2018-02-21 19:10:56 +02:00
Martin Hostettler 1e82416a93 Generate build rpath for pkg-config dependencies consisting of a one absolute path 2018-02-21 19:10:16 +02:00
Jon Turney 7a618d2817 Fix test cases/frameworks/19 pcap for OSX 2018-02-21 17:10:06 +00:00
Jon Turney 2f6b7875d4 Fix for test cases/frameworks/17 mpi on Cygwin
Unusually, the cygwin package for openmpi installs headers into
/usr/include, rather than /usr/include/openmpi

Prevent pkg-config from suppressing that -I flag, so a gfortran INCLUDE can
find those files
2018-02-21 17:10:06 +00:00
Jon Turney 8d5c660944 Make test cases/frameworks/15 llvm tolerate no libtinfo
libtinfo only exists if ncurses is configured --with-termlib
2018-02-21 17:10:05 +00:00
Jon Turney 8a48e43fd9 In test cases/frameworks/8 flex, ensure yyparse() is prototyped
Old versions of bison (including the one shipped with macOS) do not
prototype yyparse(), just in case you are using a K&R compiler...
2018-02-21 17:10:05 +00:00
Jon Turney 6243262b67 Fix test cases/frameworks/6 gettext for windows
Allow installed file 'intlprog' to have .exe extension
2018-02-21 17:10:05 +00:00
Jon Turney 67ef738d61 Skip test cases/frameworks/20 cups if cups not found 2018-02-21 17:10:05 +00:00
Jon Turney c650bd78ca Skip test cases/frameworks/19 pcap if pcap not found 2018-02-21 17:10:05 +00:00
Jon Turney a0e98326ca Skip test cases/frameworks/16 sdl2 if sdl2 not found 2018-02-21 17:10:05 +00:00
Jon Turney 2aa7f14223 Skip test cases/frameworks/15 llvm if llvm not found 2018-02-21 17:10:04 +00:00
Jon Turney d78f88160a Skip test cases/frameworks/13 yelp if itstool isn't found 2018-02-21 17:10:04 +00:00
Jon Turney d5b8f18f17 Skip test cases/frameworks/12 multiple gir if g-ir-scanner not found 2018-02-21 17:10:04 +00:00
Jon Turney 1d36df3d40 Skip test cases/frameworks/11 gir subproject if prereqs not found
Skip test cases/frameworks/11 gir subproject if g-ir-scanner or python3-gi
not found
2018-02-21 17:10:04 +00:00
Jon Turney 90cbe48968 Skip test cases/frameworks/10 gtk-doc if gtkdoc not found 2018-02-21 17:10:04 +00:00
Jon Turney b5edf78204 Skip test cases/frameworks/8 flex if flex or bison not found 2018-02-21 17:10:04 +00:00
Jon Turney 68a5b8d9fc Skip test cases/frameworks/7 gnome if prereqs not found
Skip test cases/frameworks/7 gnome if glib or python3-gi not found
2018-02-21 17:10:04 +00:00
Jon Turney 5ff84e4f50 Skip test cases/frameworks/6 gettext if prereqs not found
Skip test cases/frameworks/6 gettext if gettext or libintl not found
2018-02-21 17:10:04 +00:00
Jon Turney 7d974cd962 Skip test cases/frameworks/4 qt if Qt5 not found 2018-02-21 17:10:04 +00:00
Jon Turney e4b4911410 Skip test cases/frameworks/1 boost if boost not found 2018-02-21 17:10:04 +00:00
Jussi Pakkanen d0f2f0ad3b Newlines in single line strings should only be a warning for now. 2018-02-21 19:09:35 +02:00
Iñigo Martínez 5dc32b4af1 Users.md: Add GVfs
Add GVfs to the meson users list
2018-02-21 19:06:55 +02:00
Felipe Borges 926d6ca7e8 Users.md: Add GNOME Boxes and GNOME Usage
[skip ci]
2018-02-21 19:06:21 +02:00
Aleksey Filippov ffa5293901 Split boost dependency out into separate file
Boost dependency is very complex and it is easier to manage it
in a separate file.
2018-02-21 19:05:43 +02:00
Nirbheek Chauhan 74ae719033 pkgconfig deps: Add all -L args when using -l args
Also don't resolve -lfoo args only when libpaths are defined.
cc.find_library() also searches in the toolchain directories, and the
static library might be there.
2018-02-20 23:46:47 +02:00
Matthias Klumpp 7e0db58f81 d: gdc: Implement proper dependency gen support
Older versions of GDC had broken support for the -MQ flag (resulting in
a compiler error). New versions of GDC have this issue fixed (some older
versions received a backport). Starting with GCC 7.1 we can assume
dependency generation to always work reliably.
2018-02-20 19:35:28 +02:00
Nirbheek Chauhan 8842839bb4 pkgconfig deps: Warn when a static library isn't found
A hard error makes this feature useless in most cases since a static
library usually won't be found for every library, particularly system
libraries like -lm. Instead, warn so the user can provide the static
library if they wish.

This feature will be expanded and made more extensible and more usable
in the future.

Closes https://github.com/mesonbuild/meson/issues/2785
2018-02-20 19:26:51 +02:00
Nirbheek Chauhan 0c1c387703 gnome: Fix depend_files listing for compile_resources
Also add a unit test that will test all codepaths for old Glib tools
versions.

Closes https://github.com/mesonbuild/meson/issues/2860
2018-02-20 19:26:16 +02:00
Aleksey Filippov 79865474c7 Add references to CI and recommendation to disable them for doc only changes [skip ci] 2018-02-20 21:21:18 +05:30
Nirbheek Chauhan a374eb08e9
Users.md: lightdm-webkit2-greeter no longer uses meson [skip ci] 2018-02-20 21:07:38 +05:30