1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-28 00:58:09 +00:00

fix(core): fix cmakelists generation

[no changelog]
This commit is contained in:
tychovrahe 2024-11-22 16:10:25 +01:00 committed by TychoVrahe
parent 6931e61f75
commit e6c6065fce

View File

@ -52,7 +52,8 @@ def get_defs_for_cmake(defs: list[str | tuple[str, str]]) -> list[str]:
result: list[str] = []
for d in defs:
if type(d) is tuple:
result.append(d[0] + "=" + d[1])
val = d[1].replace('"', '\\"').replace("(", "\\(").replace(")", "\\)")
result.append(f'{d[0]}="{val}"')
else:
result.append(d)
return result