diff options
author | Timothy Flynn <trflynn89@pm.me> | 2022-08-23 08:47:22 -0400 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-08-23 19:03:43 +0100 |
commit | 6dd81610025171fbcc1452e9f9fcf5747cf8db38 (patch) | |
tree | 6dfb796d1f62e89eefc7e52a08f4105534ca7f5f /Meta/CMake | |
parent | 5f99934dce1e00f5856bd40dca9d5e86e71d625e (diff) | |
download | serenity-6dd81610025171fbcc1452e9f9fcf5747cf8db38.zip |
Meta: Ensure the emoji generator depends on its own script
If the script changes, it better be re-run.
Diffstat (limited to 'Meta/CMake')
-rw-r--r-- | Meta/CMake/unicode_data.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Meta/CMake/unicode_data.cmake b/Meta/CMake/unicode_data.cmake index 7af21f69f1..758d7a2412 100644 --- a/Meta/CMake/unicode_data.cmake +++ b/Meta/CMake/unicode_data.cmake @@ -66,6 +66,7 @@ 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://unicode.org/Public/emoji/${EMOJI_VERSION}/emoji-test.txt") set(EMOJI_TEST_PATH "${UCD_PATH}/emoji-test.txt") +set(EMOJI_GENERATOR_PATH "${SerenityOS_SOURCE_DIR}/Meta/generate-emoji-txt.sh") set(EMOJI_RES_PATH "${SerenityOS_SOURCE_DIR}/Base/res/emoji") set(EMOJI_INSTALL_PATH "${SerenityOS_SOURCE_DIR}/Base/home/anon/Documents/emoji.txt") @@ -236,12 +237,12 @@ if (ENABLE_UNICODE_DATABASE_DOWNLOAD) add_custom_command( OUTPUT "${EMOJI_INSTALL_PATH}" - COMMAND "${SerenityOS_SOURCE_DIR}/Meta/generate-emoji-txt.sh" "${EMOJI_TEST_PATH}" "${EMOJI_RES_PATH}" "${EMOJI_INSTALL_PATH}" + COMMAND "${EMOJI_GENERATOR_PATH}" "${EMOJI_TEST_PATH}" "${EMOJI_RES_PATH}" "${EMOJI_INSTALL_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. # This is fine for this use-case, because the contents of a file changing should not affect # the generated emoji.txt file. - DEPENDS "${EMOJI_RES_PATH}" "${EMOJI_TEST_PATH}" + DEPENDS "${EMOJI_GENERATOR_PATH}" "${EMOJI_RES_PATH}" "${EMOJI_TEST_PATH}" USES_TERMINAL ) add_custom_target(generate_emoji_txt ALL DEPENDS "${EMOJI_INSTALL_PATH}") |