Skip to content

Commit

Permalink
skia: Linux changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Dec 26, 2024
1 parent b8cfe8c commit 3f73d2f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/cmake/friction-common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@ if(WIN32)
add_definitions(-DSKIA_DLL)
set(SKIA_LIBRARIES_DIRS ${CMAKE_SOURCE_DIR}/sdk/bin)
else()
set(SKIA_LIBRARIES skia)
if(APPLE)
set(SKIA_LIBRARIES skia)
else()
set(SKIA_LIBRARIES skia.friction)
endif()
if(UNIX AND NOT APPLE)
pkg_check_modules(UNWIND REQUIRED libunwind)
set(GPERF_INCLUDE_DIRS ${CMAKE_CURRENT_BINARY_DIR}/../gperftools ${UNWIND_INCLUDE_DIRS})
Expand Down
10 changes: 10 additions & 0 deletions src/engine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,16 @@ ExternalProject_Add(
USES_TERMINAL_BUILD true
)

if(UNIX AND NOT APPLE)
include(GNUInstallDirs)
install(
FILES
${SKIA_BUILD_DIR}/libskia.friction.so
DESTINATION
${CMAKE_INSTALL_LIBDIR}
)
endif()

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
Submodule skia updated 1 files
+1 −1 gn/toolchain/BUILD.gn

0 comments on commit 3f73d2f

Please sign in to comment.