Skip to content

Commit

Permalink
Commit CMakeLists changes
Browse files Browse the repository at this point in the history
  • Loading branch information
patapancakes committed Nov 18, 2023
1 parent f20e7b4 commit c7ff1b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ if(${PLAYER_BUILD_EXECUTABLE} AND (${PLAYER_TARGET_PLATFORM} STREQUAL "SDL2" OR

target_link_libraries(${EXE_NAME} "idbfs.js")
target_link_libraries(${EXE_NAME} "websocket.js")
set_property(TARGET ${EXE_NAME} APPEND_STRING PROPERTY LINK_FLAGS " -s EXPORTED_FUNCTIONS='[\"_GetPlayerCoords\",\"_SendChatMessageToServer\",\"_SetGameLanguage\",\"_SessionReady\",\"_ToggleMute\",\"_SetSoundVolume\",\"_SetMusicVolume\",\"_TogglePlayerSounds\",\"_SetNametagMode\",\"_SetSessionToken\",\"_free\",\"_main\"]'")
set_property(TARGET ${EXE_NAME} APPEND_STRING PROPERTY LINK_FLAGS " -s EXPORTED_FUNCTIONS='[\"_GetPlayerCoords\",\"_SetGameLanguage\",\"_SessionReady\",\"_ToggleMute\",\"_SetSoundVolume\",\"_SetMusicVolume\",\"_TogglePlayerSounds\",\"_SetNametagMode\",\"_SetSessionToken\",\"_free\",\"_main\"]'")
set_property(TARGET ${EXE_NAME} APPEND_STRING PROPERTY LINK_FLAGS " -s EXPORTED_RUNTIME_METHODS='[\"ccall\",\"cwrap\",\"intArrayFromString\",\"ALLOC_NORMAL\",\"allocate\",\"getValue\"]'")
set_target_properties(${EXE_NAME} PROPERTIES OUTPUT_NAME "${PLAYER_JS_OUTPUT_NAME}")
endif()
Expand Down

0 comments on commit c7ff1b9

Please sign in to comment.