mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 02:08:12 +03:00
e800605ad3
This URL library ends up being a relatively fundamental base library of the system, as LibCore depends on LibURL. This change has two main benefits: * Moving AK back more towards being an agnostic library that can be used between the kernel and userspace. URL has never really fit that description - and is not used in the kernel. * URL _should_ depend on LibUnicode, as it needs punnycode support. However, it's not really possible to do this inside of AK as it can't depend on any external library. This change brings us a little closer to being able to do that, but unfortunately we aren't there quite yet, as the code generators depend on LibCore.
52 lines
1.4 KiB
CMake
52 lines
1.4 KiB
CMake
serenity_component(
|
|
BuggieBox
|
|
REQUIRED
|
|
TARGETS BuggieBox
|
|
)
|
|
|
|
function (buggiebox_utility src)
|
|
get_filename_component(utility ${src} NAME_WE)
|
|
target_sources(BuggieBox PRIVATE ${src})
|
|
set_source_files_properties(${src} PROPERTIES COMPILE_DEFINITIONS "serenity_main=${utility}_main")
|
|
endfunction()
|
|
|
|
set(utility_srcs
|
|
../Utilities/cat.cpp
|
|
../Utilities/checksum.cpp
|
|
../Utilities/chmod.cpp
|
|
../Utilities/chown.cpp
|
|
../Utilities/cp.cpp
|
|
../Utilities/df.cpp
|
|
../Utilities/env.cpp
|
|
../Utilities/file.cpp
|
|
../Utilities/find.cpp
|
|
../Utilities/id.cpp
|
|
../Utilities/less.cpp
|
|
../Utilities/ln.cpp
|
|
../Utilities/ls.cpp
|
|
../Utilities/lsblk.cpp
|
|
../Utilities/mkdir.cpp
|
|
../Utilities/mknod.cpp
|
|
../Utilities/mount.cpp
|
|
../Utilities/mv.cpp
|
|
../Utilities/ps.cpp
|
|
../Utilities/rm.cpp
|
|
../Utilities/rmdir.cpp
|
|
../Utilities/tail.cpp
|
|
../Utilities/tree.cpp
|
|
../Utilities/umount.cpp
|
|
../Utilities/uname.cpp
|
|
../Utilities/uniq.cpp
|
|
)
|
|
|
|
serenity_bin(BuggieBox)
|
|
target_sources(BuggieBox PRIVATE main.cpp)
|
|
target_link_libraries(BuggieBox PRIVATE LibMain LibShell LibArchive LibCompress LibCore LibCrypto LibFileSystem LibGfx LibLine LibRegex LibAudio LibURL)
|
|
|
|
foreach(file IN LISTS utility_srcs)
|
|
buggiebox_utility(${file})
|
|
endforeach()
|
|
|
|
target_sources(BuggieBox PRIVATE ../Shell/main.cpp)
|
|
set_source_files_properties( ../Shell/main.cpp PROPERTIES COMPILE_DEFINITIONS "serenity_main=sh_main")
|