2024-07-03 09:15:22 +03:00
|
|
|
set(USERSPACE_PROGRAMS
|
2024-08-09 15:56:33 +03:00
|
|
|
bananfetch
|
2024-07-03 09:15:22 +03:00
|
|
|
cat
|
|
|
|
cat-mmap
|
|
|
|
chmod
|
|
|
|
cp
|
|
|
|
dd
|
|
|
|
dhcp-client
|
2024-09-05 12:56:50 +03:00
|
|
|
DynamicLoader
|
2024-07-03 09:15:22 +03:00
|
|
|
echo
|
|
|
|
getopt
|
|
|
|
http-server
|
|
|
|
id
|
|
|
|
image
|
|
|
|
init
|
|
|
|
loadfont
|
|
|
|
loadkeys
|
|
|
|
ls
|
|
|
|
meminfo
|
|
|
|
mkdir
|
|
|
|
nslookup
|
|
|
|
poweroff
|
|
|
|
resolver
|
|
|
|
rm
|
|
|
|
Shell
|
|
|
|
sleep
|
|
|
|
snake
|
|
|
|
stat
|
|
|
|
sudo
|
|
|
|
sync
|
|
|
|
tee
|
|
|
|
Terminal
|
|
|
|
touch
|
|
|
|
u8sum
|
|
|
|
whoami
|
|
|
|
WindowServer
|
|
|
|
yes
|
|
|
|
)
|
|
|
|
|
|
|
|
foreach(project ${USERSPACE_PROGRAMS})
|
|
|
|
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)
|
2024-09-02 21:25:00 +03:00
|
|
|
|
|
|
|
target_compile_definitions(${project} PRIVATE __enable_sse=${BANAN_ENABLE_SSE})
|
|
|
|
if (NOT BANAN_ENABLE_SSE)
|
|
|
|
target_compile_options(${project} PRIVATE -mno-sse -mno-sse2)
|
|
|
|
endif ()
|
2024-07-03 09:15:22 +03:00
|
|
|
endforeach()
|