Header-only C++ mathematics library for graphics software based on the OpenGL Shading Language (GLSL) specifications
This project builds and defines the build2 package for GLM, also known as the OpenGL Mathematics (GLM) header-only C++ library for graphics software based on OpenGL Shading Language (GLSL) specifications.
Usage
Make sure to add the stable or alpha section of the cppget.org
repository to your project's repositories.manifest
to be able to fetch this package.
:
role: prerequisite
location: https://pkg.cppget.org/1/stable
# trust: ...
If the stable section of cppget.org
is not an option then add this Git repository itself instead as a prerequisite.
:
role: prerequisite
location: https://github.com/build2-packaging/glm.git
Add the respective dependency in your project's manifest
file to make the package available for import.
depends: glm ^0.9.9
The library can be imported by the following declaration in a buildfile
.
import glm = glm%lib{glm}
Configuration
There are no configuration options available.
Issues and Notes
- As there are too many configuration macros, no precompiled library target is provided.
inconsistent C++ compiler behavior
bug for GCC version 12:g++
seems not to be able to consistently processtests/core/core_setup_message.cpp
because the preprocessing ofglm/detail/setup.hpp
leads tointernal compiler error: unspellable token PRAGMA_EOL
. As it is working for GCC version 13, this might be caused by an older bug in GCC 12 that already has been fixed.
Contributing
Thanks in advance for your help and contribution to keep this package up-to-date. For now, please, file an issue on GitHub for everything that is not described below.
Recommend Updating Version
Please, file an issue on GitHub with the new recommended version.
Update Version by Pull Request
- Fork the repository on GitHub and clone it to your local machine.
- Run
git submodule init
andgit submodule update
to get the current upstream directory. - Inside the
upstream
directory, checkout the new library versionX.Y.Z
by callinggit checkout vX.Y.Z
that you want to be packaged. - If needed, change source files,
buildfiles
, and symbolic links accordingly to create a working build2 package. Make sure not to directly depend on the upstream directory inside the build system but use symbolic links instead. - Update library version in
manifest
file if it has changed or add package update by using+n
for then
-th update. - Make an appropriate commit message by using imperative mood and a capital letter at the start and push the new commit to the
master
branch. - Run
bdep ci
and test for errors. - If everything works fine, make a pull request on GitHub and write down the
bdep ci
link to your CI tests. - After a successful pull request, we will run the appropriate commands to publish a new package version.
Update Version Directly if You Have Permissions
- Inside the
upstream
directory, checkout the new library versionX.Y.Z
by callinggit checkout vX.Y.Z
that you want to be packaged. - If needed, change source files,
buildfiles
, and symbolic links accordingly to create a working build2 package. Make sure not to directly depend on the upstream directory inside the build system but use symbolic links instead. - Update library version in
manifest
file if it has changed or add package update by using+n
for then
-th update. - Make an appropriate commit message by using imperative mood and a capital letter at the start and push the new commit to the
master
branch. - Run
bdep ci
and test for errors and warnings. - When successful, run
bdep release --tag --push
to push new tag version to repository. - Run
bdep publish
to publish the package to cppget.org.
license | MIT or The Happy Bunny License |
---|---|
project | glm |
url | github.com/g-truc/glm |
mail@g-truc.net |
version | 0.9.9+2 (0.9.9.8) |
---|---|
repository | https://pkg.cppget.org/1/stable |
depends | 0 |