Skip to content

Commit

Permalink
Change order
Browse files Browse the repository at this point in the history
  • Loading branch information
HoangGiang93 committed Aug 19, 2024
1 parent 8fa0348 commit ef8ca25
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions build_third_parties.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,41 @@ while [ -n "$1" ]; do
esac
done

if [ $BUILD_USD = true ]; then
echo "Building USD..."

# Build USD

USD_BUILD_DIR=$BUILD_DIR/USD
USD_EXT_DIR=$EXT_DIR/USD

git submodule update --init $USD_EXT_DIR

if [ ! -d "$USD_BUILD_DIR" ]; then
# Create the folder if it doesn't exist
mkdir -p "$USD_BUILD_DIR"
echo "Folder created: $USD_BUILD_DIR"
else
echo "Folder already exists: $USD_BUILD_DIR"
fi

for virtualenvwrapper in $(which virtualenvwrapper.sh) /usr/share/virtualenvwrapper/virtualenvwrapper.sh /usr/local/bin/virtualenvwrapper.sh /home/$USER/.local/bin/virtualenvwrapper.sh; do
if [ -f $virtualenvwrapper ]; then
. $virtualenvwrapper
mkvirtualenv --system-site-packages multiverse
pip install pyside6 pyopengl
python3 $USD_EXT_DIR/build_scripts/build_usd.py $USD_BUILD_DIR
ln -sf $USD_BUILD_DIR/bin/usdview $BIN_DIR
ln -sf $USD_BUILD_DIR/bin/usdGenSchema $BIN_DIR
ln -sf $USD_BUILD_DIR/bin/usdcat $BIN_DIR
break
fi
done
if [ ! -f $virtualenvwrapper ]; then
echo "virtualenvwrapper.sh not found"
fi
fi

if [ $BUILD_BLENDER = true ]; then
echo "Building Blender..."

Expand Down Expand Up @@ -97,41 +132,6 @@ if [ $BUILD_BLENDER = true ]; then
ln -sf $BLENDER_BUILD_DIR/4.2/python/bin/python3.11 $BIN_DIR
fi

if [ $BUILD_USD = true ]; then
echo "Building USD..."

# Build USD

USD_BUILD_DIR=$BUILD_DIR/USD
USD_EXT_DIR=$EXT_DIR/USD

git submodule update --init $USD_EXT_DIR

if [ ! -d "$USD_BUILD_DIR" ]; then
# Create the folder if it doesn't exist
mkdir -p "$USD_BUILD_DIR"
echo "Folder created: $USD_BUILD_DIR"
else
echo "Folder already exists: $USD_BUILD_DIR"
fi

for virtualenvwrapper in $(which virtualenvwrapper.sh) /usr/share/virtualenvwrapper/virtualenvwrapper.sh /usr/local/bin/virtualenvwrapper.sh /home/$USER/.local/bin/virtualenvwrapper.sh; do
if [ -f $virtualenvwrapper ]; then
. $virtualenvwrapper
mkvirtualenv --system-site-packages multiverse
pip install pyside6 pyopengl
python3 $USD_EXT_DIR/build_scripts/build_usd.py $USD_BUILD_DIR
ln -sf $USD_BUILD_DIR/bin/usdview $BIN_DIR
ln -sf $USD_BUILD_DIR/bin/usdGenSchema $BIN_DIR
ln -sf $USD_BUILD_DIR/bin/usdcat $BIN_DIR
break
fi
done
if [ ! -f $virtualenvwrapper ]; then
echo "virtualenvwrapper.sh not found"
fi
fi

if [ $BUILD_MUJOCO = true ]; then
echo "Building MuJoCo..."

Expand Down

0 comments on commit ef8ca25

Please sign in to comment.