equal
deleted
inserted
replaced
84 #wrap conversion for all source in this command |
84 #wrap conversion for all source in this command |
85 add_custom_target(engine_c DEPENDS ${engine_sources}) |
85 add_custom_target(engine_c DEPENDS ${engine_sources}) |
86 |
86 |
87 |
87 |
88 if(BUILD_ENGINE_JS) |
88 if(BUILD_ENGINE_JS) |
89 add_flag_append(CMAKE_C_FLAGS "-s ABORTING_MALLOC=0") |
89 add_flag_append(CMAKE_C_FLAGS "--memory-init-file 0 -O0 --js-opts 0 -g4 --use-preload-plugins -s ASSERTIONS=2 -s USE_SDL=2 -s USE_SDL_IMAGE=1 -s USE_LIBPNG=1 -s USE_SDL_TTF=2 -s USE_VORBIS=1 -s USE_OGG=1 -s TOTAL_MEMORY=100000000 -s GL_UNSAFE_OPTS=0 -s EXPORTED_FUNCTIONS=\"['_hwengine_RunEngine', '_hwengine_MainLoop']\" --post-js ${CMAKE_SOURCE_DIR}/project_files/web/post.js --pre-js ${CMAKE_SOURCE_DIR}/project_files/web/pre.js") |
90 endif() |
90 endif() |
91 |
91 |
92 #compile the c files |
92 #compile the c files |
93 add_definitions(-DPAS2C) |
93 add_definitions(-DPAS2C) |
94 add_definitions(-Werror=incompatible-pointer-types) |
94 add_definitions(-Werror=incompatible-pointer-types) |