Skip to content

Commit

Permalink
Bump plutovg version to 0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sammycage committed Sep 5, 2024
1 parent 16c78d1 commit b1eb778
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 17 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true
- name: Build with meson
run: |
pip install meson
Expand All @@ -27,8 +25,6 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true
- name: Build with meson
run: |
pip install meson
Expand All @@ -47,8 +43,6 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true
- name: Build with meson
run: |
pip install meson
Expand Down
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

15 changes: 10 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ 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 v0.0.2
GIT_SHALLOW ON
FIND_PACKAGE_ARGS 0.0.2
)

FetchContent_MakeAvailable(plutovg)

set(lunasvg_sources
source/lunasvg.cpp
source/graphics.cpp
Expand All @@ -32,11 +42,6 @@ set(lunasvg_headers
source/svgtextelement.h
)

find_package(plutovg 0.0.1 QUIET)
if(NOT plutovg_FOUND)
add_subdirectory(plutovg)
endif()

add_library(lunasvg ${lunasvg_sources} ${lunasvg_headers})
add_library(lunasvg::lunasvg ALIAS lunasvg)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ ninja -C build install
### Using CMake

```bash
git clone --recursive https://github.com/sammycage/lunasvg.git
git clone https://github.com/sammycage/lunasvg.git
cd lunasvg
cmake -B build .
make -C build -j2
Expand Down
1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ project('lunasvg', 'cpp',

plutovg_dep = dependency('plutovg',
required: true,
version: '>=0.0.2',
fallback: ['plutovg', 'plutovg_dep']
)

Expand Down
1 change: 0 additions & 1 deletion plutovg
Submodule plutovg deleted from b93ade
2 changes: 1 addition & 1 deletion subprojects/plutovg.wrap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[wrap-git]
url = https://github.com/sammycage/plutovg.git
revision = head
revision = v0.0.2
depth = 1

[provide]
Expand Down

0 comments on commit b1eb778

Please sign in to comment.