Add script to clone OpenSubdiv.

This commit is contained in:
Syoyo Fujita
2020-04-04 18:17:12 +09:00
parent d91db01e19
commit 8378e95822
2 changed files with 9 additions and 0 deletions

View File

@@ -39,6 +39,10 @@ $ make
* `TINYUSDZ_WITH_OPENSUBDIV` : Use OpenSubviv to tessellate subdivision surface.
* `osd_DIR` to specify the path to OpenSubdiv repo(I recommend to use https://github.com/syoyo/OpenSubdiv-aarch64 )
#### Build with OpenSubdiv
Recommended way is to run `scripts/clone_osd.sh` to clone OpenSubdiv-aarch64 repo to `deps/OpenSudiv`, then run `scripts/bootstrap-cmake-linux-with-osd.sh` .
### Meson
Meson build is provided for testing compilation.

5
scripts/clone_osd.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
curdir=`pwd`
git clone --depth 1 https://github.com/syoyo/OpenSubdiv-aarch64 ${curdir}/deps/OpenSubdiv