Add new C library for subsequent fuzz testing (#6346)

Also cleans up old cmake configure options

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
This commit is contained in:
Kimball Thurston 2021-08-29 14:12:31 +12:00 committed by GitHub
parent 68ec050a01
commit 0e7c2ba9c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -19,17 +19,16 @@ cd $WORK/
CMAKE_SETTINGS=(
"-D BUILD_SHARED_LIBS=OFF" # Build static libraries only
"-D PYILMBASE_ENABLE=OFF" # Don't build Python support
"-D BUILD_TESTING=OFF" # Or tests
"-D INSTALL_OPENEXR_EXAMPLES=OFF" # Or examples
"-D OPENEXR_INSTALL_EXAMPLES=OFF" # Or examples
"-D OPENEXR_LIB_SUFFIX=" # Don't append the version number to library files
"-D ILMBASE_LIB_SUFFIX="
)
cmake $SRC/openexr ${CMAKE_SETTINGS[@]}
make -j$(nproc)
INCLUDES=(
"-I $SRC"
"-I $SRC/openexr/src/lib/OpenEXRCore"
"-I $SRC/openexr/src/lib/OpenEXR"
"-I $SRC/openexr/src/lib/OpenEXRUtil"
"-I $WORK/cmake"
@ -38,6 +37,7 @@ INCLUDES=(
LIBS=(
"$WORK/src/lib/OpenEXRUtil/libOpenEXRUtil.a"
"$WORK/src/lib/OpenEXR/libOpenEXR.a"
"$WORK/src/lib/OpenEXRCore/libOpenEXRCore.a"
"$WORK/src/lib/IlmThread/libIlmThread.a"
"$WORK/src/lib/Iex/libIex.a"
"$WORK/_deps/imath-build/src/Imath/libImath*.a"