update scons qt tool (#27825)

* update scons qt tool

* support old and new

---------

Co-authored-by: Comma Device <device@comma.ai>
pull/27827/head
Adeeb Shihadeh 2 years ago committed by GitHub
parent 23e420448b
commit 558da046db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      SConstruct

@ -5,6 +5,8 @@ import sysconfig
import platform
import numpy as np
import SCons.Errors
TICI = os.path.isfile('/TICI')
AGNOS = TICI
@ -311,7 +313,11 @@ else:
elif arch != "Darwin":
qt_libs += ["GL"]
qt_env.Tool('qt')
try:
qt_env.Tool('qt3')
except SCons.Errors.UserError:
qt_env.Tool('qt')
qt_env['CPPPATH'] += qt_dirs + ["#selfdrive/ui/qt/"]
qt_flags = [
"-D_REENTRANT",

Loading…
Cancel
Save