|
|
@@ -1477,6 +1477,12 @@ macro (setup_main_executable)
|
|
|
install (FILES ${SHARED_JS} ${SHARED_RESOURCE_JS}.data DESTINATION ${DEST_BUNDLE_DIR})
|
|
|
endif ()
|
|
|
endif ()
|
|
|
+ # If not using EMRUN then we need to include the emrun_prejs.js manually in order to process the request parameters as arguments correctly
|
|
|
+ if (NOT URHO3D_TESTING)
|
|
|
+ set (EMRUN_PREJS ${EMSCRIPTEN_ROOT_PATH}/src/emrun_prejs.js)
|
|
|
+ list (APPEND SOURCE_FILES ${EMRUN_PREJS})
|
|
|
+ set_source_files_properties (${EMRUN_PREJS} PROPERTIES EMCC_OPTION pre-js)
|
|
|
+ endif ()
|
|
|
endif ()
|
|
|
endif ()
|
|
|
endif ()
|