mirror of
https://github.com/ivabus/pantry
synced 2024-11-14 04:25:08 +03:00
31 lines
No EOL
760 B
YAML
31 lines
No EOL
760 B
YAML
distributable:
|
|
url: https://github.com/zeux/pugixml/releases/download/v{{version.marketing}}/pugixml-{{version.marketing}}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
github: zeux/pugixml
|
|
|
|
build:
|
|
dependencies:
|
|
cmake.org: '*'
|
|
script: |
|
|
cmake -S . -B build $ARGS
|
|
cmake --build build
|
|
cmake --install build
|
|
env:
|
|
ARGS:
|
|
- -DBUILD_SHARED_LIBS=ON
|
|
- -DPUGIXML_BUILD_SHARED_AND_STATIC_LIBS=ON
|
|
- -DCMAKE_INSTALL_PREFIX={{prefix}}
|
|
- -DCMAKE_BUILD_TYPE=Release
|
|
- -DCMAKE_VERBOSE_MAKEFILE=ON
|
|
- -Wno-dev
|
|
- -DBUILD_TESTING=OFF
|
|
|
|
test:
|
|
dependencies:
|
|
freedesktop.org/pkg-config: '*'
|
|
script: |
|
|
pkg-config --modversion pugixml | grep {{version.marketing}}
|
|
g++ test.cpp -o test -lpugixml
|
|
./test |