mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
wasm: work with log option
The wasm is using the ThorVG output starting whith "SVG:" to show unsupported element and attribute of svg file. This patch updates wasm_build.sh to make ThorVG prints log, and removes build errors. - Following commit needs to include 'algorithm'1ed6113
common sw_engine: code refactoring & stabilizing. - Following commit needs to include 'string'5481633
svg_loader XmlParser: Print unsupported elements, ...
This commit is contained in:
parent
abc9e89517
commit
e9772efbd1
3 changed files with 4 additions and 4 deletions
|
@ -19,7 +19,7 @@
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
* SOFTWARE.
|
* SOFTWARE.
|
||||||
*/
|
*/
|
||||||
#include <math.h>
|
#include <algorithm>
|
||||||
#include "tvgSwCommon.h"
|
#include "tvgSwCommon.h"
|
||||||
|
|
||||||
/************************************************************************/
|
/************************************************************************/
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <cstring>
|
#include <string>
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <malloc.h>
|
#include <malloc.h>
|
||||||
#else
|
#else
|
||||||
|
|
|
@ -8,7 +8,7 @@ fi
|
||||||
|
|
||||||
if [ ! -d "./builddir_wasm" ]; then
|
if [ ! -d "./builddir_wasm" ]; then
|
||||||
sed "s|EMSDK:|$1|g" wasm_cross.txt > /tmp/.wasm_cross.txt
|
sed "s|EMSDK:|$1|g" wasm_cross.txt > /tmp/.wasm_cross.txt
|
||||||
meson -Dbindings=[''] -Db_lto=true -Ddefault_library=static --cross-file /tmp/.wasm_cross.txt builddir_wasm
|
meson -Dbindings=[''] -Db_lto=true -Ddefault_library=static -Dlog=true --cross-file /tmp/.wasm_cross.txt builddir_wasm
|
||||||
cp ./test/wasm_test.html builddir_wasm/src/index.html
|
cp ./test/wasm_test.html builddir_wasm/src/index.html
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue