mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 06:22:46 +00:00 
			
		
		
		
	 6fcc1c7426
			
		
	
	
		6fcc1c7426
		
	
	
	
	
		
			
			Since AK can't refer to LibUnicode directly, the strategy here is that if you need case transformations, you can link LibUnicode and receive them. If you try to use either of these methods without linking it, then you'll of course get a linker error (note we don't do any fallbacks to e.g. ASCII case transformations). If you don't need these methods, you don't have to link LibUnicode.
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			462 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			462 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| include(${SerenityOS_SOURCE_DIR}/Meta/CMake/unicode_data.cmake)
 | |
| 
 | |
| set(SOURCES
 | |
|     CharacterTypes.cpp
 | |
|     CurrencyCode.cpp
 | |
|     Emoji.cpp
 | |
|     Normalize.cpp
 | |
|     String.cpp
 | |
|     UnicodeUtils.cpp
 | |
|     ${UNICODE_DATA_SOURCES}
 | |
| )
 | |
| set(GENERATED_SOURCES ${CURRENT_LIB_GENERATED})
 | |
| 
 | |
| serenity_lib(LibUnicode unicode)
 | |
| target_link_libraries(LibUnicode PRIVATE LibCore)
 | |
| target_compile_definitions(LibUnicode PRIVATE ENABLE_UNICODE_DATA=$<BOOL:${ENABLE_UNICODE_DATABASE_DOWNLOAD}>)
 |