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, ...
Change-Id: I46bee4588d84b2a647455ac831644f88d2e358cb
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
-#include <math.h>
+#include <algorithm>
#include "tvgSwCommon.h"
/************************************************************************/
void imageFree(SwImage* image)
{
rleFree(image->rle);
-}
\ No newline at end of file
+}
*/
#include <ctype.h>
-#include <cstring>
+#include <string>
#ifdef _WIN32
#include <malloc.h>
#else
if [ ! -d "./builddir_wasm" ]; then
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
fi