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:
Shinwoo Kim 2020-12-15 16:21:18 +09:00 committed by Hermet Park
parent abc9e89517
commit e9772efbd1
3 changed files with 4 additions and 4 deletions

View file

@ -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"
/************************************************************************/ /************************************************************************/
@ -172,4 +172,4 @@ bool imageGenOutline(SwImage* image, const Picture* pdata, unsigned tid, const M
void imageFree(SwImage* image) void imageFree(SwImage* image)
{ {
rleFree(image->rle); rleFree(image->rle);
} }

View file

@ -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

View file

@ -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