Skip to content

Commit

Permalink
Added back plutovg as a submodule, added option to use system version
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Dec 31, 2024
1 parent eed37b4 commit e395259
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "third_party/plutovg"]
path = third_party/plutovg
url = https://github.com/sammycage/plutovg.git
15 changes: 6 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@ set(LUNASVG_VERSION_MICRO 0)

project(lunasvg LANGUAGES CXX VERSION ${LUNASVG_VERSION_MAJOR}.${LUNASVG_VERSION_MINOR}.${LUNASVG_VERSION_MICRO})

include(FetchContent)
FetchContent_Declare(plutovg
GIT_REPOSITORY https://github.com/sammycage/plutovg.git
GIT_TAG main
GIT_SHALLOW ON
FIND_PACKAGE_ARGS 0.0.4
)

FetchContent_MakeAvailable(plutovg)
option(LUNASVG_USE_SYSTEM_PLUTOVG "Use installed version of plutovg instead of bundled submodule" OFF)
if (LUNASVG_USE_SYSTEM_PLUTOVG)
find_package(plutovg 0.0.4 REQUIRED)
else()
add_subdirectory(third_party/plutovg)
endif()

set(lunasvg_sources
source/lunasvg.cpp
Expand Down
1 change: 1 addition & 0 deletions third_party/plutovg
Submodule plutovg added at e026d0

0 comments on commit e395259

Please sign in to comment.