mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
assimp.org (#2579)
* assimp.org * build shared * -std=c++11 * -static-libstdc++ * modified: projects/assimp.org/package.yml new file: projects/assimp.org/test.cpp new file: projects/assimp.org/test.obj
This commit is contained in:
parent
e8048bb66e
commit
0da6f671d0
44
projects/assimp.org/package.yml
Normal file
44
projects/assimp.org/package.yml
Normal file
|
@ -0,0 +1,44 @@
|
|||
distributable:
|
||||
url: https://github.com/assimp/assimp/archive/v{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
versions:
|
||||
github: assimp/assimp
|
||||
dependencies:
|
||||
zlib.net: '*'
|
||||
build:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
gnu.org/make: '*'
|
||||
cmake.org: '*'
|
||||
ninja-build.org: '*'
|
||||
darwin:
|
||||
curl.se: '*'
|
||||
gnu.org/patch: '*'
|
||||
script:
|
||||
- run: curl $PATCH | patch -p1 || true
|
||||
if: darwin
|
||||
- cmake -S . -B build -G Ninja $CMAKE_ARGS
|
||||
- cmake --build build
|
||||
- cmake --install build
|
||||
env:
|
||||
PATCH: https://github.com/assimp/assimp/commit/5a89d6fee138f8bc979b508719163a74ddc9a384.patch?full_index=1
|
||||
CMAKE_ARGS:
|
||||
- -DCMAKE_INSTALL_PREFIX="{{prefix}}
|
||||
- -DCMAKE_INSTALL_LIBDIR=lib
|
||||
- -DCMAKE_BUILD_TYPE=Release
|
||||
- -DCMAKE_FIND_FRAMEWORK=LAST
|
||||
- -DCMAKE_VERBOSE_MAKEFILE=ON
|
||||
- -Wno-dev
|
||||
- -DASSIMP_BUILD_TESTS=OFF
|
||||
- -DASSIMP_BUILD_ASSIMP_TOOLS=ON
|
||||
- -DCMAKE_INSTALL_RPATH="{{prefix}}"
|
||||
provides:
|
||||
- bin/assimp
|
||||
test:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
script:
|
||||
- cc -std=c++11 test.cpp -lassimp -o test
|
||||
- ./test
|
||||
- assimp export test.obj test.ply
|
||||
- assimp version | grep {{version.marketing}}
|
5
projects/assimp.org/test.cpp
Normal file
5
projects/assimp.org/test.cpp
Normal file
|
@ -0,0 +1,5 @@
|
|||
#include <assimp/Importer.hpp>
|
||||
int main() {
|
||||
Assimp::Importer importer;
|
||||
return 0;
|
||||
}
|
28
projects/assimp.org/test.obj
Normal file
28
projects/assimp.org/test.obj
Normal file
|
@ -0,0 +1,28 @@
|
|||
# WaveFront .obj file - a single square based pyramid
|
||||
|
||||
# Start a new group:
|
||||
g MySquareBasedPyramid
|
||||
|
||||
# List of vertices:
|
||||
# Front left
|
||||
v -0.5 0 0.5
|
||||
# Front right
|
||||
v 0.5 0 0.5
|
||||
# Back right
|
||||
v 0.5 0 -0.5
|
||||
# Back left
|
||||
v -0.5 0 -0.5
|
||||
# Top point (top of pyramid).
|
||||
v 0 1 0
|
||||
|
||||
# List of faces:
|
||||
# Square base (note: normals are placed anti-clockwise).
|
||||
f 4 3 2 1
|
||||
# Triangle on front
|
||||
f 1 2 5
|
||||
# Triangle on back
|
||||
f 3 4 5
|
||||
# Triangle on left side
|
||||
f 4 1 5
|
||||
# Triangle on right side
|
||||
f 2 3 5
|
Loading…
Reference in a new issue