Commit Graph

4011 Commits

Author SHA1 Message Date
Elliott Sales de Andrade 5d1e35fa01 Print real error if mesontest used on invalid directory. 2017-07-15 10:04:55 +02:00
Gabríel Arthúr Pétursson 39c7b0492c Allow both address- and undefined behavior sanitizers at the same time 2017-07-15 09:59:09 +02:00
Christian González d9939f0064 typo 2017-07-14 18:51:30 +02:00
Marty Plummer cb05b2aab0 docs: fixed meson syntax for Generating-sources.md
Signed-off-by: Marty Plummer <ntzrmtthihu777@gmail.com>
2017-07-13 16:31:24 +02:00
Laurent Carlier 0283a2fb41 pkgconfig: avoid appending slash at Cflags
otherwise it can break some compilations, see https://bugs.archlinux.org/task/54763
2017-07-13 16:28:32 +02:00
Amit D 138a8b221b contributing.txt: Remove a sentence that refers to authors.txt
The authors.txt file was removed a while ago (9141cd78aa).
2017-07-04 16:55:45 -04:00
Amit D 166728067d Fix typo in release notes for 0.41
'is is' -> 'is'

Fixes #2027
2017-07-04 16:55:23 -04:00
Gabríel Arthúr Pétursson d5e47ade80 doc: Mention that C/C++ language versions can be set per-target 2017-07-04 16:54:59 -04:00
Jussi Pakkanen 917e12e4e7 Merge pull request #2017 from mesonbuild/fix2012
Do not pickle interpreter objects by accident
2017-07-02 16:33:49 -04:00
Jussi Pakkanen 304841d1c7 Update instructions to disable pch. 2017-07-02 19:22:50 +03:00
Hemmo Nieminen 3a59379ec1 Update args_frozen attribute check.
Attribute args_frozen doesn't exist anymore. Check against
project_args_frozen/global_args_frozen instead.
2017-07-02 10:52:24 -04:00
Jehan 2f691410fc Improve "Passed invalid keyword argument" warning.
I got this warning on a build:
> WARNING: Passed invalid keyword argument preset. This will become a hard error in the future.
I had to grep in meson code to understand that "preset" was the name of
the invalid argument. This is not obvious at all depending on the
argument name (here it looked like it was about argument presets).
Let's make it clearer by putting it in quotes.
2017-07-02 10:08:08 -04:00
Jehan d80787ae28 Output an appropriate warning when a cross info file does not exist.
If making a typo, it used to output:
>  Cross info file must have either host or a target machine.
This was not useful at all and looked like there could be a file format
error or some other issue with the content. Let's have an appropriate
error:
> File not found: /some/path
2017-07-02 10:08:08 -04:00
Jussi Pakkanen f24a4e27ad Removed some dead code. Closes #1949. 2017-07-02 10:07:17 -04:00
Adam C. Foltzer af7c8ab449 add changelog for Rust crate-type support 2017-07-02 10:06:58 -04:00
Jussi Pakkanen f5b95dfa06 Renamed test to remove duplicate test number. 2017-07-02 16:56:24 +03:00
Jussi Pakkanen 9c02e57f88 Qapla' 2017-07-02 16:55:12 +03:00
Jussi Pakkanen ad3dc937f1 Fix remaining Interpreter object leaks. 2017-07-01 02:10:02 +03:00
Jussi Pakkanen ecde592b86 Fix custom target sources 2017-07-01 01:13:45 +03:00
Jussi Pakkanen c11a4cb952 Make Interpreter object unpicklable as it was being pickled by accident in copies of kwargs. 2017-07-01 00:11:27 +03:00
Elliott Sales de Andrade c0ab6e9d5b Don't rebuild tests during listing.
`mesontest --list` doesn't need to rebuild tests.
2017-06-30 11:18:26 -04:00
Elliott Sales de Andrade 241790f72d Fix typo in generate_gir keyword name. 2017-06-30 11:16:49 -04:00
Guillaume Poirier-Morency 1eec145586 vala: Add a shared module testcase using 'GLib.TypeModule' 2017-06-30 11:16:06 -04:00
Jussi Pakkanen c3f59d781d Merge pull request #1926 from trhd/libbug
Fix a missing path issue causing Python traceback.
2017-06-29 11:05:44 -04:00
Goncalo Carvalho bcb2556c69 add project/global args and include_dirs (useful for module maps) to swift targets 2017-06-29 11:04:57 -04:00
Bruce Richardson f12ece4547 pkgconfig: add support for extra_cflags
Allow the user to pass in arbitrary cflags for putting into the generated
pkgconfig file.
2017-06-29 11:03:20 -04:00
Aaron Plattner ba3871985a add_{project,global}_link_arguments require a 'language' argument
Commit 325a231a added stricter keyword argument checking, but didn't enable
keyword arguments for add_projects_link_arguments() and
add_global_link_arguments(). This makes them fail with this error:

 Meson encountered an error in file meson.build, line 19, column 0:
 Function does not take keyword arguments.

