mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 12:23:53 +08:00
* start drawing new sidebar, add assets
* add thermal to ui, draw network_type and battery
* draw sidebar metrics, add freeSpace and paTemp
* draw static panda metric and network strength, start ubloxGnss messaging
* use array for network_img
* start sidebar touch events
* prevent multiple touch events with touch_timeout
* filter old touches, isolate sidebar events
* add hwType check with timeout for panda metric
* cleanup touch poll, handle vision touch, remove frame and black apks
* cleanup per willem comments
* update offroad, only read active_app from cereal
* tweak sidebar behavior, show active app status
* update offroad apk
* read networkstrength from thermal in sidebar
old-commit-hash: 5ba6beed17
18 lines
671 B
Python
18 lines
671 B
Python
Import('env', 'arch', 'common', 'messaging', 'gpucommon', 'visionipc', 'cereal')
|
|
|
|
src = ['ui.cc', 'paint.cc', 'sidebar.cc', '#phonelibs/nanovg/nanovg.c']
|
|
libs = [common, 'zmq', 'czmq', 'capnp', 'capnp_c', 'm', cereal, messaging, gpucommon, visionipc]
|
|
|
|
if arch == "aarch64":
|
|
src += ['sound.cc', 'slplay.c']
|
|
libs += ['EGL', 'GLESv3', 'gnustl_shared', 'log', 'utils', 'gui', 'hardware', 'ui', 'CB', 'gsl', 'adreno_utils', 'OpenSLES', 'cutils', 'uuid', 'OpenCL']
|
|
linkflags = ['-Wl,-rpath=/system/lib64,-rpath=/system/comma/usr/lib']
|
|
else:
|
|
src += ['linux.cc']
|
|
libs += ['pthread', 'glfw']
|
|
linkflags = []
|
|
|
|
env.Program('_ui', src,
|
|
LINKFLAGS=linkflags,
|
|
LIBS=libs)
|