mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00: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.
41 lines
998 B
CMake
41 lines
998 B
CMake
serenity_component(
|
|
Shell
|
|
REQUIRED
|
|
TARGETS Shell
|
|
)
|
|
|
|
set(SOURCES
|
|
AST.cpp
|
|
Builtin.cpp
|
|
Formatter.cpp
|
|
ImmediateFunctions.cpp
|
|
Job.cpp
|
|
NodeVisitor.cpp
|
|
Parser.cpp
|
|
PosixLexer.cpp
|
|
PosixParser.cpp
|
|
Shell.cpp
|
|
)
|
|
|
|
serenity_lib(LibShell shell)
|
|
target_link_libraries(LibShell PRIVATE LibCore LibFileSystem LibLine LibSyntax LibRegex LibURL)
|
|
|
|
if (SERENITYOS)
|
|
target_sources(LibShell PRIVATE SyntaxHighlighter.cpp)
|
|
target_link_libraries(LibShell PRIVATE LibCodeComprehension)
|
|
endif()
|
|
|
|
if (ENABLE_FUZZERS)
|
|
add_custom_target(Shell) # Stub target to placate serenity_component
|
|
else()
|
|
set(SOURCES main.cpp)
|
|
|
|
serenity_bin(Shell)
|
|
target_link_libraries(Shell PRIVATE LibCore LibFileSystem LibLine LibShell LibMain)
|
|
|
|
install(DIRECTORY Tests/ DESTINATION usr/Tests/Shell
|
|
PATTERN "Tests/*"
|
|
PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
|
|
GROUP_EXECUTE GROUP_READ
|
|
WORLD_EXECUTE WORLD_READ)
|
|
endif()
|