mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2024-12-05 00:38:00 +01:00
add correct file extension for wasm gamestates
This commit is contained in:
parent
4f64b83e01
commit
dba2ef80da
2 changed files with 5 additions and 2 deletions
|
@ -76,6 +76,7 @@ if(EMSCRIPTEN)
|
|||
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -s WASM=1")
|
||||
set(EMSCRIPTEN_USE_FLAGS ${EMSCRIPTEN_USE_FLAGS} -s WASM=1)
|
||||
set(CMAKE_SHARED_MODULE_SUFFIX ".wasm")
|
||||
add_definitions(-DLIBSUPERDERPY_WASM=1)
|
||||
else()
|
||||
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -s WASM=0")
|
||||
set(EMSCRIPTEN_USE_FLAGS ${EMSCRIPTEN_USE_FLAGS} -s WASM=0)
|
||||
|
|
|
@ -27,10 +27,12 @@
|
|||
|
||||
#ifdef ALLEGRO_WINDOWS
|
||||
#define LIBRARY_EXTENSION ".dll"
|
||||
#elif defined(ALLEGRO_MACOSX)
|
||||
#define LIBRARY_EXTENSION ".dylib"
|
||||
#elif defined(__EMSCRIPTEN__)
|
||||
#if defined(LIBSUPERDERPY_WASM)
|
||||
#define LIBRARY_EXTENSION ".wasm"
|
||||
#else
|
||||
#define LIBRARY_EXTENSION ".js"
|
||||
#endif
|
||||
#else
|
||||
#define LIBRARY_EXTENSION ".so"
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue