summaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter/primitives/__init__.py
AgeCommit message (Collapse)Author
2023-12-13Use SPDX-License-Identifier consistentlyDylan Baker
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
2022-08-29flake8: fix warnings for unused importsEli Schwartz
This is supposed to expose all primitives together, but to do that we need to actually "use" each variable in `__all__`, which we... didn't. Sorry about that.
2022-08-22interpreter: add a special class to track the lifecycle of get_option() stringsEli Schwartz
2022-04-13dependencies: allow get_variable to expose files from subprojectsEli Schwartz
There are somewhat common, reasonable and legitimate use cases for a dependency to provide data files installed to /usr which are used as command inputs. When getting a dependency from a subproject, however, the attempt to directly construct an input file from a subproject results in a sandbox violation. This means not all dependencies can be wrapped as a subproject. One example is wayland-protocols XML files which get scanned and used to produce C source files. Teach Meson to recognize when a string path is the result of fetching a dep.get_variable(), and special case this to be exempt from subproject violations. A requirement of this is that the file must be installed by install_data() or install_subdir() because otherwise it is not actually representative of what a pkg-config dependency would provide.
2021-10-06interpreter: Move RangeHolder out of interpreterbase to interpreterDaniel Mensinger
2021-10-06interpreter: Holderify arrays and dictsDaniel Mensinger
This is the final refactoring for extracting the bultin object logic out of Interpreterbase. I decided to do both arrays and dicts in one go since splitting it would have been a lot more confusing.
2021-09-25interpreter: Introduce StringHolderDaniel Mensinger
Another commit in my quest to rid InterpreterBase from all higher level object processing logic. Additionally, there is a a logic change here, since `str.join` now uses varargs and can now accept more than one argument (and supports list flattening).
2021-09-01interpreter: Introduce BooleanHolder for the bool primitiveDaniel Mensinger
2021-08-31interpreter: Add IntegerHolderDaniel Mensinger