mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 17:22:43 +00:00 
			
		
		
		
	 789f093b2e
			
		
	
	
		789f093b2e
		
	
	
	
	
		
			
			Relative-time format patterns are of one of two forms:
    * Tensed - refer to the past or the future, e.g. "N years ago" or
      "in N years".
    * Numbered - refer to a specific numeric value, e.g. "in 1 year"
      becomes "next year" and "in 0 years" becomes "this year".
In ECMA-402, tensed and numbered refer to the numeric formatting options
of "always" and "auto", respectively.
		
	
			
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			737 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			737 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| include(${SerenityOS_SOURCE_DIR}/Meta/CMake/unicode_data.cmake)
 | |
| 
 | |
| if (DEFINED UNICODE_DATA_SOURCES)
 | |
|     set(SOURCES ${UNICODE_DATA_SOURCES})
 | |
|     serenity_lib(LibUnicodeData unicodedata)
 | |
|     target_compile_options(LibUnicodeData PRIVATE -g0 -Os)
 | |
|     target_link_libraries(LibUnicodeData LibCore LibTimeZone)
 | |
| endif()
 | |
| 
 | |
| set(SOURCES
 | |
|     CharacterTypes.cpp
 | |
|     CurrencyCode.cpp
 | |
|     DateTimeFormat.cpp
 | |
|     Locale.cpp
 | |
|     NumberFormat.cpp
 | |
|     RelativeTimeFormat.cpp
 | |
| )
 | |
| 
 | |
| serenity_lib(LibUnicode unicode)
 | |
| target_link_libraries(LibUnicode LibCore)
 | |
| target_compile_definitions(LibUnicode PRIVATE ENABLE_UNICODE_DATA=$<BOOL:${ENABLE_UNICODE_DATABASE_DOWNLOAD}>)
 | |
| 
 | |
| if (DEFINED UNICODE_DATA_SOURCES)
 | |
|     add_dependencies(LibUnicode LibUnicodeData)
 | |
| endif()
 |