Age | Commit message (Collapse) | Author | Files | Lines |
|
Closes ##2853.
|
|
|
|
Add strip_directory keyword for install_subdir() function
|
|
|
|
|
|
If elide_directory=true install_subdir() installs directory contents
instead of directory itself, eliding name of the source directory.
Closes #2869.
|
|
Add cross-compilation support for `rustc`
|
|
|
|
This Fixes #2941.
|
|
This patch is largely modeled on the relatively-straightforward code
for Fortran cross-compilation, so there might be some intricacies
missing.
|
|
This allows for much easier cross compiler configuration for tools like
LLVM. This patch does honor the 'native' keyword, and falls back to
searching PATH if the binary name is not specified.
I'd be fine with either removing the fallback behavior, or marking it as
deprecated and removing it later.
Fixes #2921
|
|
|
|
[windows] make compile_resources use custom targets instead of generators
|
|
Generator outputs can have path segments
|
|
|
|
|
|
Add functionality to promote nested dependencies to top level.
|
|
|
|
|
|
When set, NDEBUG will be automatically defined for for release builds but
not for other build types.
|
|
|
|
Grammar is still a bit fractured, but I'm not entirely sure what it's trying to say.
|
|
Created disabler object type
|
|
|
|
by leaving out the choices keyword.
|
|
Add an array type to user options
|
|
One thing that makes cross compiling with meson a pain is the need for
cross files. The problem is not with cross files themselves (they're
actually rather brilliant in that they allow for a much greater deal of
flexibility than autotools hardcoded paths approach) but that each user
needs to reimplement them themselves, when for most people what they
really want is a cross file that could be provided by their distro, all
they really want is the correct toolchain.
This patch is the first stop to making it easier for distros to ship
their own cross files (and for users to put their's somewhere safe so
they don't get `git clean`ed. It allows the cross files (on Linux and
*BSD) to be stored in home and system paths (~/.config/meson/cross,
/usr/share/meson/cross, and /usr/local/share/meson/cross), and to be
loaded by simply by specificying --cross-file.
With this patch meson will check the locations its always checked first,
(is cross file absolute, or is it relative to $PWD), then will check
~/.config/meson/cross, /usr/local/share/meson/cross,
/usr/share/meson/cross, (or $XDG_CONFIG_PATH and $XDG_DATA_DIRS) for the
files, raising an exception if it cannot find the specified cross file.
Fixes #2283
|
|
This exposes the already existing UserStringArrayOption class through
the meson_options.txt. The intention is to provide a way for projects to
take list/array type arguments and validate that all of the elements in
that array are valid without using complex looping constructrs.
|
|
Add method to get values from config tool based dependency
|
|
|
|
|
|
|
|
config data: add .get_unquoted() convenience method to get quoted string unquoted
|
|
Make sysconfdir, localstatedir and sharedstatedir defaults depend on prefix
|
|
LLVM: Fix dynamic vs statically linking.
|
|
|
|
Rather than requiring a bit of boilerplate in every meson.build, which is
only documented in a comment in mesoncore.py, use sensible defaults for
sysconfdir, localstatedir and sharedstatedir depending on the prefix.
Fixes #1637
v2:
For clarity, give get_builtin_option_default() a noneIfSuppress argument,
rather than overloading prefix '' and None with special meanings.
|
|
This commit adds support for an additional `moc_extra_arguments` keyword.
It becomes especially handy, when `moc`-ed sources conditionally provide
`slots`, depending on compile time macros (i.e. defines).
|
|
|
|
|
|
Better support for prebuilt shared libs
|
|
|
|
introduce svn wrap support
|
|
|
|
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
|
|
|
|
|
|
|
|
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)
|