| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Check if the keyword arguments given to dependency are permitted, as is
done with other functions already.
The list of permitted keyword arguments is taken from the documentation.
|
| |\
| |
| | |
config data: add .get_unquoted() convenience method to get quoted string unquoted
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Mesa has 4 build systems currently, set our version in a file called
VERSION, and read that in to each build system to simplify the release
process. For meson this is accomplished by using run_command within the
project() function declaration itself, and with meson <= 0.43.0 this
works fine. Commit 1b0048a7022a89f461cf4d01e7cdbf995bab70f5 makes
scripts that are run through run_command a rebuild dependency, but the
attribute used to store that information is set after the project()
command is processed. This breaks mesa.
The solution is to set that list before calling parse_project.
Fixes #2597
|
| | | |
|
| | | |
|
| |\ \
| | |
| | | |
Evaluate subproject directory name correctly
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Currently, run_target does not get namespaced for each subproject,
unlike executable and others. This means that two subprojects sharing
the same run_target name cause meson to crash.
Fix this by moving the subproject namespacing logic from the BuildTarget
class to the Target class.
|
| |/ / |
|
| | |
| |
| |
| | |
dependencies.
|
| | |
| |
| |
| | |
faith.
|
| | |
| |
| |
| | |
Fixes #2306
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
subproject using wrap-file is broken since commit (68bd64c Prevent
projects from directly grabbing files from other subprojects. )
subproject with wrap-file usually have version number after name
- **sproj_name** is `zlib-1.2.8` according to `directory = zlib-1.2.8`
of zlib.wrap
- but **self.subproject** `zlib`
|
| | | |
|
| | |
| |
| |
| |
| |
| | |
They now flatten by default and unhold objects if required
Includes unit tests.
|
| | |
| |
| |
| | |
Sets the held_object property and also implements a readable repr()
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This allows a CustomTarget to be indexed, and the resulting indexed
value (a CustomTargetIndex type), to be used as a source in other
targets. This will confer a dependency on the original target, but only
inserts the source file returning by index the original target's
outputs. This can allow a CustomTarget that creates both a header and a
code file to have it's outputs split, for example.
Fixes #1470
|
| |\ \
| | |
| | | |
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
|
| |\ \ \
| | | |
| | | | |
Fix pcap dependency, str.strip() now takes an argument, add cc.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.
|
| |\ \ \
| | | |
| | | | |
Bring into compliance with flake8
|
| | | | |
| | | |
| | | |
| | | |
| | | | |
This only touches newlines, spaces, and (occaisionally) commas. Anything
else is left for another commit.
|
| |\ \ \ \
| |/ / /
|/| | | |
Consider compilers used in static_library parents
|
| | | |/
| |/|
| | |
| | | |
Currently this raises an exception because exename is undefined.
|
| |/ / |
|
| | |
| |
| |
| | |
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
|
| |\ \
| | |
| | | |
Fix get_option() for base options on reconfigure.
|
| | |/ |
|
| | | |
|
| | | |
|
| | | |
|
| |/
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
| |
Caused by #2236. Also add a test for this.
|
| |\
| |
| | |
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'
|
| | | |
|
| |/
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
| |
|
|
| |
Avoiding warning about it when it is a well known one.
|
| |
|
|
|
|
| |
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.
|
| |
|
|
| |
which can be a Windows .exe file.
|
| |\
| |
| | |
Fix ninja clean in some edge cases + a bonus windows fix
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |/ |
|
| |
|
|
|
|
| |
The install_subdir command now accepts a new `exclude` keyword argument
that allows specified files to be excluded from the installed
subdirectory.
|
| | |
|