apio
140910763e
All checks were successful
Build and test / build (push) Successful in 1m56s
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".
18 lines
605 B
CMake
18 lines
605 B
CMake
function(luna_app 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 ui)
|
|
install(TARGETS ${APP_NAME} DESTINATION ${LUNA_BASE}/usr/bin)
|
|
endfunction()
|
|
|
|
luna_app(about.cpp about)
|
|
luna_app(taskbar.cpp taskbar)
|
|
luna_app(2048.cpp 2048)
|
|
luna_app(clock.cpp clock)
|
|
luna_app(gol.cpp gol)
|
|
|
|
add_subdirectory(editor)
|
|
add_subdirectory(terminal)
|