Files
serenity/Userland/Libraries/LibShell/CMakeLists.txt
Liav A. 6cd24efcbe Userland: Reduce further the amount of dependencies for LibShellMinimal
To be able to do this, we actually change multiple things:
- We create another subset library from LibCore called LibCoreBasic.
- We force LibLine and LibShellMinimal to use LibCoreMinimal and
  LibCoreBasic and only these, instead of the full version (LibCore).
2024-10-04 10:56:27 +02:00

26 lines
723 B
CMake

set(SOURCES
AST.cpp
Builtin.cpp
Formatter.cpp
ImmediateFunctions.cpp
Job.cpp
NodeVisitor.cpp
Parser.cpp
PosixLexer.cpp
PosixParser.cpp
Shell.cpp
)
serenity_lib(LibShellMinimal shellminimal)
target_link_libraries(LibShellMinimal PRIVATE LibCoreMinimal LibCoreBasic LibRegex LibLine LibFileSystem)
target_sources(LibShellMinimal PRIVATE MinimalHighlight.cpp)
serenity_lib(LibShell shell)
target_link_libraries(LibShell PRIVATE LibCore LibRegex LibLine LibFileSystem LibSyntax LibURL)
target_sources(LibShell PRIVATE URLHighlight.cpp)
if (SERENITYOS)
target_sources(LibShell PRIVATE SyntaxHighlighter.cpp)
target_link_libraries(LibShell PRIVATE LibCodeComprehension)
endif()