mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 19:52:45 +00:00 
			
		
		
		
	 5ab3fcf710
			
		
	
	
		5ab3fcf710
		
	
	
	
	
		
			
			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.
		
	
			
		
			
				
	
	
		
			20 lines
		
	
	
	
		
			608 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
	
		
			608 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| #
 | |
| # Builds the jakt bootstrap compiler as a host tool for Lagom to compile files written in jakt
 | |
| #
 | |
| 
 | |
| include(FetchContent)
 | |
| 
 | |
| FetchContent_Declare(jakt
 | |
|     GIT_REPOSITORY https://github.com/SerenityOS/jakt.git
 | |
|     GIT_TAG main
 | |
|     GIT_SHALLOW TRUE
 | |
| )
 | |
| 
 | |
| # Allow developers to skip download/update steps with local checkout
 | |
| if (JAKT_SOURCE_DIR)
 | |
|     set(FETCHCONTENT_SOURCE_DIR_JAKT ${JAKT_SOURCE_DIR} CACHE PATH "Developer's pre-existing jakt source directory" FORCE)
 | |
|     message(STATUS "Using pre-existing JAKT_SOURCE_DIR: ${JAKT_SOURCE_DIR}")
 | |
| endif()
 | |
| 
 | |
| set(JAKT_BUILD_TESTING OFF)
 | |
| FetchContent_MakeAvailable(jakt)
 |