BuildSystem: Cleanup userspace directory layout

userspace programs are now in userspace/programs
userspace tests are now in userspace/tests

This makes listing userspace projects much cleaner. Libraries were
already separated to their own directory, so other programs should also.
This commit is contained in:
2024-07-03 09:15:22 +03:00
parent 5dc441c4af
commit 8ddab05ed3
107 changed files with 78 additions and 67 deletions

View File

@@ -1,62 +1,6 @@
set(USERSPACE_PROJECTS
cat
cat-mmap
chmod
cp
dd
dhcp-client
echo
getopt
http-server
id
image
init
loadfont
loadkeys
ls
meminfo
mkdir
nslookup
poweroff
resolver
rm
Shell
sleep
snake
stat
sudo
sync
tee
Terminal
test
test-framebuffer
test-globals
test-mmap-shared
test-mouse
test-popen
test-sort
test-tcp
test-udp
test-unix-socket
test-window
touch
u8sum
whoami
WindowServer
yes
)
add_subdirectory(libraries)
add_custom_target(userspace)
#add_subdirectory(aoc2023)
foreach(project ${USERSPACE_PROJECTS})
add_subdirectory(${project})
add_dependencies(userspace ${project})
# This is to allow cmake to link when libc updates
target_link_options(${project} PRIVATE -nolibc)
# Default compile options
target_compile_options(${project} PRIVATE -g -O2)
endforeach()
add_subdirectory(libraries)
add_subdirectory(programs)
add_subdirectory(tests)