2023-05-06 10:11:35 +00:00
|
|
|
function(luna_app SOURCE_FILE APP_NAME)
|
2022-12-23 12:09:21 +00:00
|
|
|
add_executable(${APP_NAME} ${SOURCE_FILE})
|
2023-04-07 10:02:49 +00:00
|
|
|
target_compile_options(${APP_NAME} PRIVATE -Os ${COMMON_FLAGS} -Wno-write-strings)
|
2023-01-06 12:31:14 +00:00
|
|
|
add_dependencies(${APP_NAME} libc)
|
2023-01-06 23:21:08 +00:00
|
|
|
target_include_directories(${APP_NAME} PRIVATE ${LUNA_BASE}/usr/include)
|
2023-04-08 12:47:58 +00:00
|
|
|
target_link_libraries(${APP_NAME} PRIVATE os)
|
2023-07-10 11:05:06 +00:00
|
|
|
install(TARGETS ${APP_NAME} DESTINATION ${LUNA_BASE}/usr/bin)
|
2022-12-23 12:09:21 +00:00
|
|
|
endfunction()
|
|
|
|
|
2023-07-10 11:05:06 +00:00
|
|
|
add_executable(preinit preinit.cpp)
|
|
|
|
target_compile_options(preinit PRIVATE -Os ${COMMON_FLAGS} -Wno-write-strings)
|
|
|
|
add_dependencies(preinit libc)
|
|
|
|
target_include_directories(preinit PRIVATE ${LUNA_BASE}/usr/include)
|
|
|
|
install(TARGETS preinit DESTINATION ${LUNA_ROOT}/initrd/bin)
|
|
|
|
|
2023-05-06 10:11:35 +00:00
|
|
|
luna_app(init.cpp init)
|
|
|
|
luna_app(env.cpp env)
|
|
|
|
luna_app(su.cpp su)
|
|
|
|
luna_app(cat.cpp cat)
|
|
|
|
luna_app(date.cpp date)
|
|
|
|
luna_app(edit.cpp edit)
|
|
|
|
luna_app(ls.cpp ls)
|
|
|
|
luna_app(chown.cpp chown)
|
|
|
|
luna_app(chmod.cpp chmod)
|
|
|
|
luna_app(mkdir.cpp mkdir)
|
|
|
|
luna_app(rm.cpp rm)
|
|
|
|
luna_app(stat.cpp stat)
|
|
|
|
luna_app(uname.cpp uname)
|
|
|
|
luna_app(base64.cpp base64)
|
2023-05-06 20:03:50 +00:00
|
|
|
luna_app(login.cpp login)
|
2023-05-10 20:48:31 +00:00
|
|
|
luna_app(ipc-test.cpp ipc-test)
|
2023-07-10 17:46:57 +00:00
|
|
|
luna_app(signal-test.cpp signal-test)
|
2023-05-17 18:30:15 +00:00
|
|
|
luna_app(mount.cpp mount)
|
|
|
|
luna_app(umount.cpp umount)
|
2023-05-18 19:59:38 +00:00
|
|
|
luna_app(ps.cpp ps)
|
2023-05-20 10:48:25 +00:00
|
|
|
luna_app(time.cpp time)
|
2023-05-20 19:48:28 +00:00
|
|
|
luna_app(ln.cpp ln)
|
2023-06-03 10:15:57 +00:00
|
|
|
luna_app(mktemp.cpp mktemp)
|
2023-06-08 17:58:00 +00:00
|
|
|
luna_app(sysfuzz.cpp sysfuzz)
|
2023-06-17 15:27:22 +00:00
|
|
|
luna_app(pivot_root.cpp pivot_root)
|
2023-07-02 14:38:24 +00:00
|
|
|
luna_app(cp.cpp cp)
|
2023-07-10 20:17:05 +00:00
|
|
|
luna_app(kill.cpp kill)
|
2023-07-21 13:51:21 +00:00
|
|
|
luna_app(gol.cpp gol)
|
2023-07-21 22:02:12 +00:00
|
|
|
luna_app(buffer-test.cpp buffer-test)
|
2023-07-27 14:37:17 +00:00
|
|
|
luna_app(socket-test.cpp socket-test)
|
2023-07-28 15:31:27 +00:00
|
|
|
luna_app(socket-client.cpp socket-client)
|
2023-08-02 15:20:26 +00:00
|
|
|
luna_app(input.cpp input)
|
2023-08-02 20:19:47 +00:00
|
|
|
luna_app(shmem-test.cpp shmem-test)
|
2023-08-08 12:34:58 +00:00
|
|
|
luna_app(touch.cpp touch)
|
2023-08-17 18:15:39 +00:00
|
|
|
luna_app(free.cpp free)
|
2023-08-07 20:45:00 +00:00
|
|
|
luna_app(gclient.cpp gclient)
|
2023-08-14 18:08:05 +00:00
|
|
|
target_link_libraries(gclient PUBLIC ui)
|