Jussi Pakkanen
739683943a
Update version number for rc1.
1 month ago
Eli Schwartz
4a352dd8bd
flake8: move unused typing-only imports to TYPE_CHECKING
4 months ago
Jussi Pakkanen
a97de6b527
Ensure override var exists. Closes #13402 .
4 months ago
Jussi Pakkanen
6e20022295
Remove module type from OptionKey.
4 months ago
Jussi Pakkanen
61c742fae9
Remove language (AKA compiler) type from OptionKey.
4 months ago
Jussi Pakkanen
de8e3d65e0
Remove option type from OptionKey and get it from OptionStore instead.
4 months ago
Jussi Pakkanen
0d7bb776e2
Move OptionKey in the option source file.
4 months ago
Jussi Pakkanen
5c6e9d2d8f
Move builtin option check into OptionStore.
4 months ago
Jussi Pakkanen
8e3f609e73
Move project option detection into OptionStore.
4 months ago
Jussi Pakkanen
814e581537
Bump version number for new development.
4 months ago
Jussi Pakkanen
183084a9e8
Release 1.5.0 time.
4 months ago
Jussi Pakkanen
5d417edd64
Bump version number for rc3.
4 months ago
Jussi Pakkanen
ff5865c45c
Bump version number for rc2.
5 months ago
Jussi Pakkanen
7ec1fc507e
Bump version numbers for rc1.
5 months ago
Jussi Pakkanen
181c3499fd
Fix mypy.
5 months ago
Jussi Pakkanen
9a6fcd4d9a
Replace direct indexing with named methods.
5 months ago
Jussi Pakkanen
c0d86024f5
Rename option variable to optstore to make it unique.
5 months ago
Jussi Pakkanen
2b1510d706
Convert option from a plain dictionary into a named class.
5 months ago
Jussi Pakkanen
41a445c228
Extract native file parser to machinefile source file.
5 months ago
Jussi Pakkanen
5365d9a842
Refactor option classes to their own file.
6 months ago
Jussi Pakkanen
128f0e828e
Pass wrapmode value around as a string. ( #13229 )
6 months ago
Eli Schwartz
e5f32b7414
catch build files that cannot be opened in utf8 mode and emit useful error
...
Previously, if a junked meson.build or native.ini was used we got a
lengthy traceback ending in UnicodeDecodeError.
Fixes : #13154
Fixes : #13156
7 months ago
Ole André Vadla Ravnås
0cec1c03d8
coredata: Fix is_per_machine_option() for builtins
...
The keys in BUILTIN_OPTIONS_PER_MACHINE are OptionKey values, not
strings.
This fixes a regression introduced in 71db6b0
.
7 months ago
Eli Schwartz
39f6d11792
micro-optimize iteration of evaluated set
...
It is generally accepted practice to convert dict.keys() to a list
before iterating over it and e.g. deleting values, as keys returns a
live-action view. In this case, we use the difference of *two* dict
keys, which returns a regular non-view set and doesn't need protecting.
Iteration order doesn't matter (the set already randomizes it anyway).
Avoid the cost of converting to a list.
7 months ago
Charles Brunet
bd4fd90730
parser: revert to single StringNode type
...
this will allow transforming string types in the formater
7 months ago
Dylan Baker
c6875305f3
coredata: add tracking of the options files
...
When we load the option file in the interpreter record which file it
was, and what the hash of that file was. This will let `meson configure`
know that the options have changed since the last re-configure.
8 months ago
Dylan Baker
8a10c8a539
coredata: remove extraneous keys when updating project_options
...
This can happen when a project's meson.options file is updated, and an
old option is removed.
8 months ago
Charles Brunet
dacb25db10
Improve error messages for invalid option values
...
By adding the option name to UserOption object, it is now possible to
display the name of the affected option when the given option value is
not valid.
Fixes #12635
8 months ago
Charles Brunet
d08ef2c08b
move UserArrayOption.listify_value to mesonlib
...
This function is used at 3 different places and it does not justify it
as being a staticmethod instead of being a free function.
8 months ago
Jussi Pakkanen
7399be4ab2
Bump version number for new development.
8 months ago
Jussi Pakkanen
eaefe29463
Bump version number for release.
8 months ago
Charles Brunet
f9479787a0
fix reconfigure subproject base options
8 months ago
Charles Brunet
9e270f030f
Fix detection of unknown base options in subproj
...
cc4cfbcad9
added detection for unknown
base options, but it was not working for subproject base options. This
should fix it.
8 months ago
Jussi Pakkanen
d532c79d9c
Bump version number for rc2.
9 months ago
Charles Brunet
cc4cfbcad9
Fix unknown base options not detected in commandline arguments
9 months ago
Charles Brunet
76f6874e48
Fix base and compiler options not reconfigurable.
...
Fixes #12920 .
9 months ago
Charles Brunet
c67a6e1d7c
Revert "Fix base options not reconfigurable"
...
This reverts commit 98db3e7a2e
.
9 months ago
Jussi Pakkanen
0dc2499b2a
Bump version number for rc1.
9 months ago
Charles Brunet
20c9f3e621
Fix base options not reconfigurable
...
Fixes #11732
9 months ago
Dylan Baker
95b3b9f710
coredata: use a Protocol for shared options between setup configure and dist
...
These are all passed around interchangably inside Meson, so use a shared
protocol for them.
9 months ago
Tamás Bálint Misius
7700618181
machine file: Fix parenthesized expressions
...
Extends 79ed2415e9
. Thanks @bruchar1 for the test case; I got
absolutely lost trying to figure out where to add one.
10 months ago
Dylan Baker
e991c4d454
Use SPDX-License-Identifier consistently
...
This replaces all of the Apache blurbs at the start of each file with an
`# SPDX-License-Identifier: Apache-2.0` string. It also fixes existing
uses to be consistent in capitalization, and to be placed above any
copyright notices.
This removes nearly 3000 lines of boilerplate from the project (only
python files), which no developer cares to look at.
SPDX is in common use, particularly in the Linux kernel, and is the
recommended format for Meson's own `project(license: )` field
11 months ago
Eli Schwartz
c341900d45
coredata: add a few more type annotations
...
89 erros down to 34. Most of them are from getting the `BUILTIN_*`
variables correct.
11 months ago
Jussi Pakkanen
dea72e42bf
Bump version number for new development.
1 year ago
Jussi Pakkanen
1c0c89d30f
Bump version number for release.
1 year ago
Jussi Pakkanen
dac3f26ee5
Bump version number for rc3.
1 year ago
Jussi Pakkanen
61a760a39c
Increment version number for rc2.
1 year ago
Luke Elliott
ce691f8c98
Add comments suggesting to keep shell completion scripts up-to-date near cmd line argument code
1 year ago
Jussi Pakkanen
bca31cffc2
Bump version number for RC1.
1 year ago
Charles Brunet
35936283d2
parser: preserve escape chars in strings
...
use separate Node for multiline strings
1 year ago