mirror of
https://github.com/ivabus/pantry
synced 2024-11-25 09:55:06 +03:00
parent
533e481097
commit
8a7e8e8d98
1 changed files with 20 additions and 14 deletions
|
@ -25,7 +25,7 @@ build:
|
||||||
dependencies:
|
dependencies:
|
||||||
freedesktop.org/pkg-config: ^0.29
|
freedesktop.org/pkg-config: ^0.29
|
||||||
cmake.org: ^3
|
cmake.org: ^3
|
||||||
gnu.org/coreutils: '*' # deps.sh needs “realpath”
|
gnu.org/coreutils: '*' # deps.sh needs “realpath”
|
||||||
git-scm.org: ^2
|
git-scm.org: ^2
|
||||||
working-directory: build
|
working-directory: build
|
||||||
script:
|
script:
|
||||||
|
@ -38,21 +38,27 @@ build:
|
||||||
find third_party -not -name sjpeg -and -not -name libjpeg-turbo -mindepth 1 -maxdepth 1 -type d | xargs rm -rf
|
find third_party -not -name sjpeg -and -not -name libjpeg-turbo -mindepth 1 -maxdepth 1 -type d | xargs rm -rf
|
||||||
working-directory: ..
|
working-directory: ..
|
||||||
|
|
||||||
- cmake ..
|
- cmake .. $ARGS
|
||||||
-DCMAKE_BUILD_TYPE=Release
|
|
||||||
-DCMAKE_INSTALL_PREFIX={{prefix}}
|
|
||||||
-DBUILD_TESTING=OFF
|
|
||||||
-DJPEGXL_ENABLE_SKCMS=OFF
|
|
||||||
-DJPEGXL_ENABLE_BENCHMARK=OFF
|
|
||||||
-DJPEGXL_VERSION={{version}}
|
|
||||||
|
|
||||||
- make --jobs {{ hw.concurrency }} install
|
- make --jobs {{ hw.concurrency }} install
|
||||||
|
env:
|
||||||
|
ARGS:
|
||||||
|
- -DCMAKE_BUILD_TYPE=Release
|
||||||
|
- -DCMAKE_INSTALL_PREFIX={{prefix}}
|
||||||
|
- -DBUILD_TESTING=OFF
|
||||||
|
- -DJPEGXL_ENABLE_SKCMS=OFF
|
||||||
|
- -DJPEGXL_ENABLE_BENCHMARK=OFF
|
||||||
|
- -DJPEGXL_VERSION={{version}}
|
||||||
|
linux/x86-64:
|
||||||
|
ARGS:
|
||||||
|
# ld.lld: error: undefined reference due to --no-allow-shlib-undefined: __extendhfsf2
|
||||||
|
- -DCMAKE_EXE_LINKER_FLAGS=-Wl,--allow-shlib-undefined
|
||||||
|
|
||||||
test: |
|
test:
|
||||||
cjxl fixture.jpeg out.jxl
|
- cjxl fixture.jpeg out.jxl
|
||||||
|
|
||||||
cc fixture1.c -ljxl
|
- cc fixture1.c -ljxl
|
||||||
./a.out
|
- ./a.out
|
||||||
|
|
||||||
cc fixture2.c -ljxl_threads
|
- cc fixture2.c -ljxl_threads
|
||||||
./a.out
|
- ./a.out
|
||||||
|
|
Loading…
Reference in a new issue