forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Userland: Move command-line utilities to Userland/Utilities/
- Loading branch information
1 parent
c4e2fd8
commit ececac6
Showing
142 changed files
with
58 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,4 @@ | ||
file(GLOB CMD_SOURCES CONFIGURE_DEPENDS "*.cpp") | ||
list(APPEND SPECIAL_TARGETS "test" "install") | ||
|
||
foreach(CMD_SRC ${CMD_SOURCES}) | ||
get_filename_component(CMD_NAME ${CMD_SRC} NAME_WE) | ||
if (CMD_NAME IN_LIST SPECIAL_TARGETS) | ||
add_executable("${CMD_NAME}-bin" ${CMD_SRC}) | ||
target_link_libraries("${CMD_NAME}-bin" LibCore) | ||
install(TARGETS "${CMD_NAME}-bin" RUNTIME DESTINATION bin) | ||
install(CODE "execute_process(COMMAND mv ${CMD_NAME}-bin ${CMD_NAME} WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/bin)") | ||
else () | ||
add_executable(${CMD_NAME} ${CMD_SRC}) | ||
target_link_libraries(${CMD_NAME} LibCore) | ||
install(TARGETS ${CMD_NAME} RUNTIME DESTINATION bin) | ||
endif() | ||
endforeach() | ||
|
||
target_link_libraries(aplay LibAudio) | ||
target_link_libraries(avol LibAudio) | ||
target_link_libraries(checksum LibCrypto) | ||
target_link_libraries(copy LibGUI) | ||
target_link_libraries(disasm LibX86) | ||
target_link_libraries(expr LibRegex) | ||
target_link_libraries(functrace LibDebug LibX86) | ||
target_link_libraries(gml-format LibGUI) | ||
target_link_libraries(html LibWeb) | ||
target_link_libraries(js LibJS LibLine) | ||
target_link_libraries(keymap LibKeyboard) | ||
target_link_libraries(lspci LibPCIDB) | ||
target_link_libraries(man LibMarkdown) | ||
target_link_libraries(md LibMarkdown) | ||
target_link_libraries(misbehaving-application LibCore) | ||
target_link_libraries(notify LibGUI) | ||
target_link_libraries(open LibDesktop) | ||
target_link_libraries(pape LibGUI) | ||
target_link_libraries(passwd LibCrypt) | ||
target_link_libraries(paste LibGUI) | ||
target_link_libraries(pro LibProtocol) | ||
target_link_libraries(su LibCrypt) | ||
target_link_libraries(tar LibTar LibCompress) | ||
target_link_libraries(test-crypto LibCrypto LibTLS LibLine) | ||
target_link_libraries(test-compress LibCompress) | ||
target_link_libraries(test-gfx-font LibGUI LibCore) | ||
target_link_libraries(test-js LibJS LibLine LibCore) | ||
target_link_libraries(test-pthread LibThread) | ||
target_link_libraries(test-web LibWeb) | ||
target_link_libraries(tt LibPthread) | ||
target_link_libraries(grep LibRegex) | ||
target_link_libraries(gunzip LibCompress) | ||
|
||
add_subdirectory(DynamicLoader) | ||
add_subdirectory(Shell) | ||
add_subdirectory(Tests) | ||
add_subdirectory(Utilities) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
file(GLOB CMD_SOURCES CONFIGURE_DEPENDS "*.cpp") | ||
list(APPEND SPECIAL_TARGETS "test" "install") | ||
|
||
foreach(CMD_SRC ${CMD_SOURCES}) | ||
get_filename_component(CMD_NAME ${CMD_SRC} NAME_WE) | ||
if (CMD_NAME IN_LIST SPECIAL_TARGETS) | ||
add_executable("${CMD_NAME}-bin" ${CMD_SRC}) | ||
target_link_libraries("${CMD_NAME}-bin" LibCore) | ||
install(TARGETS "${CMD_NAME}-bin" RUNTIME DESTINATION bin) | ||
install(CODE "execute_process(COMMAND mv ${CMD_NAME}-bin ${CMD_NAME} WORKING_DIRECTORY ${CMAKE_INSTALL_PREFIX}/bin)") | ||
else () | ||
add_executable(${CMD_NAME} ${CMD_SRC}) | ||
target_link_libraries(${CMD_NAME} LibCore) | ||
install(TARGETS ${CMD_NAME} RUNTIME DESTINATION bin) | ||
endif() | ||
endforeach() | ||
|
||
target_link_libraries(aplay LibAudio) | ||
target_link_libraries(avol LibAudio) | ||
target_link_libraries(checksum LibCrypto) | ||
target_link_libraries(copy LibGUI) | ||
target_link_libraries(disasm LibX86) | ||
target_link_libraries(expr LibRegex) | ||
target_link_libraries(functrace LibDebug LibX86) | ||
target_link_libraries(gml-format LibGUI) | ||
target_link_libraries(html LibWeb) | ||
target_link_libraries(js LibJS LibLine) | ||
target_link_libraries(keymap LibKeyboard) | ||
target_link_libraries(lspci LibPCIDB) | ||
target_link_libraries(man LibMarkdown) | ||
target_link_libraries(md LibMarkdown) | ||
target_link_libraries(misbehaving-application LibCore) | ||
target_link_libraries(notify LibGUI) | ||
target_link_libraries(open LibDesktop) | ||
target_link_libraries(pape LibGUI) | ||
target_link_libraries(passwd LibCrypt) | ||
target_link_libraries(paste LibGUI) | ||
target_link_libraries(pro LibProtocol) | ||
target_link_libraries(su LibCrypt) | ||
target_link_libraries(tar LibTar LibCompress) | ||
target_link_libraries(test-crypto LibCrypto LibTLS LibLine) | ||
target_link_libraries(test-compress LibCompress) | ||
target_link_libraries(test-gfx-font LibGUI LibCore) | ||
target_link_libraries(test-js LibJS LibLine LibCore) | ||
target_link_libraries(test-pthread LibThread) | ||
target_link_libraries(test-web LibWeb) | ||
target_link_libraries(tt LibPthread) | ||
target_link_libraries(grep LibRegex) | ||
target_link_libraries(gunzip LibCompress) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.