mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 07:02:44 +00:00 
			
		
		
		
	LibUnicode: Generate the path to emoji images alongside emoji data
This will provide for quicker emoji lookups, rather than having to discover and allocate these paths at runtime before we find out if they even exist.
This commit is contained in:
		
							parent
							
								
									4212010ebd
								
							
						
					
					
						commit
						8c38d46c1a
					
				
					 3 changed files with 24 additions and 12 deletions
				
			
		|  | @ -64,7 +64,8 @@ set(SENTENCE_BREAK_PROP_PATH "${UCD_PATH}/${SENTENCE_BREAK_PROP_SOURCE}") | |||
| string(REGEX REPLACE "([0-9]+\\.[0-9]+)\\.[0-9]+" "\\1" EMOJI_VERSION "${UCD_VERSION}") | ||||
| set(EMOJI_TEST_URL "https://www.unicode.org/Public/emoji/${EMOJI_VERSION}/emoji-test.txt") | ||||
| set(EMOJI_TEST_PATH "${UCD_PATH}/emoji-test.txt") | ||||
| set(EMOJI_RES_PATH "${SerenityOS_SOURCE_DIR}/Base/res/emoji") | ||||
| set(EMOJI_BASE_PATH "${SerenityOS_SOURCE_DIR}/Base") | ||||
| set(EMOJI_RES_PATH "${EMOJI_BASE_PATH}/res/emoji") | ||||
| set(EMOJI_SERENITY_PATH "${SerenityOS_SOURCE_DIR}/Base/home/anon/Documents/emoji-serenity.txt") | ||||
| set(EMOJI_INSTALL_PATH "${CMAKE_BINARY_DIR}/Root/home/anon/Documents/emoji.txt") | ||||
| 
 | ||||
|  | @ -117,7 +118,7 @@ if (ENABLE_UNICODE_DATABASE_DOWNLOAD) | |||
|         "${UCD_VERSION_FILE}" | ||||
|         "${EMOJI_DATA_HEADER}" | ||||
|         "${EMOJI_DATA_IMPLEMENTATION}" | ||||
|         arguments "${EMOJI_INSTALL_ARG}" -e "${EMOJI_TEST_PATH}" -s "${EMOJI_SERENITY_PATH}" -r "${EMOJI_RES_PATH}" | ||||
|         arguments "${EMOJI_INSTALL_ARG}" -e "${EMOJI_TEST_PATH}" -s "${EMOJI_SERENITY_PATH}" -b "${EMOJI_BASE_PATH}" -r "${EMOJI_RES_PATH}" | ||||
| 
 | ||||
|         # This will make this command only run when the modified time of the directory changes, | ||||
|         # which only happens if files within it are added or deleted, but not when a file is modified. | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy Flynn
						Timothy Flynn