Browse Source

Add wasm build instructions, fix mouse lock on chrome, wrong keys

Signed-off-by: falkTX <falktx@falktx.com>
tags/22.12
falkTX 2 years ago
parent
commit
2579a11a9c
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
3 changed files with 29 additions and 3 deletions
  1. +27
    -1
      docs/BUILDING.md
  2. +1
    -1
      dpf
  3. +1
    -1
      src/Makefile.cardinal.mk

+ 27
- 1
docs/BUILDING.md View File

@@ -115,6 +115,32 @@ export CXXFLAGS="${CFLAGS}"
# make etc..
```

## Web assembly

Cardinal uses emscripten for its web version, see the official instructions on installing emscripten [here](https://emscripten.org/docs/getting_started/downloads.html).
Once installed, setup the build by importing the emscripten environment and setup the default build tools to point to them, like so:

```
source /path/to/emsdk/emsdk_env.sh
export AR=emar
export CC=emcc
export CXX=em++
export NM=emnm
export RANLIB=emranlib
export STRIP=emstrip
```

Then for the actual build we just need to force graphics rendering to use GLES2 instead of the default "desktop" OpenGL mode, like so:

```
make USE_GLES2=true # add any other relevant options..
```

You can place the generated files on a webserver, or run `emrun bin/CardinalNative.html` for an easy way to test it.

Please note the web build only contains CardinalNative, no other variants will be built.
This is expected and intentional.

## Windows

Cardinal does not support msvc, using mingw is required.
@@ -133,7 +159,7 @@ export CC=x86_64-w64-mingw32-gcc
export CXX=x86_64-w64-mingw32-g++
export EXE_WRAPPER=wine # for running generated windows binaries
export PKG_CONFIG=false # ignore pkg-config from base system
# now run make etc..
# make etc..
```

# Installing


+ 1
- 1
dpf

@@ -1 +1 @@
Subproject commit e8405098f40d0730ef4cdb4bb743897f6e7472ac
Subproject commit 924576a58c3f3a98d7df56f189f3f53fc4da0abb

+ 1
- 1
src/Makefile.cardinal.mk View File

@@ -156,7 +156,7 @@ endif
# --------------------------------------------------------------

# FIXME
ifeq ($(WASM),true)
ifeq ($(CIBUILD)$(WASM),truetrue)
ifneq ($(STATIC_BUILD),true)
STATIC_CARLA_PLUGIN_LIBS = -lsndfile -lopus -lFLAC -lvorbisenc -lvorbis -logg -lm
endif


Loading…
Cancel
Save