File: Makefile.emscripten

package info (click to toggle)
mediaconch 25.04-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 16,828 kB
  • sloc: ansic: 126,293; cpp: 39,636; javascript: 34,300; xml: 2,950; sh: 2,121; makefile: 200; python: 183
file content (13 lines) | stat: -rw-r--r-- 637 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
all: IMSC1PluginWasm.js IMSC1Plugin.js

clean:
		rm *.o

IMSC1Plugin.js:  IMSC1Plugin.o
		em++ -std=c++11 -Os -s WASM=0 -s TOTAL_MEMORY=67108864 -s FORCE_FILESYSTEM=1 -s MODULARIZE=1 -s EXPORT_NAME="'IMSC1Plugin'" --closure 0 -o $@ $(CXXFLAGS) --bind $^ -L../../../libxml2/.libs -lxml2

IMSC1PluginWasm.js: IMSC1Plugin.o
		em++ -std=c++11 -Os -s WASM=1 -s TOTAL_MEMORY=33554432 -s ALLOW_MEMORY_GROWTH=1 -s FORCE_FILESYSTEM=1 -s MODULARIZE=1 -s EXPORT_NAME="'IMSC1Plugin'" --closure 0 -o $@ $(CXXFLAGS) --bind $^ -L../../../libxml2/.libs -lxml2

%.o: %.cpp
		em++ -std=c++11 -Wall  -I.. -I../../../libxml2/include -c -o $@ $(CXXFLAGS) $<