Dylan Baker
eac2d5eec5
modules/python: Allow trying a macos framework as well other methods
3 years ago
Dylan Baker
d6e606166e
modules/python: make some internal helpers protected
3 years ago
Dylan Baker
20399a3e04
modules/pkgconfig: remove handling of .pcdep
...
Nothing uses this anymore, so don't check for it.
3 years ago
Dylan Baker
4d67dd19e5
modules/python: use factory for dependency
...
This removes the odd 'pkgdep' attribute thing, and makes it behave more
like a proper dependency
3 years ago
Dylan Baker
a881e849b5
modules/python: simplify a number of interfaces
...
Including not calling back into `Interpreter.func_*`, which is not a
good idea both from a type saftey and perforamance point of view.
Instead there's now a shared _impl method
3 years ago
Dylan Baker
9eec2a131b
modules/python: use typed_pos_args
...
And note that the way that find_installation works is completely broken
in regards to machine files
3 years ago
Dylan Baker
1f7ab2f010
modules/python: Add type annotations
...
There's still a number of things that don't properly type check, that's
expected though as the input is often unvalidated and assumed good.
3 years ago
Dylan Baker
3b3c580817
modules/python: sort imports
3 years ago
Pamplemousse
762c073500
Clang: Apply `-O0`
...
Fix #8986
3 years ago
Jussi Pakkanen
f6cb717bba
Update version number for rc2.
3 years ago
Daniel Mensinger
ca6683095d
fix: Fix recursive _unholder permissive kwarg ( fixes #8977 )
3 years ago
Dylan Baker
f459c0e918
interpreter: remove stringArgs uses
...
It's only used now on a files that always raises an exception anyway,
might as well just not do any checking and reduces the uses of that
function
3 years ago
Dylan Baker
52c68ca6fe
interpreter: use typed_pos_args for files
3 years ago
Dylan Baker
011f13bcdc
interpreter: use typed_pos_args for add_langauges
3 years ago
Dylan Baker
011b58d75f
interpreter: use typed_pos_args for project
3 years ago
Dylan Baker
015e44014a
interpreter: use typed_pos_args for subdir
3 years ago
Dylan Baker
3f6afa2693
interpreter: use typed_pos_args for assert
3 years ago
Dylan Baker
2486938011
interpreter: use typed_pos_args for subproject
3 years ago
Dylan Baker
9f07a1ad41
interpreter: use typed_pos_args for get_option
3 years ago
Dylan Baker
6f6db0f2e3
interpreter: use typed_pos_args configuration_data
3 years ago
Dylan Baker
982973f303
interpreter: use typed_pos_args for alias_target
3 years ago
Dylan Baker
09d7da19c1
interpreter: use typed_kwargs for include_directories
3 years ago
Dylan Baker
3135b130b8
interpreter: use typed_pos_args for include_directories
3 years ago
Dylan Baker
5aed9dd939
interpreter: use typed_pos_args for add_test_setup
3 years ago
Dylan Baker
e71a6544c5
interpreter: use typed_pos_args for join_paths
3 years ago
Dylan Baker
9ecd578167
interpreter: use typed_pos_args for set_variable
3 years ago
Dylan Baker
20c5dfe869
interpreter: use typed_pos_args for get_variable
3 years ago
Dylan Baker
4d05f9d64b
interpreter: use typed_pos_args for is_variable
3 years ago
Dylan Baker
30a9bb60ee
interpreter: use typed_pos_args for is_disabler
3 years ago
Paolo Bonzini
5215f4fa98
cleanup self.options.wd
...
It is never None and always an absolute path
3 years ago
Paolo Bonzini
b44a51d0fd
resolve symlinks passed to -C
...
"meson setup" is resolving symlinks for the build directory in
validate_core_dirs. For consistency with it, do the same when
the build directory is passed via -C to devenv, dist, init, install
and test.
This ensures for example that the path to test dependencies is
computed correctly in "meson test".
Fixes : #8765
3 years ago
Connor Abbott
62702005eb
windows: Support wrc resource compiler
...
It has a similar interface to windres, but it produces ELF instead of
COFF binaries. It uses its own preprocessor which doesn't support
creating depfiles, but we can convince it to use the system preprocessor
instead and pass those arguments using the --preprocessor option.
Together with some hacks to override the shared library/executable
suffix and some wine patches [1] this is enough to compile dxvk when
ripping out the hand-rolled rc support.
[1] https://www.winehq.org/pipermail/wine-devel/2021-July/190100.html
https://www.winehq.org/pipermail/wine-devel/2021-July/190098.html
https://www.winehq.org/pipermail/wine-devel/2021-July/190099.html
https://www.winehq.org/pipermail/wine-devel/2021-July/190101.html
3 years ago
Andrea Pappacoda
81d9acab87
Fix unsupported linker error message
...
An `f` was dropped in bd6f46e723
3 years ago
Jussi Pakkanen
3a241496c8
Bump version number for rc1.
3 years ago
Daniel Mensinger
8e1c599c10
cmake: Improved error message for using dependency for executables
...
fixes #8893
3 years ago
Eli Schwartz
bd6f46e723
condense lines
3 years ago
Eli Schwartz
b4b488f33c
simplify mesonlib imports for the sake of line lengths
3 years ago
Eli Schwartz
dd31891c1f
more f-strings too complex to be caught by pyupgrade
3 years ago
Eli Schwartz
566efba216
fix typo in log message
3 years ago
Eli Schwartz
c4f5f6364e
pyupgrade
3 years ago
Eli Schwartz
88bd4e6e10
use modern set syntax
...
In one place, we reintroduced old set syntax after having initially
cleaned it up everywhere via commit 4340bf34fa
3 years ago
kira78
4f49fa8315
dependencies: Deterministic LLVM compile and link arg ordering ( #8959 )
...
* dependencies: Deterministic LLVM compile and link arg ordering
In LLVMDependencyConfigTool, the members compile_args and required_modules are
either converted to or stored as sets, which do not have a stable ordering. This
results in nondeterministic builds, particularly with required_modules causing
the order in which the LLVM libraries are linked in to the output binaries to
change across independent builds. As any guarantee about ordering for
compile_args is lost by being converted from a list to a set and back, and the
modules added to required_modules was even already sorted once, sort both when
converting them to lists.
* Use mesonlib.OrderedSet instead of sorting the sets.
Co-authored-by: Kaelyn Takata <kaelyn.alexi@protonmail.com>
3 years ago
Daniel Mensinger
0d0f2cdafd
cmake: Only use the `cm_` prefix when it is actually required ( fixes #8955 )
3 years ago
Andrea Pappacoda
d0101cbfb7
dist: only exclude actual git files
...
Instead of excluding all files starting with .git, meson dist now only excludes files really used by git
3 years ago
Tristan Partin
f21685a833
Delete redirected wrap files in subprojects purge
...
We need to store the original filename as well as whether the wrap was
redirected in order to properly purge the redirected wrap.
3 years ago
Tristan Partin
6f3f43bb2d
Flatten test suite value
...
This behavior is more inline with the rest of Meson
3 years ago
Dylan Baker
210065ffe8
backends/ninja: only pass project specific arguments to scan-build
...
Currently all arguments are being passed to scan-build as part of the
refactoring of how Meson internally handles arguments, but that's wrong,
only project specific arguments are supposed to be passed.
Fixes : #8818
3 years ago
Daniel Mensinger
971a0b1775
fix: get_variable default variables are not ObjectHolders ( fixes #8936 )
3 years ago
Olexa Bilaniuk
5bb93490c4
Add minimum NVIDIA driver version entry in table for newly-released CUDA Toolkit 11.4.0.
...
We skip 11.3.1 because it shares the same version requirements as 11.3.0.
3 years ago
Dylan Baker
bc4201a7f1
interpreter: add required and disabled to import
...
This is useful both from the perspective of optional functionality that
requires a module, and also as I continue to progress with Meson++,
which will probably not implement all of the modules that Meson itself
does.
3 years ago