Nirbheek Chauhan
87327d414a
configure_file: Fix infinite loop in some cases
...
We were adding built files to the list of source files to check for
regen. We were also not adding sources files to regen when `command:`
was used.
Fixes #1865
8 years ago
Luke Shumaker
bb25260f00
flake8: Perform suggested whitespace/formatting changes
...
This only touches newlines, spaces, and (occaisionally) commas. Anything
else is left for another commit.
8 years ago
Thibault Saunier
96e24a50f9
Add cs_args as known args for csharp
8 years ago
Dylan Baker
59a90309ab
Fix error message for find_program if program cannot be found
...
Currently this raises an exception because exename is undefined.
8 years ago
Nirbheek Chauhan
59473e9ed7
Add a new compiler method: get_return_value()
...
This method accepts a single function that takes no arguments and
returns a single value which can be a value that can be cast to
a 64-bit signed integer, or a string, and returns that value.
Mostly useful for running foolib_version() functions that return the
currently-available version of libraries.
8 years ago
Alexis Jeandet
e553d0807b
Last round with listify function refactoring.
...
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
8 years ago
Matthias Klumpp
61db415d7f
d: Make feature names less verbose
8 years ago
Hristo Venev
56c566a38e
Fix get_option() for base options on reconfigure.
8 years ago
Martin Blanchard
71deffab18
get-unquoted: Fix indentation and remove useless arithmetic
8 years ago
Martin Blanchard
fa1fee5686
get-unquoted: Implement a get_unquoted() method for ConfigurationData
8 years ago
Matthias Klumpp
75fdf413e4
Drop feature_args call in favor of letting pkgconfig do this directly
8 years ago
Matthias Klumpp
6cd3f066b4
d: Implement specific properties for D features
8 years ago
Matthias Klumpp
d83c289442
d: Add easy way to use D-specific features
...
Of course D compilers have different flags to set some important
D-specific settings. This adds a simple method to change these flags in
a compiler-agnostic way in Meson.
This replaces the previous `unittest_args` method with a more generic
variant.
8 years ago
Nirbheek Chauhan
aff981a6b0
Fix regression in test definitions
...
Caused by #2236 . Also add a test for this.
8 years ago
Jussi Pakkanen
72a6683c6f
Permit overriding find_program from the cross file.
8 years ago
Hemmo Nieminen
fa57295623
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'
8 years ago
Daniel Stone
e1ffae0580
Add Compiler.get_supported_arguments()
...
Add a helper for the common pattern of:
args_to_use = []
foreach arg : candidate_args
if cc.has_argument(arg)
args_to_use += arg
endif
endforeach
Replaced with:
args_to_use = cc.get_supported_arguments(candidate_args)
8 years ago
Thibault Saunier
596c7106f7
interpreter: Make cs_args a known argument
...
Avoiding warning about it when it is a well known one.
8 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.
8 years ago
Jussi Pakkanen
50fb7d37ab
Make all functionality invokable via the main Meson binary,
...
which can be a Windows .exe file.
8 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
8 years ago
Jussi Pakkanen
4a766147fb
Printing unknown kwarg error message no longer crashes the parser.
8 years ago
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.
8 years ago
Jussi Pakkanen
61a05f26e3
Add option to disable implicit include directories. Closes #2139 .
8 years ago
Jussi Pakkanen
d335a84b9e
A few more lgtm fixes.
8 years ago
Patrick Griffis
ece4ce8872
Fix test() accepting configure files for exe
8 years ago
Jussi Pakkanen
a572ebd2a1
Convert man inputs to Files so you can install_man the output of configure_file. Closes #2135 .
8 years ago
Christoph Reiter
ceea746222
configure_file: warn in case a variable to subsitute is not present in the passed configuration. Fixes #2090
8 years ago
Jussi Pakkanen
2269b7f60b
Add build_rpath as new property allowing people to specify rpath entries that are used in the build tree but will be removed on install.
8 years ago
Jussi Pakkanen
fc23d9d0f2
Turned SIMD into an unstable module.
8 years ago
Jussi Pakkanen
f78cf53141
Created merge_from method for ConfigurationData.
8 years ago
Jussi Pakkanen
fff3ded297
Removed unreachable code as == never throws.
8 years ago
Jussi Pakkanen
b2a90f1838
Removed unnecessary pass statements.
8 years ago
Jussi Pakkanen
76d6fab8ae
Simplified control flow.
8 years ago
Gabríel Arthúr Pétursson
fd653d070d
Make base options accessible via get_option()
8 years ago
Jussi Pakkanen
ad3dc937f1
Fix remaining Interpreter object leaks.
8 years ago
Jussi Pakkanen
c11a4cb952
Make Interpreter object unpicklable as it was being pickled by accident in copies of kwargs.
8 years ago
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.
8 years ago
Jussi Pakkanen
3262be23dc
Fixed issues raised in review.
8 years ago
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.
8 years ago
Jussi Pakkanen
50e75baa91
Removed in_builddir from public usage as it is an internal feature that was visible by accident.
8 years ago
Jussi Pakkanen
fe74c54079
Alphabetization.
8 years ago
Jussi Pakkanen
97b7a7b10e
Moved func_ methods from base class to Interpreter.
8 years ago
Jussi Pakkanen
325a231abe
Add a few more.
8 years ago
Jussi Pakkanen
f7da8dc84d
A few more.
8 years ago
Jussi Pakkanen
e08d735105
Added a few more kwarg checks to functions.
8 years ago
Jussi Pakkanen
0eb41a9a08
Checks for all build target functions.
8 years ago
Jussi Pakkanen
92493d4e5e
Added kwargs for executable().
8 years ago
Jussi Pakkanen
46e61971ce
Decorator to check for permitted kwargs.
8 years ago
Nirbheek Chauhan
d38f3deaed
gnome: Work around GNU ld bug with -rpath,$ORIGIN
...
g-ir-scanner doesn't understand -rpath, so we use -L instead which
has the same effect.
Closes https://github.com/mesonbuild/meson/issues/1911
8 years ago