add web sync files and key events

This commit is contained in:
2019-10-11 00:44:11 +02:00
parent e6e3488291
commit babbfb36a7
9 changed files with 211 additions and 23 deletions

View File

@@ -94,7 +94,7 @@ add_executable(panopainter
../src/node_input_box.cpp
../src/node_dialog_export_ppbr.cpp
)
target_compile_options(panopainter PRIVATE -std=c++14 -O2)
target_compile_options(panopainter PRIVATE -std=c++14 -O3)
set_target_properties(panopainter PROPERTIES
SUFFIX ".html"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/html"
@@ -105,8 +105,6 @@ set_target_properties(panopainter PROPERTIES
-s USE_PTHREADS=1\
-s ASSERTIONS=2\
-s TOTAL_MEMORY=256Mb\
-s ALLOW_MEMORY_GROWTH=1\
-s WASM_MEM_MAX=512MB\
--embed-file data\
--js-library ../src/mylib.js\
--bind"