mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
infra : add window build (with loaders)
This commit is contained in:
parent
a678846068
commit
5e7981106b
2 changed files with 26 additions and 5 deletions
25
.github/workflows/build_win.yml
vendored
25
.github/workflows/build_win.yml
vendored
|
@ -11,16 +11,13 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ilammy/msvc-dev-cmd@v1
|
||||
with:
|
||||
submodules: true
|
||||
- name: Install Packages
|
||||
run: |
|
||||
pip install meson==0.58.0 ninja
|
||||
- name: Build
|
||||
run: |
|
||||
meson --backend=ninja build --buildtype=release
|
||||
meson --backend=ninja build
|
||||
where link
|
||||
ninja -C build
|
||||
ninja -C build install
|
||||
|
||||
- uses: actions/upload-artifact@v2
|
||||
|
@ -28,3 +25,23 @@ jobs:
|
|||
name: result
|
||||
path: build/src\thorvg*
|
||||
|
||||
build_with_loaders:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: ilammy/msvc-dev-cmd@v1
|
||||
- name: Install Packages
|
||||
run: |
|
||||
pip install meson==0.58.0 ninja
|
||||
|
||||
- name: Install Packages(png, jpg)
|
||||
run: |
|
||||
vcpkg install libpng
|
||||
vcpkg install libjpeg-turbo
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
meson --backend=ninja build -Dloaders="svg, tvg, png, jpg" -Dsavers="tvg" -Dbindings="capi"
|
||||
where link
|
||||
ninja -C build install
|
||||
|
||||
|
|
|
@ -3,7 +3,11 @@ source_file = [
|
|||
'tvgPngLoader.cpp',
|
||||
]
|
||||
|
||||
png_dep = meson.get_compiler('cpp').find_library('libpng')
|
||||
png_dep = dependency('libpng', required: false)
|
||||
|
||||
if not png_dep.found()
|
||||
png_dep = meson.get_compiler('cpp').find_library('libpng')
|
||||
endif
|
||||
|
||||
if png_dep.found()
|
||||
subloader_dep += [declare_dependency(
|
||||
|
|
Loading…
Add table
Reference in a new issue