Skip to content

Commit b1eb778

Browse files
committed
Bump plutovg version to 0.0.2
1 parent 16c78d1 commit b1eb778

File tree

7 files changed

+13
-17
lines changed

7 files changed

+13
-17
lines changed

.github/workflows/main.yml

-6
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ jobs:
77
steps:
88
- name: Checkout code
99
uses: actions/checkout@v4
10-
with:
11-
submodules: true
1210
- name: Build with meson
1311
run: |
1412
pip install meson
@@ -27,8 +25,6 @@ jobs:
2725
steps:
2826
- name: Checkout code
2927
uses: actions/checkout@v4
30-
with:
31-
submodules: true
3228
- name: Build with meson
3329
run: |
3430
pip install meson
@@ -47,8 +43,6 @@ jobs:
4743
steps:
4844
- name: Checkout code
4945
uses: actions/checkout@v4
50-
with:
51-
submodules: true
5246
- name: Build with meson
5347
run: |
5448
pip install meson

.gitmodules

-3
This file was deleted.

CMakeLists.txt

+10-5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ set(LUNASVG_VERSION_MICRO 0)
66

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

9+
include(FetchContent)
10+
FetchContent_Declare(plutovg
11+
GIT_REPOSITORY https://github.com/sammycage/plutovg.git
12+
GIT_TAG v0.0.2
13+
GIT_SHALLOW ON
14+
FIND_PACKAGE_ARGS 0.0.2
15+
)
16+
17+
FetchContent_MakeAvailable(plutovg)
18+
919
set(lunasvg_sources
1020
source/lunasvg.cpp
1121
source/graphics.cpp
@@ -32,11 +42,6 @@ set(lunasvg_headers
3242
source/svgtextelement.h
3343
)
3444

35-
find_package(plutovg 0.0.1 QUIET)
36-
if(NOT plutovg_FOUND)
37-
add_subdirectory(plutovg)
38-
endif()
39-
4045
add_library(lunasvg ${lunasvg_sources} ${lunasvg_headers})
4146
add_library(lunasvg::lunasvg ALIAS lunasvg)
4247

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ ninja -C build install
5353
### Using CMake
5454

5555
```bash
56-
git clone --recursive https://github.com/sammycage/lunasvg.git
56+
git clone https://github.com/sammycage/lunasvg.git
5757
cd lunasvg
5858
cmake -B build .
5959
make -C build -j2

meson.build

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ project('lunasvg', 'cpp',
77

88
plutovg_dep = dependency('plutovg',
99
required: true,
10+
version: '>=0.0.2',
1011
fallback: ['plutovg', 'plutovg_dep']
1112
)
1213

plutovg

-1
This file was deleted.

subprojects/plutovg.wrap

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[wrap-git]
22
url = https://github.com/sammycage/plutovg.git
3-
revision = head
3+
revision = v0.0.2
44
depth = 1
55

66
[provide]

0 commit comments

Comments
 (0)