Xavier Claessens
7592003484
Rust: Prevent linking Rust ABI with C library/executable
1 year ago
Xavier Claessens
bdf1f3c0e2
Rust: Remove unit test already covered in "rust/4 polyglot"
1 year ago
Xavier Claessens
10dcd87d00
Rust: Replace rust_crate_type with rust_abi
...
Meson already knows if it's a shared or static library, user only need
to specify the ABI (Rust or C).
1 year ago
Dylan Baker
8ccdb88137
Rust: Add a rust.proc_macro() method
1 year ago
Xavier Claessens
dd22546bdd
interpreter: Use common definition for sources type
1 year ago
Xavier Claessens
94f330fd9d
interpreter: Allow regex matching in expect_error()
1 year ago
Xavier Claessens
8cb0217c4e
pkgconfig: Use ImmutableListProtocol[str] for cached lists
...
This ensures that we are not modifying lists from lru cache.
1 year ago
Xavier Claessens
f1c35b561f
pkgconfig: Set PKG_CONFIG in env for devenv and g-ir-scanner
1 year ago
Xavier Claessens
6a56f6d98f
pkgconfig: Deprecate "pkgconfig" in favor of "pkg-config" in [binaries]
1 year ago
Xavier Claessens
0eae4e0936
pkgconfig: Restore logging of pkg-config version
...
While at it, make more methods private by storing the version found on
the instance. That avoids having to call check_pkgconfig() as static
method from unittests.
1 year ago
Xavier Claessens
2a6245e6b3
pkgconfig: Use lru_cache instead of caching command lines
1 year ago
Xavier Claessens
dacd11a624
pkgconfig: Cache the implementation instance
1 year ago
Xavier Claessens
dec85c41a9
Remove get_configtool_variable()
...
This also makes it more consistent with get_pkgconfig_variable() which
always return empty value instead of failing when the variable does not
exist. Linking that to self.required makes no sense and was never
documented any way.
1 year ago
Xavier Claessens
30d7f506c7
Remove get_pkgconfig_variable()
...
Make sure that pkgconfig_define is a pair of strings and not a list with
more than 2 strings.
1 year ago
yyyyyiiiiii
e0c4cffd70
fix links
...
Wayland, Weston, wlroots migrated to gitlab.freedesktop.org
1 year ago
Eberhard Beilharz
5d8e2f301e
Update link to lcov
...
lcov moved from sourceforge to github, so this change updates the link.
1 year ago
Nomura
2b4002e60f
Metrowerks assembler should not inherit opt args from mixin
...
The Metrowerks assembler does not support optimization flags.
However, it received the same opt args as the Metrowerks C and C++
compilers, because it inherits from the 'MetrowerksCompiler' mixin.
This broke builds with opt level higher than 0 that used the Metrowerks
Assembler, as the latter received unsupported args. This is now fixed.
1 year ago
Nomura
319b1505e8
Metrowerks: set optlevel 3 to max optimization args
...
According to the Meson documentation, optimization level 3 should
set the highest possible optimization for the compiler in use.
In Metrowerks, this is 'O4,p'. However, Meson's Metrowerks
implementation mapped opt level 3 to '-O3'. This has been fixed.
1 year ago
Nomura
e7ed45396d
Metrowerks: remove duplicate optimization args
...
The args were in both buildtype and optimization. This broke buildtypes other
than plain or custom unless manually setting the optimization level to
0, because Metrowerks chokes on duplicate arguments.
1 year ago
Albert Tang
665275a785
xcode: Check for apple framework deps by name
...
If `dependencies.platform.AppleFrameworks` has not been imported by
this time, Meson crashes. Better to check by name instead.
1 year ago
L. E. Segovia
ca60f71b2e
reference tables: Document how to set compiler paths with spaces in environment variables
...
See #11128
1 year ago
L. E. Segovia
878d950887
environment, env2mfile: Don't shell split paths if they point to a valid executable
...
Fixes #11128
1 year ago
Christoph Reiter
1306d15616
Revert "tests: skip a test that fails with new Python 3.11 from MSYS2"
...
This reverts commit 68dce66bf9
.
The upstream issues https://github.com/msys2-contrib/cpython-mingw/issues/141
has been fixed now.
1 year ago
Xavier Claessens
718c86a7d5
Wrap: Use git instead of patch by default
...
This solves problems with Strawberry Perl providing patch.exe on Windows
with an unconsistent line ending support.
Fixes : #12092
1 year ago
Nomura
22da2c3c2d
Use @DIRNAME@ in Metrowerks cross files to point to linker script
1 year ago
Arsen Arsenović
0af126fec7
install_{data,headers,subdir}: implement follow_symlinks
...
This permits users who rely on following symlinks to stay on the old
default of following them.
1 year ago
Arsen Arsenović
56ef698426
run_project_tests: support checking for symlinks
1 year ago
Charles Brunet
ef5931f12d
fix undefined StringNode from previous commit
1 year ago
Charles Brunet
923b95f3d1
Fix assertion raised with invalid option name
...
When option name contains more that one dot, it should be detected
earlier to prevent an assert to be raised.
Fixes #11904 .
1 year ago
Charles Brunet
8caf40e5ae
Allow unit test to parse testcase blocks
...
When a unittest introspect a meson.build file from a test case,
the file may contain a testcase block. We should ignore this block.
1 year ago
Jussi Pakkanen
d2dfef5205
Merge pull request #12152 from bruchar1/ast-preserve-all
...
Preserve whitespaces and comments in AST
1 year ago
Xavier Claessens
1b6c9ad02a
msubprojects: Speedup subproject_dir extraction
...
The interpreter takes significant amount of time to initialize
everything in project() function. We only need to extract a string from
AST, just like we do in handle_meson_version_from_ast().
1 year ago
Charles Brunet
57178e8ae7
fix bug with openssl when cmake is missing
...
Fixes #12098
DependencyFactory was returning a lambda, but it has no log_tried() function
1 year ago
Charles Brunet
14e35b63c0
parser: allow whitespaces and comments in cont_eol
...
FIXME: another approach would be to consider cont_eol as comment (i.e.
add backslash and whitespaces to the comment regex). In both cases it
works until we want to parse comments separately.
TODO?: handle eol_cont inside a string (to split long string without
breaking lines). Probably a bad idea and better to simply join a
multiline string.
1 year ago
Charles Brunet
d3a26d158e
raw printer
...
this printer preserves all whitespaces and comments in original meson.build file. It will be useful for rewrite and potential auto-formatter
1 year ago
Charles Brunet
6a18ae48b3
ast: fully resolve nodes for add operation
...
Otherwise, string + stringmethod results in a list of two strings instead of the concatenation of the strings
1 year ago
Charles Brunet
11ef2a536c
parser: preserve whitespaces and comments
1 year ago
Charles Brunet
5b29eff8ad
parser: simplify other node constructors
1 year ago
Charles Brunet
13ddf8bd02
parser: simplify by using Unary and Binary Operator Node
1 year ago
Charles Brunet
0f4891cdf4
parser: simplify Assignment and PlusAssignment nodes
1 year ago
Charles Brunet
02ff9553db
parser: add SymbolNode to preserve operators
1 year ago
Charles Brunet
f13260dd43
parser: add ElseNode
1 year ago
Charles Brunet
4b7a56caa2
parser: remember previous Token
1 year ago
Charles Brunet
b94167ef50
parser: preserve value of all tokens
1 year ago
Charles Brunet
8d357ba62c
parser: use IdNode for foreach varnames
1 year ago
Charles Brunet
306562b466
parser: use IdNode for function name and assignment name
1 year ago
Charles Brunet
35936283d2
parser: preserve escape chars in strings
...
use separate Node for multiline strings
1 year ago
Charles Brunet
a730a2fe21
parser: remove useless __str__ methods on nodes
1 year ago
Charles Brunet
5707d39017
parser: preserve number base
1 year ago
Charles Brunet
3ff3b8abf6
parser: more specific error for float numbers
1 year ago