Luna/utils/CMakeLists.txt
apio 140910763e
All checks were successful
Build and test / build (push) Successful in 1m56s
all: Reorder directory structure
Why are command-line utilities stored in "apps"?
And why are apps like "editor" or "terminal" top-level directories?
Command-line utilities now go in "utils".
GUI stuff now goes in "gui".
This includes: libui -> gui/libui, wind -> gui/wind, GUI apps -> gui/apps, editor&terminal -> gui/apps...
System services go in "system".
2024-07-21 13:24:46 +02:00

37 lines
1.2 KiB
CMake

function(luna_utility SOURCE_FILE APP_NAME)
add_executable(${APP_NAME} ${SOURCE_FILE})
target_compile_options(${APP_NAME} PRIVATE -Os ${COMMON_FLAGS} -Wno-write-strings)
add_dependencies(${APP_NAME} libc)
target_include_directories(${APP_NAME} PRIVATE ${LUNA_BASE}/usr/include)
target_link_libraries(${APP_NAME} PRIVATE os)
install(TARGETS ${APP_NAME} DESTINATION ${LUNA_BASE}/usr/bin)
endfunction()
luna_utility(env.cpp env)
luna_utility(su.cpp su)
luna_utility(cat.cpp cat)
luna_utility(date.cpp date)
luna_utility(edit.cpp edit)
luna_utility(ls.cpp ls)
luna_utility(chown.cpp chown)
luna_utility(chmod.cpp chmod)
luna_utility(mkdir.cpp mkdir)
luna_utility(rm.cpp rm)
luna_utility(stat.cpp stat)
luna_utility(uname.cpp uname)
luna_utility(base64.cpp base64)
luna_utility(login.cpp login)
luna_utility(mount.cpp mount)
luna_utility(umount.cpp umount)
luna_utility(ps.cpp ps)
luna_utility(time.cpp time)
luna_utility(ln.cpp ln)
luna_utility(mktemp.cpp mktemp)
luna_utility(sysfuzz.cpp sysfuzz)
luna_utility(cp.cpp cp)
luna_utility(kill.cpp kill)
luna_utility(touch.cpp touch)
luna_utility(free.cpp free)
luna_utility(sha256sum.cpp sha256sum)
luna_utility(arch.cpp arch)