Skip to content

Commit

Permalink
Recastjs 1.6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
CedricGuillemet committed Jan 20, 2025
1 parent f36cbc1 commit 192838d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ steps:
cd ..
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install latest
./emsdk install 3.1.51
displayName: 'Clone/install emsdk'

- task: CmdLine@2
inputs:
script: |
pushd ../emsdk
./emsdk activate latest
./emsdk activate 3.1.51
source "emsdk_env.sh"
popd
cd recastjs
Expand Down
7 changes: 4 additions & 3 deletions recastjs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ ADD_LIBRARY(${EXE_NAME} ${SRC_FILES} ${RECASTDETOUR_FILES})
set(CMAKE_BUILD_TYPE Release CACHE STRING "Build Type")

# Default is 64*1024*1024 = 64MB
set(TOTAL_MEMORY 67108864 CACHE STRING "Total Memory")
#set(TOTAL_MEMORY 67108864 CACHE STRING "Total Memory")

# Enable for resizable heap, with some amount of slowness
set(ALLOW_MEMORY_GROWTH 0 CACHE STRING "Allow Memory Growth")
set(ALLOW_MEMORY_GROWTH 1 CACHE STRING "Allow Memory Growth")

set(EMCC_ARGS
-flto
Expand All @@ -88,7 +88,8 @@ set(EMCC_ARGS
-s MODULARIZE=1
-s NO_EXIT_RUNTIME=1
-s NO_FILESYSTEM=1
-s TOTAL_MEMORY=${TOTAL_MEMORY})
# -s TOTAL_MEMORY=${TOTAL_MEMORY}
)

if(${CLOSURE})
# Ignore closure errors about the bullet Node class
Expand Down
2 changes: 1 addition & 1 deletion recastjs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "recast-detour",
"version": "1.6.3",
"version": "1.6.4",
"description": "recastjs is a port of recastnavigation and a thin abstraction layer using emscripten. https://github.com/emscripten-core/emscripten\r This port allows the use of recastnavigation in your browser using JavaScript or WebAssembly.",
"main": "recast.js",
"module": "recast.es6.js",
Expand Down

0 comments on commit 192838d

Please sign in to comment.