Skip to content

Commit

Permalink
Copy icudtl.dat file to bin/ directory (fix #4674)
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Sep 27, 2024
1 parent 61aba13 commit fa65201
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cmake/FindSkia.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -251,3 +251,15 @@ add_library(skshaper INTERFACE)
target_link_libraries(skshaper INTERFACE ${SKSHAPER_LIBRARY} skunicode)
target_compile_definitions(skshaper INTERFACE
SK_SHAPER_HARFBUZZ_AVAILABLE)

# icudtl.dat file is needed by skunicode
set(SKIA_ICUDATA_FILE ${SKIA_DIR}/third_party/externals/icu/flutter/icudtl.dat)
set(SKIA_ICUDATA_FILE_OUTPUT ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/icudtl.dat)
add_custom_command(
OUTPUT ${SKIA_ICUDATA_FILE_OUTPUT}
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${SKIA_ICUDATA_FILE} ${SKIA_ICUDATA_FILE_OUTPUT}
MAIN_DEPENDENCY ${SKIA_ICUDATA_FILE}
DEPENDS ${GEN_DEP})
add_custom_target(skia_copy_icudata
DEPENDS ${SKIA_ICUDATA_FILE_OUTPUT})
add_dependencies(skunicode skia_copy_icudata)

0 comments on commit fa65201

Please sign in to comment.