However, the language argument is required. Removing it produces this error
instead:

 Meson encountered an error in file meson.build, line 19, column 0:
 Missing language definition in add_project_link_arguments

Fix this by adding 'language' as a required keyword argument. Also add calls to
these in the "146 C and CPP link" test case.
2017-06-29 11:02:44 -04:00
Hemmo Nieminen 1d7c7a7ea6 Add a test case for a "library at project root" use case. 2017-06-29 13:16:38 +03:00
Hemmo Nieminen ea79e94964 Fix a missing path issue causing Python traceback.
A path was missing from a call to os.path.relpath when handling rpaths.
Fix this by assuming empty target directory means build root.
2017-06-29 13:16:38 +03:00
Alistair Thomas 7ab774dee5 Add mesonbuild.compilers to packages in setup.py 2017-06-27 14:12:50 -04:00
Jussi Pakkanen dfb0414d9c Merged Genie support. 2017-06-27 19:01:00 +03:00
Philippe Payant e4daad369a Select release or debug libraries for Qt, based on buildtype. 2017-06-27 11:56:21 -04:00
Philippe Payant 85eddf4eb2 Library names for Qt4 was incorrect. 2017-06-27 11:56:21 -04:00
Wade Berrier ad1b487285 dependency: boost: only consult environment at initial stage
... not when getting compiler and link arguments

Would be nice to have some tests, but that requires boost in a
non-standard location.
2017-06-27 11:33:10 -04:00
Jussi Pakkanen 4a4322064e Merge pull request #1986 from phako/master
Skip handling non-available dependencies
2017-06-27 04:13:25 -04:00
Jussi Pakkanen e630d899da Merge pull request #2004 from valum-framework/add-display-language
More usages of 'get_display_language' and a fix for C#
2017-06-27 04:12:48 -04:00
Jussi Pakkanen 80ebc916f7 Merge pull request #2001 from mesonbuild/kwcheck
Decorator to check for unknown keyword arguments
2017-06-27 04:12:17 -04:00
Jussi Pakkanen ee8fcd5f67 Merge pull request #1997 from mesonbuild/fixconditional
Fix conditional continuation bug
2017-06-27 04:12:00 -04:00
Guillaume Poirier-Morency bbddf51a54 Use 'C sharp' instead of 'C#'
The '#' is reserved for Ninja comments and cannot be escaped.
2017-06-26 20:03:52 -04:00
Guillaume Poirier-Morency 5b58ff2783 compilers: Use 'get_display_language' for language-related exceptions 2017-06-26 20:03:52 -04:00
Jussi Pakkanen 3262be23dc Fixed issues raised in review. 2017-06-26 23:29:42 +03:00
Nirbheek Chauhan 5dab5f1600 environment: Fix exception when no defines were found
Lists are not hashable.

Closes https://github.com/mesonbuild/meson/issues/1989
2017-06-26 14:16:13 -04:00
Guillaume Poirier-Morency fab5634916 Add 'Compiler.get_display_language'
Use this when we print language-related information to the console and
via the Ninja backend.
2017-06-26 14:15:44 -04:00
Jussi Pakkanen 3dca1c99a6 Updated release notes. 2017-06-26 21:10:27 +03:00
Jussi Pakkanen 4a37baf3c5 Fixed the remaining modules. 2017-06-26 21:10:27 +03:00
Jussi Pakkanen 80d665e8de Converted some modules. 2017-06-26 21:10:27 +03:00
Jussi Pakkanen 7f482824bb Add kwarg checker in module code. 2017-06-26 21:10:27 +03:00
Jussi Pakkanen 50e75baa91 Removed in_builddir from public usage as it is an internal feature that was visible by accident. 2017-06-26 21:10:27 +03:00
Jussi Pakkanen fe74c54079 Alphabetization. 2017-06-26 21:10:27 +03:00
Jussi Pakkanen 97b7a7b10e Moved func_ methods from base class to Interpreter. 2017-06-26 21:10:27 +03:00