mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 22:23:56 +08:00
* draft * continue * fix QChart unresponsive with large points * build with --extras * add filter * save DBC button * more buttons * add flag to use qcamera * stop replay in dctor * README * use getMsg * video control * edit signal * add colors * correct ts * add/edit signals * use bus:address as key
21 lines
995 B
Python
21 lines
995 B
Python
import os
|
|
Import('env', 'qt_env', 'arch', 'common', 'messaging', 'visionipc',
|
|
'cereal', 'transformations', 'widgets', 'replay_lib', 'opendbc')
|
|
|
|
base_frameworks = qt_env['FRAMEWORKS']
|
|
base_libs = [common, messaging, cereal, visionipc, transformations, 'zmq',
|
|
'capnp', 'kj', 'm', 'ssl', 'crypto', 'pthread'] + qt_env["LIBS"]
|
|
|
|
if arch == "Darwin":
|
|
base_frameworks.append('OpenCL')
|
|
else:
|
|
base_libs.append('OpenCL')
|
|
|
|
qt_libs = ['qt_util', 'Qt5Charts'] + base_libs
|
|
if arch in ['x86_64', 'Darwin'] and GetOption('extras'):
|
|
qt_env['CXXFLAGS'] += ["-Wno-deprecated-declarations"]
|
|
|
|
# qt_env["LD_LIBRARY_PATH"] = [Dir(f"#opendbc/can").abspath]
|
|
cabana_libs = [widgets, cereal, messaging, visionipc, replay_lib, opendbc,'avutil', 'avcodec', 'avformat', 'bz2', 'curl', 'yuv'] + qt_libs
|
|
qt_env.Program('_cabana', ['cabana.cc', 'mainwin.cc', 'chartswidget.cc', 'videowidget.cc', 'parser.cc', 'messageswidget.cc', 'detailwidget.cc'], LIBS=cabana_libs, FRAMEWORKS=base_frameworks)
|