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 8cacb95

Browse files
makefile stuff for emscripten
1 parent 66ddd1c commit 8cacb95

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

‎src/projectM-emscripten/Makefile.am‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,18 @@ ${SDL_CFLAGS}
88

99
REALSRCDIR=${top_srcdir}/src/projectM-sdl
1010

11+
EMSCRIPTEN_FLAGS = -s USE_SDL=2 -s USE_WEBGL2=1 -s WASM=0
12+
1113
bin_PROGRAMS = projectW.bc
1214
projectW_bc_SOURCES = $(REALSRCDIR)/pmSDL.cpp $(REALSRCDIR)/projectM_SDL_main.cpp $(REALSRCDIR)/pmSDL.hpp
1315
projectW_bc_LDADD = ${SDL_LIBS} ${top_srcdir}/src/libprojectM/libprojectM.la
14-
projectW_bc_LDFLAGS = -static -s USE_SDL=2
16+
projectW_bc_LDFLAGS = $(EMSCRIPTEN_FLAGS)
1517
projectW_bc_PROGRAM = projectW.bc
18+
19+
projectW.html: generate-html
20+
21+
generate-html:
22+
emcc $(EMSCRIPTEN_FLAGS) projectW.bc
23+
24+
run: projectW.html
25+
emrun projectW.html

0 commit comments

Comments
(0)

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