Repository navigation
Expand file tree
/
Copy pathsetpath.sh.in
More file actions
29 lines (23 loc) · 1.45 KB
/
Copy pathsetpath.sh.in
File metadata and controls
29 lines (23 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# This file is generated by CMake. Do not edit directly.
# Paths configured by CMake
export HDMITSUBA_BUILD_DIR="@CMAKE_BINARY_DIR@"
export USD_DIR="@pxr_DIR@"
export MITSUBA_DIR="@MITSUBA_DIR@"
export MITSUBA_BUILD_DIR_CONF="@MITSUBA_BUILD_DIR@"
# Update PYTHONPATH (including Release subdirectories for Windows multi-config builds)
export PYTHONPATH="@CMAKE_CURRENT_SOURCE_DIR@:${HDMITSUBA_BUILD_DIR}:${HDMITSUBA_BUILD_DIR}/Release:${HDMITSUBA_BUILD_DIR}/hdmitsuba:${HDMITSUBA_BUILD_DIR}/hdmitsuba/Release:${MITSUBA_BUILD_DIR_CONF}/python:${MITSUBA_BUILD_DIR_CONF}/python/Release:${USD_DIR}/lib/python:${USD_DIR}/lib/python@Python3_VERSION_MAJOR@.@Python3_VERSION_MINOR@/site-packages:${PYTHONPATH}"
# On Windows, PATH is used to find DLLs at runtime (including Release subdirectories)
if [ -n "$COMSPEC" ] || [ -n "$SYSTEMROOT" ]; then
export PATH="${MITSUBA_BUILD_DIR_CONF}:${MITSUBA_BUILD_DIR_CONF}/Release:${HDMITSUBA_BUILD_DIR}/hdmitsuba:${HDMITSUBA_BUILD_DIR}/hdmitsuba/Release:${USD_DIR}/lib:${USD_DIR}/bin:${PATH}"
if [ -n "@MATERIALX_BASE_DIR@" ]; then
export PATH="@MATERIALX_BASE_DIR@/bin:${PATH}"
fi
fi
# Add Embree path if configured
if [ -n "@EMBREE_LIB_DIR@" ]; then
export LD_LIBRARY_PATH="@EMBREE_LIB_DIR@:${LD_LIBRARY_PATH}"
fi
export DRJIT_NO_RTLD_DEEPBIND=1
export PXR_PLUGINPATH_NAME="${HDMITSUBA_BUILD_DIR}/hdmitsuba"
export HOUDINI_USD_DSO_PATH="${HDMITSUBA_BUILD_DIR}/hdmitsuba:${HOUDINI_USD_DSO_PATH:-&}"
echo "hdMitsuba environment set up."