mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-23 19:43:44 +08:00
UI: Screen Recorder (#22)
* UI: screen recorder ;) * oops * try out new look * dep * Try this * bruh * Hmm * and this * or this? * how's this? * this is fine * move it move it * finalize * small * bigger * smaller * pinpoint this * Missed this * and this * gone? * press down state * no sound for now
This commit is contained in:
@@ -10,6 +10,7 @@ if arch == 'larch64':
|
||||
base_libs.append('EGL')
|
||||
|
||||
maps = arch in ['larch64', 'x86_64']
|
||||
screenrecorder = arch in ['larch64']
|
||||
|
||||
if maps and arch == 'x86_64':
|
||||
rpath = [Dir(f"#third_party/mapbox-gl-native-qt/{arch}").srcnode().abspath]
|
||||
@@ -62,6 +63,14 @@ qt_src = ["main.cc", "qt/sidebar.cc", "qt/onroad.cc", "qt/body.cc",
|
||||
"qt/window.cc", "qt/home.cc", "qt/offroad/settings.cc",
|
||||
"qt/offroad/software_settings.cc", "qt/offroad/onboarding.cc",
|
||||
"qt/offroad/driverview.cc", "qt/offroad/experimental_mode.cc"]
|
||||
|
||||
# include dashcam / screenrecorder
|
||||
if screenrecorder:
|
||||
qt_src += ["qt/screenrecorder/screenrecorder.cc", "qt/screenrecorder/omx_encoder.cc"]
|
||||
qt_env['CPPPATH'] += ["qt/screenrecorder/openmax/include/"]
|
||||
qt_libs += ['OmxCore', 'gsl', 'CB', 'avformat', 'avcodec', 'swscale', 'avutil', 'yuv', 'pthread']
|
||||
qt_env['CPPDEFINES'] += ["ENABLE_DASHCAM"]
|
||||
|
||||
qt_env.Program("_ui", qt_src + [asset_obj], LIBS=qt_libs)
|
||||
if GetOption('test'):
|
||||
qt_src.remove("main.cc") # replaced by test_runner
|
||||
|
||||
Reference in New Issue
Block a user