1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:17:36 +00:00

Meta: Update jakt build support for fully bootstrapped compiler

Remove the Corrosion dependency, and use the now-builtin
add_jakt_executable function from the Jakt install rules to build our
example application.

By using find_package(Jakt), we now have to set ENABLE_JAKT manually on
both serenity and Lagom at the same time, so the preferred method to do
this for now is:

    cmake -B Build/superbuild<arch><toolchain> \
          -S Meta/CMake/Superbuild \
          -DENABLE_JAKT=ON \
          -DJAKT_SOURCE_DIR=/path/to/jakt

Where omitting JAKT_SOURCE_DIR will still pull from the main branch of
SerenityOS/jakt. This can be done after runing Meta/serenity.sh run.
This commit is contained in:
Andrew Kaster 2022-08-28 17:47:03 -06:00 committed by Andreas Kling
parent 72ae082ca8
commit 5ab3fcf710
8 changed files with 14 additions and 81 deletions

View file

@ -52,8 +52,9 @@ foreach(CMD_SRC ${CMD_SOURCES})
endforeach()
if (ENABLE_JAKT)
add_executable(hello-jakt hello-world.cpp)
compile_jakt(hello-world.jakt)
add_jakt_executable(hello-jakt
MAIN_SOURCE 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)