mirror of https://github.com/CesiumGS/cesium.git
|
|
||
|---|---|---|
| .. | ||
| README.md | ||
README.md
Updating the Draco JavaScript Decoder Module
We use a custom build of the Draco decoder JavaScript module to allow for IE11 compatibility.
-
Download and install a make tool.
- Preferably, use Linux or the Linux Subsystem for Windows 10 and
maketo build. - Optionally, MSYS2. Follow installation instructions and add the path to MSYS2's usr/bin to your
PATH. For example, if the path isC:\msys64\usr\bin, runPATH=%PATH%;C:\msys64\usr\bin.
- Preferably, use Linux or the Linux Subsystem for Windows 10 and
-
Download (or checkout the tag of) an official Draco release.
-
In a seperate directory, follow the CMake JavaScript Encoder/Decoder Instructions. When running cmake, specify
"Unix Makefiles"as the target, and including the flag-DIE_COMPATIBLE=true, ie.cmake ..\path\to\draco -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="absolute\path\emscripten\cmake\Modules\Platforms\Emscripten.cmake" -DIE_COMPATIBLE=true -
In that directory, build with
make -j. -
Copy the output
draco_decoder.jsfile to theSource\ThirdParty\Workersdirectory.