Skip to content

Commit

Permalink
Setup system/ui/ move (#34124)
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh authored Nov 28, 2024
1 parent 8e14e40 commit 4226ef5
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
1 change: 1 addition & 0 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ SConscript(['rednose/SConscript'])

# Build system services
SConscript([
'system/ui/SConscript',
'system/proclogd/SConscript',
'system/ubloxd/SConscript',
'system/loggerd/SConscript',
Expand Down
2 changes: 0 additions & 2 deletions selfdrive/ui/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,3 @@ if GetOption('extras') and arch != "Darwin":
# build watch3
if arch in ['x86_64', 'aarch64', 'Darwin'] or GetOption('extras'):
qt_env.Program("watch3", ["watch3.cc"], LIBS=qt_libs + ['common', 'msgq', 'visionipc'])

SConscript(['raylib/SConscript'])
1 change: 0 additions & 1 deletion selfdrive/ui/raylib/.gitignore

This file was deleted.

1 change: 1 addition & 0 deletions system/ui/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
spinner
11 changes: 6 additions & 5 deletions selfdrive/ui/raylib/SConscript → system/ui/SConscript
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
Import('env', 'arch', 'common')

raylib_env = env.Clone()
raylib_util_lib = env.Library("raylib_util_lib", ['util.cc'], LIBS='raylib')
linked_libs = ['raylib', raylib_util_lib, common]
raylib_env['LIBPATH'] += [f'#third_party/raylib/{arch}/']
renv = env.Clone()

rayutil = env.Library("rayutil", ['raylib/util.cc'], LIBS='raylib')
linked_libs = ['raylib', rayutil, common]
renv['LIBPATH'] += [f'#third_party/raylib/{arch}/']

mac_frameworks = []
if arch == "Darwin":
Expand All @@ -14,4 +15,4 @@ else:
linked_libs += ['OpenCL', 'dl', 'pthread']

if arch != 'aarch64':
raylib_env.Program("_spinner", ["spinner.cc"], LIBS=linked_libs, FRAMEWORKS=mac_frameworks)
renv.Program("spinner", ["raylib/spinner.cc"], LIBS=linked_libs, FRAMEWORKS=mac_frameworks)
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <cmath>
#include <iostream>

#include "selfdrive/ui/raylib/util.h"
#include "system/ui/raylib/util.h"
#include "third_party/raylib/include/raylib.h"

constexpr int kProgressBarWidth = 1000;
Expand Down
2 changes: 1 addition & 1 deletion selfdrive/ui/raylib/util.cc → system/ui/raylib/util.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "selfdrive/ui/raylib/util.h"
#include "system/ui/raylib/util.h"

#include <array>

Expand Down
File renamed without changes.

0 comments on commit 4226ef5

Please sign in to comment.