diff options
| author | Mykola Dolhyi <0xb000@gmail.com> | 2024-06-27 19:10:02 +0300 |
|---|---|---|
| committer | Mykola Dolhyi <0xb000@gmail.com> | 2024-06-27 19:22:29 +0300 |
| commit | 7516508547524c53d99178f26d2df5f0cd6e8396 (patch) | |
| tree | 16e5c09ebb11028c3c5dc9d3d10867308fbd492c /setup.py | |
| parent | 7b43a2e19613f3702935872b21b1020f7d8c6a9b (diff) | |
| download | meson-7516508547524c53d99178f26d2df5f0cd6e8396.tar.gz | |
Refactor duplicated quoting code for XCode backend
XCode project file contains dictionary-like structures. Strings for the
mapped values have to be quoted if these include special characters.
Previously this quoting was happening in-place, before adding a new
value to the dictionary. This produce big amounts of boilerplate
error-prone code. For example if there are targets whose names contain special
characters (grpc++ in my case), produced file will be invalid.
This moves checking and quoting subroutine to the PbxDictItem class,
eliminating the need to do this on the caller side.
[Kin](https://github.com/Serchinastico/Kin) tool was used to validate
produced PBXProj files.
Diffstat (limited to 'setup.py')
0 files changed, 0 insertions, 0 deletions
