mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
parent
b57bb025e8
commit
1026fcda6a
1 changed files with 30 additions and 33 deletions
|
@ -1,5 +1,7 @@
|
||||||
distributable:
|
distributable:
|
||||||
url: https://github.com/g-truc/glm/releases/download/{{version}}/glm-{{version}}.zip
|
- url: https://github.com/g-truc/glm/releases/download/{{version.tag}}/glm-{{version.tag}}.zip
|
||||||
|
# v1.0.0 added -light
|
||||||
|
- url: https://github.com/g-truc/glm/releases/download/{{version.tag}}/glm-{{version.tag}}-light.zip
|
||||||
|
|
||||||
versions:
|
versions:
|
||||||
github: g-truc/glm
|
github: g-truc/glm
|
||||||
|
@ -7,24 +9,21 @@ versions:
|
||||||
build:
|
build:
|
||||||
dependencies:
|
dependencies:
|
||||||
cmake.org: ^3
|
cmake.org: ^3
|
||||||
working-directory: glm/build
|
working-directory: glm
|
||||||
script:
|
script:
|
||||||
- cmake .. $ARGS
|
- cmake -S . -B build $ARGS
|
||||||
- make --jobs {{ hw.concurrency }}
|
- cmake --build build -- all
|
||||||
- run: |
|
|
||||||
mkdir -p {{prefix}}/include {{prefix}}/lib/pkgconfig
|
|
||||||
rm glm/CMakeLists.txt
|
|
||||||
mv glm {{prefix}}/include
|
|
||||||
mv cmake/glm {{prefix}}/lib/cmake
|
|
||||||
|
|
||||||
cp $SRCROOT/props/glm.pc {{prefix}}/lib/pkgconfig
|
- mkdir -p {{prefix}}/include {{prefix}}/lib/pkgconfig
|
||||||
echo 'Version: {{version}}' >> {{prefix}}/lib/pkgconfig/glm.pc
|
- cp -a detail ext gtc gtx simd *.hpp '{{prefix}}/include'
|
||||||
working-directory: ..
|
- run: ln -s . glm
|
||||||
|
working-directory: '{{prefix}}/include'
|
||||||
env:
|
env:
|
||||||
ARGS:
|
ARGS:
|
||||||
- -DCMAKE_INSTALL_PREFIX={{prefix}}
|
- -DCMAKE_INSTALL_PREFIX={{prefix}}
|
||||||
- -DCMAKE_BUILD_TYPE=Release
|
- -DCMAKE_BUILD_TYPE=Release
|
||||||
- -DCMAKE_VERBOSE_MAKEFILE=ON
|
- -DCMAKE_VERBOSE_MAKEFILE=ON
|
||||||
|
- -DBUILD_SHARED_LIBS=ON
|
||||||
CXXFLAGS:
|
CXXFLAGS:
|
||||||
- -std=c++17
|
- -std=c++17
|
||||||
# or fails to build with clang 15
|
# or fails to build with clang 15
|
||||||
|
@ -38,25 +37,23 @@ build:
|
||||||
CXXFLAGS:
|
CXXFLAGS:
|
||||||
- -fPIC
|
- -fPIC
|
||||||
|
|
||||||
# runtime:
|
|
||||||
# env:
|
|
||||||
# CPATH: /usr/include/c++
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
fixture: |
|
script:
|
||||||
#include <glm/vec2.hpp>// glm::vec2
|
- run: c++ $FIXTURE
|
||||||
int main() {
|
fixture:
|
||||||
std::size_t const VertexCount = 4;
|
extname: cpp
|
||||||
std::size_t const PositionSizeF32 = VertexCount * sizeof(glm::vec2);
|
content: |
|
||||||
glm::vec2 const PositionDataF32[VertexCount] = {
|
#include <glm/vec2.hpp>// glm::vec2
|
||||||
glm::vec2(-1.0f,-1.0f),
|
int main() {
|
||||||
glm::vec2( 1.0f,-1.0f),
|
std::size_t const VertexCount = 4;
|
||||||
glm::vec2( 1.0f, 1.0f),
|
std::size_t const PositionSizeF32 = VertexCount * sizeof(glm::vec2);
|
||||||
glm::vec2(-1.0f, 1.0f)
|
glm::vec2 const PositionDataF32[VertexCount] = {
|
||||||
};
|
glm::vec2(-1.0f,-1.0f),
|
||||||
return 0;
|
glm::vec2( 1.0f,-1.0f),
|
||||||
}
|
glm::vec2( 1.0f, 1.0f),
|
||||||
script: |
|
glm::vec2(-1.0f, 1.0f)
|
||||||
mv $FIXTURE b.cpp
|
};
|
||||||
c++ b.cpp
|
return 0;
|
||||||
./a.out
|
}
|
||||||
|
|
||||||
|
- ./a.out
|
||||||
|
|
Loading…
Reference in a new issue