This project is a build2 package repository that provides access to tinyexr
, a small, single-header-only C++ library to load and save OpenEXR (.exr
) images.
Make sure to add the stable 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/tinyexr.git
Add the respective dependency in your project's manifest
file to make the package available for import.
depends: libtinyexr ^1.0.9
The library can be imported by the following declaration in a buildfile
.
import tinyexr = libtinyexr%lib{tinyexr}
There are no configuration options available.
- The test data in the
libtinyexr-tests
package is more than 240 MiB in size and, as a consequence, not publishable oncppget.org
because it is too large. Thus, it is not declared as the mandatory external tests package oflibtinyexr
. It can and should still be used for local testing and for CI runs. - By using the macros
TINYEXR_USE_THREAD
orTINYEXR_USE_OPENMP
,tinyexr
is able to support multithreading by either using C++11 threads or OpenMP. Please note that the package's build system is not automatically adding dependencies and flags forpthread
or OpenMP. - Currently, the configuration of dependencies for
tinyexr
is not handled by the package's build system.tinyexr
usesminiz
by default and it does not provide specific tests for other configurations. Furthermore, support forzlib
andstb
's implementation ofzlib
only seems to be useful when usingtinyexr
without a build system as drop-in header file. So, for now, please refrain from using the following macros.TINYEXR_USE_MINIZ
TINYEXR_USE_STB_ZLIB
tinyexr
adds ZFP compression only as an experimental support on Linux and MacOS. Currently, it is not supported by the packgage's build system. Hence, please, refrain from using the following macro.TINYEXR_USE_ZFP
- The compilation of the tests package
libtinyexr-tests
is not supported on target configurationswindows*-clang**
due to the wrong encoding ofwin32-filelist-utf16le.inc
. Presumably, this will not be fixed as it is an upstream issue. Please note that the compilation and execution of the basic tests still works on these configurations. Thus, the library should work without flaws on those platforms. - For Windows, the file
'日本語.exr'
and the testutf8filename
had to be removed from distribution and execution, respectively. Please, see this issue for more information. - Emscripten is not supported.
- The examples are not supported by the package's build system, yet.
- For now, the fuzzers are not compiled and run.
Thank you in advance for your help and contribution to keep this package up-to-date.
Please, file an issue on GitHub for questions, bug reports, or to recommend updating the package version.
If you're making a pull request to fix bugs or update the package version yourself, refer to the build2
Packaging Guidelines.