skip lupdate on device

pull/27022/head^2
Adeeb Shihadeh 2 years ago
parent b8ec32103a
commit 75fd2e1199
  1. 11
      selfdrive/ui/SConscript

@ -74,12 +74,13 @@ translation_sources = [f"#selfdrive/ui/translations/{l}.ts" for l in languages.v
translation_targets = [src.replace(".ts", ".qm") for src in translation_sources] translation_targets = [src.replace(".ts", ".qm") for src in translation_sources]
lrelease_bin = 'third_party/qt5/larch64/bin/lrelease' if arch == 'larch64' else 'lrelease' lrelease_bin = 'third_party/qt5/larch64/bin/lrelease' if arch == 'larch64' else 'lrelease'
lupdate = qt_env.Command(translation_sources, qt_src, "selfdrive/ui/update_translations.py")
lrelease = qt_env.Command(translation_targets, translation_sources, f"{lrelease_bin} $SOURCES") lrelease = qt_env.Command(translation_targets, translation_sources, f"{lrelease_bin} $SOURCES")
qt_env.Depends(lrelease, lupdate) if arch != 'larch64':
qt_env.NoClean(translation_sources) lupdate = qt_env.Command(translation_sources, qt_src, "selfdrive/ui/update_translations.py")
qt_env.Precious(translation_sources) qt_env.Depends(lrelease, lupdate)
qt_env.NoCache(lupdate) qt_env.NoClean(translation_sources)
qt_env.Precious(translation_sources)
qt_env.NoCache(lupdate)
# setup and factory resetter # setup and factory resetter
if GetOption('extras'): if GetOption('extras'):

Loading…
Cancel
Save