Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e96a604

Browse files
some emscripten support returns
1 parent 1ae33b1 commit e96a604

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

‎src/projectM-emscripten/Makefile.am‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
AM_CPPFLAGS = \
2+
${my_CFLAGS} \
3+
-include $(top_builddir)/config.h \
4+
-DSYSCONFDIR=\""$(sysconfdir)"\" \
5+
-I${top_srcdir}/src/libprojectM \
6+
-I${top_srcdir}/src/libprojectM/Renderer \
7+
USE_SDL=2 \
8+
${SDL_CFLAGS}
9+
10+
REALSRCDIR=${top_srcdir}/src/projectM-sdl
11+
12+
bin_PROGRAMS = projectW.bc
13+
projectW_bc_SOURCES = $(REALSRCDIR)/pmSDL.cpp $(REALSRCDIR)/projectM_SDL_main.cpp $(REALSRCDIR)/pmSDL.hpp
14+
projectW_bc_LDADD = ${SDL_LIBS} ${top_srcdir}/src/libprojectM/libprojectM.la
15+
projectW_bc_LDFLAGS = -static -s USE_SDL=2
16+
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: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
HOW2COMPILE:
1+
Building w/ emscripten
2+
3+
* Activate the emsdk
4+
* `emconfigure ./configure --enable-emscripten --enable-gles --enable-sdl`
5+
* `emmake make -j4`
6+
7+
8+
9+
210

311
emcc -I../libprojectm -I../libprojectM/Renderer -Llib \
412
../libprojectM/KeyHandler.cpp projectM_SDL_emscripten.cpp \

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /