Skip to content

Commit 74dcbfa

Browse files
authored
Merge pull request #91 from axe312ger/glsl-emscripten
[WIP] GLSL via emscripten
2 parents 2002f93 + 647048f commit 74dcbfa

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

src/projectM-emscripten/Makefile.am

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ ${my_CFLAGS} \
44
-DSYSCONFDIR=\""$(sysconfdir)"\" \
55
-I${top_srcdir}/src/libprojectM \
66
-I${top_srcdir}/src/libprojectM/Renderer \
7-
USE_SDL=2 \
87
${SDL_CFLAGS}
98

109
REALSRCDIR=${top_srcdir}/src/projectM-sdl
@@ -14,5 +13,3 @@ projectW_bc_SOURCES = $(REALSRCDIR)/pmSDL.cpp $(REALSRCDIR)/projectM_SDL_main.cp
1413
projectW_bc_LDADD = ${SDL_LIBS} ${top_srcdir}/src/libprojectM/libprojectM.la
1514
projectW_bc_LDFLAGS = -static -s USE_SDL=2
1615
projectW_bc_PROGRAM = projectW.bc
17-
18-
# emcc -s USE_SDL=2 -s ALLOW_MEMORY_GROWTH=1 projectW.bc -o projectW.html

src/projectM-emscripten/README

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
Building w/ emscripten
22

3-
* Activate the emsdk
3+
## Crepare
4+
* Activate the emsdk (https://github.com/juj/emsdk#installation-instructions)
5+
* make sure you are in the root directory of this project
6+
* on fresh repositories: `./autogen.sh`
7+
8+
## Compile
49
* `emconfigure ./configure --enable-emscripten --enable-gles --enable-sdl`
510
* `emmake make -j4`
611

12+
## Create wasm & html files
13+
* `cd src/projectM-emscripten`
14+
* `emcc -s USE_SDL=2 -s ALLOW_MEMORY_GROWTH=1 projectW.bc -o projectW.html`
715

16+
Does not work? Try:
817

9-
10-
11-
emcc -I../libprojectm -I../libprojectM/Renderer -Llib \
12-
../libprojectM/KeyHandler.cpp projectM_SDL_emscripten.cpp \
13-
-lRenderer -lprojectM -lMilkdropPresetFactory -lprojectM -lRenderer \
14-
-s USE_SDL=2 -s LEGACY_GL_EMULATION=1 \
15-
-o build/projectEM.html
18+
* `mkdir vendor && cp /usr/local/Cellar/glm/xx/include/glm ./vendor/`
19+
* `emmake make -j4 -lvendor`

0 commit comments

Comments
 (0)