Skip to content

Commit

Permalink
Update skia
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Aug 4, 2024
1 parent 41f2145 commit 6170a72
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/cmake/friction-common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ if(WIN32)
skia
user32
opengl32)
add_definitions(-DSKIA_DLL)
else()
if(APPLE)
set(SKIA_LIBRARIES skia)
Expand Down
6 changes: 5 additions & 1 deletion src/engine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ if(WIN32)
else()
set(SKIA_UPDATE_CMD :)
endif()
set(SKIA_ARGS "target_os=\"windows\" host_os=\"win\" current_os=\"win\" target_cpu=\"x64\"")
set(SKIA_ARGS "target_os=\"windows\" host_os=\"win\" current_os=\"win\" target_cpu=\"x64\" is_component_build=true")
set(SKIA_ARGS "${SKIA_ARGS} clang_win=\"C:\\Program Files\\LLVM\" cc=\"clang-cl\" cxx=\"clang-cl\"")
set(SKIA_ARGS "${SKIA_ARGS} extra_cflags=[\"-Wno-error\",\"/MD\",\"/O2\"]")
else()
Expand Down Expand Up @@ -104,3 +104,7 @@ ExternalProject_Add(
USES_TERMINAL_CONFIGURE true
USES_TERMINAL_BUILD true
)

if(WIN32)
add_custom_command(TARGET Engine POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${SKIA_BUILD_DIR}/skia.dll.lib ${SKIA_BUILD_DIR}/skia.lib)
endif()
2 changes: 1 addition & 1 deletion src/engine/skia

0 comments on commit 6170a72

Please sign in to comment.