mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-01 02:56:43 +01:00
emscripten: output wasm submodules to .wasm.so files, so preload plugins can find them
This commit is contained in:
parent
fe9b6f5384
commit
f5604b95fb
2 changed files with 2 additions and 2 deletions
|
@ -202,7 +202,7 @@ if (NOT LIBSUPERDERPY_CONFIG_INCLUDED)
|
|||
if("${LIBSUPERDERPY_EMSCRIPTEN_MODE}" STREQUAL "wasm")
|
||||
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -s WASM=1")
|
||||
set(EMSCRIPTEN_FLAGS ${EMSCRIPTEN_FLAGS} -s WASM=1 -s ALLOW_MEMORY_GROWTH=1 --no-heap-copy)
|
||||
set(CMAKE_SHARED_MODULE_SUFFIX ".wasm")
|
||||
set(CMAKE_SHARED_MODULE_SUFFIX ".wasm.so")
|
||||
add_definitions(-DLIBSUPERDERPY_WASM=1)
|
||||
else()
|
||||
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -s WASM=0")
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
#define LIBRARY_EXTENSION ".dll"
|
||||
#elif defined(__EMSCRIPTEN__)
|
||||
#if defined(LIBSUPERDERPY_WASM)
|
||||
#define LIBRARY_EXTENSION ".wasm"
|
||||
#define LIBRARY_EXTENSION ".wasm.so"
|
||||
#else
|
||||
#define LIBRARY_EXTENSION ".js"
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue