Skip to content

Commit

Permalink
feat: put resource files in root folder directly
Browse files Browse the repository at this point in the history
  • Loading branch information
tishion committed Dec 13, 2024
1 parent c9c9c9b commit 070672c
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -246,14 +246,9 @@ if(OS_WINDOWS)
# .1 copy the cef resources to output dir
COMMAND ${CMAKE_COMMAND} -E copy_directory
"${CEF_RESOURCE_DIR}"
"$<TARGET_FILE_DIR:${CEFVIEW_WING_NAME}>/resources"

# .2 move the icudtl.dat to root of output dir
COMMAND ${CMAKE_COMMAND} -E rename
"$<TARGET_FILE_DIR:${CEFVIEW_WING_NAME}>/resources/icudtl.dat"
"$<TARGET_FILE_DIR:${CEFVIEW_WING_NAME}>/icudtl.dat"
"$<TARGET_FILE_DIR:${CEFVIEW_WING_NAME}>"

# .3 copy all cef binary files to output dir
# copy all cef binary files to output dir
COMMAND ${CMAKE_COMMAND} -E copy_directory
"${CEF_BINARY_DIR}"
"$<TARGET_FILE_DIR:${CEFVIEW_WING_NAME}>"
Expand Down Expand Up @@ -316,14 +311,9 @@ if(OS_LINUX)
# .1 copy the cef resources to output dir
COMMAND ${CMAKE_COMMAND} -E copy_directory
"${CEF_RESOURCE_DIR}"
"$<TARGET_FILE_DIR:${CEFVIEW_WING_NAME}>/resources"

# .2 move the icudtl.dat to root of output dir
COMMAND ${CMAKE_COMMAND} -E rename
"$<TARGET_FILE_DIR:${CEFVIEW_WING_NAME}>/resources/icudtl.dat"
"$<TARGET_FILE_DIR:${CEFVIEW_WING_NAME}>/icudtl.dat"
"$<TARGET_FILE_DIR:${CEFVIEW_WING_NAME}>"

# .3 copy all cef binary files to output dir
# copy all cef binary files to output dir
COMMAND ${CMAKE_COMMAND} -E copy_directory
"${CEF_BINARY_DIR}"
"$<TARGET_FILE_DIR:${CEFVIEW_WING_NAME}>"
Expand Down

0 comments on commit 070672c

Please sign in to comment.