mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-29 09:38:08 +00:00
fix(core): fix cmakelists generation
[no changelog]
This commit is contained in:
parent
6931e61f75
commit
e6c6065fce
@ -52,7 +52,8 @@ def get_defs_for_cmake(defs: list[str | tuple[str, str]]) -> list[str]:
|
|||||||
result: list[str] = []
|
result: list[str] = []
|
||||||
for d in defs:
|
for d in defs:
|
||||||
if type(d) is tuple:
|
if type(d) is tuple:
|
||||||
result.append(d[0] + "=" + d[1])
|
val = d[1].replace('"', '\\"').replace("(", "\\(").replace(")", "\\)")
|
||||||
|
result.append(f'{d[0]}="{val}"')
|
||||||
else:
|
else:
|
||||||
result.append(d)
|
result.append(d)
|
||||||
return result
|
return result
|
||||||
|
Loading…
Reference in New Issue
Block a user