File tree Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Original file line number Diff line number Diff 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
109REALSRCDIR =${top_srcdir}/src/projectM-sdl
@@ -14,5 +13,3 @@ projectW_bc_SOURCES = $(REALSRCDIR)/pmSDL.cpp $(REALSRCDIR)/projectM_SDL_main.cp
1413projectW_bc_LDADD = ${SDL_LIBS} ${top_srcdir}/src/libprojectM/libprojectM.la
1514projectW_bc_LDFLAGS = -static -s USE_SDL=2
1615projectW_bc_PROGRAM = projectW.bc
17-
18- # emcc -s USE_SDL=2 -s ALLOW_MEMORY_GROWTH=1 projectW.bc -o projectW.html
Original file line number Diff line number Diff line change 11Building 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`
You can’t perform that action at this time.
0 commit comments