#!/usr/bin/env bash

set -ex

COMPILER="$1"
RELEASE="$2"
EXTRAS="$3"

cd hou
source houdini_setup_bash
cd -

mkdir build
cd build
cmake \
    -DCMAKE_CXX_COMPILER=${COMPILER} \
    -DCMAKE_BUILD_TYPE=${RELEASE} \
    -DOPENVDB_CXX_STRICT=ON \
    -DOPENVDB_BUILD_HOUDINI_PLUGIN=ON \
    -DOPENVDB_BUILD_BINARIES=${EXTRAS} \
    -DOPENVDB_BUILD_PYTHON_MODULE=${EXTRAS} \
    -DOPENVDB_BUILD_UNITTESTS=${EXTRAS} \
     ..

# Can only build using one thread with GCC due to memory constraints
if [ "$COMPILER" = "clang++" ]; then
    make -j2
else
    make
fi

#!/usr/bin/env bash

set -ex

COMPILER="$1"
RELEASE="$2"
EXTRAS="$3"

cd hou
source houdini_setup_bash
cd -

mkdir build
cd build
cmake \
    -DCMAKE_CXX_COMPILER=${COMPILER} \
    -DCMAKE_BUILD_TYPE=${RELEASE} \
    -DOPENVDB_CXX_STRICT=ON \
    -DOPENVDB_BUILD_HOUDINI_PLUGIN=ON \
    -DOPENVDB_BUILD_BINARIES=${EXTRAS} \
    -DOPENVDB_BUILD_PYTHON_MODULE=${EXTRAS} \
    -DOPENVDB_BUILD_UNITTESTS=${EXTRAS} \
    -DOPENVDB_HOUDINI_INSTALL_PREFIX=/tmp \
     ..

# Can only build using one thread with GCC due to memory constraints
if [ "$COMPILER" = "clang++" ]; then
    make -j2
else
    make
fi

Introduce a Houdini install prefix to avoid the need to have a license server
Introduce a Houdini install prefix to avoid the need to have a license server

Signed-off-by: Dan Bailey <39b6ae1dd30d9ab3cd77a2d084b277520f14c203@ilm.com>
