2021-06-15 15:16:32 +02:00
|
|
|
serenity_component(
|
|
|
|
Shell
|
|
|
|
REQUIRED
|
|
|
|
TARGETS Shell
|
|
|
|
)
|
|
|
|
|
2020-05-06 18:40:06 +03:00
|
|
|
set(SOURCES
|
2022-10-13 20:14:36 -06:00
|
|
|
AST.cpp
|
|
|
|
Builtin.cpp
|
|
|
|
Formatter.cpp
|
|
|
|
ImmediateFunctions.cpp
|
|
|
|
Job.cpp
|
|
|
|
NodeVisitor.cpp
|
|
|
|
Parser.cpp
|
2023-02-11 17:59:15 +03:30
|
|
|
PosixLexer.cpp
|
|
|
|
PosixParser.cpp
|
2022-10-13 20:14:36 -06:00
|
|
|
Shell.cpp
|
|
|
|
)
|
2020-09-23 09:06:30 +03:30
|
|
|
|
|
|
|
serenity_lib(LibShell shell)
|
2023-03-22 02:35:30 +11:00
|
|
|
target_link_libraries(LibShell PRIVATE LibCore LibFileSystem LibLine LibSyntax LibRegex)
|
2020-09-23 09:06:30 +03:30
|
|
|
|
2022-10-13 20:14:36 -06:00
|
|
|
if (SERENITYOS)
|
|
|
|
target_sources(LibShell PRIVATE SyntaxHighlighter.cpp)
|
2022-10-21 21:43:56 +02:00
|
|
|
target_link_libraries(LibShell PRIVATE LibCodeComprehension)
|
2022-10-13 20:14:36 -06:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if (ENABLE_FUZZERS)
|
|
|
|
add_custom_target(Shell) # Stub target to placate serenity_component
|
|
|
|
else()
|
|
|
|
set(SOURCES main.cpp)
|
2020-05-06 18:40:06 +03:00
|
|
|
|
2022-10-13 20:14:36 -06:00
|
|
|
serenity_bin(Shell)
|
2023-03-22 02:35:30 +11:00
|
|
|
target_link_libraries(Shell PRIVATE LibCore LibFileSystem LibLine LibShell LibMain)
|
2021-01-24 21:42:30 -07:00
|
|
|
|
2022-10-13 20:14:36 -06:00
|
|
|
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()
|