mirror of
https://github.com/lighttransport/tinyusdz.git
synced 2026-01-18 01:11:17 +01:00
Fix WASI build.
This commit is contained in:
@@ -71,8 +71,8 @@ set(TINYUSDZ_DEP_SOURCES
|
||||
#../../src/external/string_id/string_id.cpp
|
||||
#../../src/external/string_id/error.cpp
|
||||
#../../src/external/string_id/database.cpp
|
||||
../../src/external/staticstruct.cc
|
||||
../../src/external/tinyxml2/tinyxml2.cpp
|
||||
#../../src/external/staticstruct.cc
|
||||
#../../src/external/tinyxml2/tinyxml2.cpp
|
||||
)
|
||||
#../../src/external/ryu/ryu/s2d.c
|
||||
#../../src/external/ryu/ryu/s2f.c)
|
||||
|
||||
@@ -17,7 +17,7 @@ $ make
|
||||
|
||||
### Binary size
|
||||
|
||||
Currently is less than 4MB when compiled with `-DCMAKE_BUILD_TYPE=MinSizeRel` (650 KB when gzip compressed).
|
||||
Currently it is less than 4MB when compiled with `-DCMAKE_BUILD_TYPE=MinSizeRel` (650 KB when gzip compressed).
|
||||
|
||||
## Run
|
||||
|
||||
@@ -33,3 +33,8 @@ Install `wasmtime`, then copy example USD file to `build` folder(where `tinyusdz
|
||||
$ cp ../../../models/cube-previewsurface.usda .
|
||||
$ wasmtime --dir=. tinyusdz_wasi cube-previewsurface.usda
|
||||
```
|
||||
|
||||
## TODO
|
||||
|
||||
* [ ] Unify CMakeList.txt with <tinyusdz>/CMakelist.txt
|
||||
* [ ] Write WASI specific AssetResolution/FileSystemHandler example.
|
||||
|
||||
Reference in New Issue
Block a user