mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-14 19:06:55 +02:00
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).
26 lines
723 B
CMake
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()
|