|
|
@ -1,4 +1,45 @@ |
|
|
|
Import('env', 'qt_env', 'arch', 'common', 'messaging', 'gpucommon', 'visionipc', 'cereal') |
|
|
|
Import('env', 'arch', 'real_arch', 'common', 'messaging', 'gpucommon', 'visionipc', 'cereal') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
qt_env = None |
|
|
|
|
|
|
|
if arch in ["x86_64", "Darwin", "larch64"]: |
|
|
|
|
|
|
|
qt_env = env.Clone() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if arch == "Darwin": |
|
|
|
|
|
|
|
qt_env['QTDIR'] = "/usr/local/opt/qt" |
|
|
|
|
|
|
|
QT_BASE = "/usr/local/opt/qt/" |
|
|
|
|
|
|
|
qt_dirs = [ |
|
|
|
|
|
|
|
QT_BASE + "include/", |
|
|
|
|
|
|
|
QT_BASE + "include/QtWidgets", |
|
|
|
|
|
|
|
QT_BASE + "include/QtGui", |
|
|
|
|
|
|
|
QT_BASE + "include/QtCore", |
|
|
|
|
|
|
|
QT_BASE + "include/QtDBus", |
|
|
|
|
|
|
|
QT_BASE + "include/QtMultimedia", |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
qt_env["LINKFLAGS"] += ["-F" + QT_BASE + "lib"] |
|
|
|
|
|
|
|
else: |
|
|
|
|
|
|
|
qt_env['QTDIR'] = "/usr" |
|
|
|
|
|
|
|
qt_dirs = [ |
|
|
|
|
|
|
|
f"/usr/include/{real_arch}-linux-gnu/qt5", |
|
|
|
|
|
|
|
f"/usr/include/{real_arch}-linux-gnu/qt5/QtWidgets", |
|
|
|
|
|
|
|
f"/usr/include/{real_arch}-linux-gnu/qt5/QtGui", |
|
|
|
|
|
|
|
f"/usr/include/{real_arch}-linux-gnu/qt5/QtCore", |
|
|
|
|
|
|
|
f"/usr/include/{real_arch}-linux-gnu/qt5/QtDBus", |
|
|
|
|
|
|
|
f"/usr/include/{real_arch}-linux-gnu/qt5/QtMultimedia", |
|
|
|
|
|
|
|
f"/usr/include/{real_arch}-linux-gnu/qt5/QtGui/5.5.1/QtGui", |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
qt_env.Tool('qt') |
|
|
|
|
|
|
|
qt_env['CPPPATH'] += qt_dirs |
|
|
|
|
|
|
|
qt_flags = [ |
|
|
|
|
|
|
|
"-D_REENTRANT", |
|
|
|
|
|
|
|
"-DQT_NO_DEBUG", |
|
|
|
|
|
|
|
"-DQT_WIDGETS_LIB", |
|
|
|
|
|
|
|
"-DQT_GUI_LIB", |
|
|
|
|
|
|
|
"-DQT_CORE_LIB" |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
qt_env['CXXFLAGS'] += qt_flags |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
src = ['ui.cc', 'paint.cc', 'sidebar.cc', '#phonelibs/nanovg/nanovg.c'] |
|
|
|
src = ['ui.cc', 'paint.cc', 'sidebar.cc', '#phonelibs/nanovg/nanovg.c'] |
|
|
|
libs = [common, 'zmq', 'capnp', 'kj', 'm', cereal, messaging, gpucommon, visionipc] |
|
|
|
libs = [common, 'zmq', 'capnp', 'kj', 'm', cereal, messaging, gpucommon, visionipc] |
|
|
|