mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-07 21:23:32 +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
|
||||
* SOFTWARE.
|
||||
*/
|
||||
#include <math.h>
|
||||
#include <algorithm>
|
||||
#include "tvgSwCommon.h"
|
||||
|
||||
/************************************************************************/
|
||||
|
@ -172,4 +172,4 @@ bool imageGenOutline(SwImage* image, const Picture* pdata, unsigned tid, const M
|
|||
void imageFree(SwImage* image)
|
||||
{
|
||||
rleFree(image->rle);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
*/
|
||||
|
||||
#include <ctype.h>
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
#ifdef _WIN32
|
||||
#include <malloc.h>
|
||||
#else
|
||||
|
|
|
@ -8,7 +8,7 @@ fi
|
|||
|
||||
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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue