mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 16:35:07 +03:00
new file: projects/github.com/danfis/libccd/package.yml
new file: projects/github.com/danfis/libccd/test.c
This commit is contained in:
parent
122973d1d4
commit
c8ae311a12
2 changed files with 40 additions and 0 deletions
28
projects/github.com/danfis/libccd/package.yml
Normal file
28
projects/github.com/danfis/libccd/package.yml
Normal file
|
@ -0,0 +1,28 @@
|
|||
distributable:
|
||||
url: https://github.com/danfis/libccd/archive/v{{version.marketing}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: danfis/libccd/tags
|
||||
stripe: ^v
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
tea.xyz/gx/make: '*'
|
||||
cmake.org: '*'
|
||||
script: |
|
||||
cmake . $ARGS
|
||||
make --jobs {{ hw.concurrency }} install
|
||||
|
||||
env:
|
||||
ARGS:
|
||||
- -DCMAKE_INSTALL_PREFIX="{{prefix}}"
|
||||
- -DENABLE_DOUBLE_PRECISION=ON
|
||||
|
||||
test:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
script: |
|
||||
cc -o test test.c -lccd
|
||||
./test
|
12
projects/github.com/danfis/libccd/test.c
Normal file
12
projects/github.com/danfis/libccd/test.c
Normal file
|
@ -0,0 +1,12 @@
|
|||
#include <assert.h>
|
||||
#include <ccd/config.h>
|
||||
#include <ccd/vec3.h>
|
||||
int main() {
|
||||
#ifndef CCD_DOUBLE
|
||||
assert(false);
|
||||
#endif
|
||||
ccdVec3PointSegmentDist2(
|
||||
ccd_vec3_origin, ccd_vec3_origin,
|
||||
ccd_vec3_origin, NULL);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue