Skip to content

Latest commit

 

History

History
31 lines (30 loc) · 1.09 KB

README.md

File metadata and controls

31 lines (30 loc) · 1.09 KB

My first app with stereo sound by click works in the browser: https://play-sound-by-click-sdl3-c.netlify.app/ Size of release:

emcmake cmake -G "MinGW Makefiles" -S . -B dist -DCMAKE_INSTALL_PREFIX=E:/libs/sdl3_mixer-3.0.0-prefix/web -DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE="E:/libs/sdl-3.1.6-prefix/web"

Building and installing:

cmake --build dist -j4
cmake --install dist

The configure command for your project: config.bat

emcmake cmake -G "MinGW Makefiles" -S . -B dist -DSDL3_DIR=E:/libs/sdl-3.1.6-prefix/web/lib/cmake/SDL3 -DSDL3_mixer_DIR=E:/libs/sdl3_mixer-3.0.0-prefix/web -DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE="E:/libs/sdl3_mixer-3.0.0-prefix/web" -DCMAKE_BUILD_TYPE=Debug

Building: build.bat

cd dist
cmake --build . -j4

cd ..
mkdir public\js
set current_dir=%~dp0
copy "%current_dir%dist\app.wasm" "%current_dir%public\js"
copy "%current_dir%dist\app.js" "%current_dir%public\js"