Skip to content

Commit

Permalink
use vcpkg ports for freetype
Browse files Browse the repository at this point in the history
  • Loading branch information
SHIINASAMA committed Oct 18, 2024
1 parent 22bcb7a commit a5453dd
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
18 changes: 18 additions & 0 deletions ports/rlottie/0001-export-runtime-and-modify-pixman.patch
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,24 @@ index 38a9862..3bb9d39 100644
)

#install config file.
diff --git a/src/vector/freetype/CMakeLists.txt b/src/vector/freetype/CMakeLists.txt
index add0d42..d7d487d 100644
--- a/src/vector/freetype/CMakeLists.txt
+++ b/src/vector/freetype/CMakeLists.txt
@@ -1,11 +1,2 @@
-target_sources(rlottie
- PRIVATE
- "${CMAKE_CURRENT_LIST_DIR}/v_ft_math.cpp"
- "${CMAKE_CURRENT_LIST_DIR}/v_ft_raster.cpp"
- "${CMAKE_CURRENT_LIST_DIR}/v_ft_stroker.cpp"
- )
-
-target_include_directories(rlottie
- PRIVATE
- "${CMAKE_CURRENT_LIST_DIR}"
- )
+find_package(Freetype REQUIRED)
+target_link_libraries(rlottie PRIVATE Freetype::Freetype)
diff --git a/src/vector/vdrawhelper_neon.cpp b/src/vector/vdrawhelper_neon.cpp
index 681eabb..e178012 100644
--- a/src/vector/vdrawhelper_neon.cpp
Expand Down
4 changes: 4 additions & 0 deletions ports/rlottie/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
"description": "A platform independent standalone library that plays Lottie Animation.",
"homepage": "https://github.com/Samsung/rlottie",
"dependencies": [
{
"name": "freetype",
"default-features": false
},
{
"name": "vcpkg-cmake",
"host": true
Expand Down

0 comments on commit a5453dd

Please sign in to comment.