mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +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:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: ilammy/msvc-dev-cmd@v1
|
- uses: ilammy/msvc-dev-cmd@v1
|
||||||
with:
|
|
||||||
submodules: true
|
|
||||||
- name: Install Packages
|
- name: Install Packages
|
||||||
run: |
|
run: |
|
||||||
pip install meson==0.58.0 ninja
|
pip install meson==0.58.0 ninja
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
meson --backend=ninja build --buildtype=release
|
meson --backend=ninja build
|
||||||
where link
|
where link
|
||||||
ninja -C build
|
|
||||||
ninja -C build install
|
ninja -C build install
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
|
@ -28,3 +25,23 @@ jobs:
|
||||||
name: result
|
name: result
|
||||||
path: build/src\thorvg*
|
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',
|
'tvgPngLoader.cpp',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
png_dep = dependency('libpng', required: false)
|
||||||
|
|
||||||
|
if not png_dep.found()
|
||||||
png_dep = meson.get_compiler('cpp').find_library('libpng')
|
png_dep = meson.get_compiler('cpp').find_library('libpng')
|
||||||
|
endif
|
||||||
|
|
||||||
if png_dep.found()
|
if png_dep.found()
|
||||||
subloader_dep += [declare_dependency(
|
subloader_dep += [declare_dependency(
|
||||||
|
|
Loading…
Add table
Reference in a new issue