mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
new file: projects/github.com/Esri/lerc/package.yml
new file: projects/github.com/Esri/lerc/test.cc
This commit is contained in:
parent
66fb2a6b3b
commit
d5720d02ab
34
projects/github.com/Esri/lerc/package.yml
Normal file
34
projects/github.com/Esri/lerc/package.yml
Normal file
|
@ -0,0 +1,34 @@
|
|||
distributable:
|
||||
url: https://github.com/Esri/lerc/archive/v{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: Esri/lerc
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
tea.xyz/gx/make: '*'
|
||||
cmake.org: '*'
|
||||
|
||||
script:
|
||||
- cmake -S . -B build $ARGS
|
||||
- cmake --build build
|
||||
- cmake --install build
|
||||
env:
|
||||
ARGS:
|
||||
- -DCMAKE_INSTALL_PREFIX="{{prefix}}"
|
||||
- -DCMAKE_BUILD_TYPE=Release
|
||||
- -DCMAKE_VERBOSE_MAKEFILE=ON
|
||||
- -DCMAKE_FIND_FRAMEWORK=LAST
|
||||
- -Wno-dev
|
||||
- -DBUILD_TESTING=OFF
|
||||
|
||||
test:
|
||||
dependencies:
|
||||
freedesktop.org/pkg-config: '*'
|
||||
tea.xyz/gx/cc: c99
|
||||
script:
|
||||
- pkg-config --modversion Lerc | grep {{version}}
|
||||
- cc test.cc -std=gnu++17 -lLerc -o test
|
||||
- ./test
|
9
projects/github.com/Esri/lerc/test.cc
Normal file
9
projects/github.com/Esri/lerc/test.cc
Normal file
|
@ -0,0 +1,9 @@
|
|||
#include <Lerc_c_api.h>
|
||||
#include <Lerc_types.h>
|
||||
int main() {
|
||||
const int infoArrSize = (int)LercNS::InfoArrOrder::_last;
|
||||
const int dataRangeArrSize = (int)LercNS::DataRangeArrOrder::_last;
|
||||
lerc_status hr(0);
|
||||
|
||||
return 0 ;
|
||||
}
|
Loading…
Reference in a new issue