mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:17:44 +00:00
Meta+Userland: Add jakt as an optional Lagom Tool
We can now use ENABLE_JAKT to pull jakt as a host tool and use it to pre-process .jakt files into .cpp files for use in serenity applications
This commit is contained in:
parent
f19aad8336
commit
ca42da23c2
11 changed files with 122 additions and 3 deletions
|
@ -51,6 +51,19 @@ foreach(CMD_SRC ${CMD_SOURCES})
|
|||
endif()
|
||||
endforeach()
|
||||
|
||||
if (ENABLE_JAKT)
|
||||
add_executable(hello-jakt hello-world.cpp)
|
||||
compile_jakt(hello-world.jakt)
|
||||
target_link_libraries(hello-jakt LibC)
|
||||
set_target_properties(hello-jakt PROPERTIES EXCLUDE_FROM_ALL TRUE)
|
||||
install(TARGETS hello-jakt RUNTIME DESTINATION bin OPTIONAL)
|
||||
serenity_component(
|
||||
hello-jakt
|
||||
RECOMMENDED
|
||||
TARGETS hello-jakt
|
||||
)
|
||||
endif()
|
||||
|
||||
install(CODE "file(CREATE_LINK grep ${CMAKE_INSTALL_PREFIX}/bin/egrep SYMBOLIC)")
|
||||
install(CODE "file(CREATE_LINK grep ${CMAKE_INSTALL_PREFIX}/bin/rgrep SYMBOLIC)")
|
||||
|
||||
|
|
3
Userland/Utilities/hello-world.jakt
Normal file
3
Userland/Utilities/hello-world.jakt
Normal file
|
@ -0,0 +1,3 @@
|
|||
function main() {
|
||||
println("Hello, World, from jakt!");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue