-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
50 lines (47 loc) · 2.88 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
all: debug profile release
.PHONY: all
debug:
mkdir -p dist
emcc --post-js namespaces.js --bind -o dist/wwise.debug.js wwise.cpp \
include/SoundEngine/Common/AkFilePackageLUT.cpp \
include/SoundEngine/POSIX/AkDefaultIOHookBlocking.cpp \
include/SoundEngine/Common/AkMultipleFileLocation.cpp \
include/SoundEngine/Common/AkGeneratedSoundBanksResolver.cpp \
-Iinclude -Iinclude/SoundEngine/POSIX \
lib/Debug/libAkSoundEngine.a lib/Debug/libCommunicationCentral.a lib/Debug/libAkMemoryMgr.a \
lib/Debug/libAkStreamMgr.a lib/Debug/libAkMusicEngine.a lib/Debug/libAkSpatialAudio.a \
lib/Debug/libAkVorbisDecoder.a lib/Debug/libAkOpusDecoder.a \
-s WASM_BIGINT -msse4.1 -msimd128 -fno-rtti -DEMSCRIPTEN_HAS_UNBOUND_TYPE_NAMES=0 -fPIC \
-s LLD_REPORT_UNDEFINED --no-entry -s EXPORTED_RUNTIME_METHODS=getWasmTableEntry,FS_createPreloadedFile -s FILESYSTEM=1 \
-s DEFAULT_LIBRARY_FUNCS_TO_INCLUDE='["$$Browser"]' -s ALLOW_MEMORY_GROWTH=1 \
-s MODULARIZE=1 -s EXPORT_NAME="WwiseModule"
profile:
mkdir -p dist
emcc --post-js namespaces.js --bind -o dist/wwise.profile.js wwise.cpp \
include/SoundEngine/Common/AkFilePackageLUT.cpp \
include/SoundEngine/POSIX/AkDefaultIOHookBlocking.cpp \
include/SoundEngine/Common/AkMultipleFileLocation.cpp \
include/SoundEngine/Common/AkGeneratedSoundBanksResolver.cpp \
-Iinclude -Iinclude/SoundEngine/POSIX \
lib/Profile/libAkSoundEngine.a lib/Debug/libCommunicationCentral.a lib/Profile/libAkMemoryMgr.a \
lib/Profile/libAkStreamMgr.a lib/Profile/libAkMusicEngine.a lib/Profile/libAkSpatialAudio.a \
lib/Profile/libAkVorbisDecoder.a lib/Profile/libAkOpusDecoder.a \
-s WASM_BIGINT -msse4.1 -msimd128 -fno-rtti -DEMSCRIPTEN_HAS_UNBOUND_TYPE_NAMES=0 -fPIC \
-s LLD_REPORT_UNDEFINED --no-entry -s EXPORTED_RUNTIME_METHODS=getWasmTableEntry,FS_createPreloadedFile -s FILESYSTEM=1 \
-s DEFAULT_LIBRARY_FUNCS_TO_INCLUDE='["$$Browser"]' -s ALLOW_MEMORY_GROWTH=1 \
-s MODULARIZE=1 -s EXPORT_NAME="WwiseModule"
release:
mkdir -p dist
emcc --post-js namespaces.js --bind -o dist/wwise.js wwise.cpp \
include/SoundEngine/Common/AkFilePackageLUT.cpp \
include/SoundEngine/POSIX/AkDefaultIOHookBlocking.cpp \
include/SoundEngine/Common/AkMultipleFileLocation.cpp \
include/SoundEngine/Common/AkGeneratedSoundBanksResolver.cpp \
-Iinclude -Iinclude/SoundEngine/POSIX \
lib/Release/libAkSoundEngine.a lib/Release/libAkMemoryMgr.a \
lib/Release/libAkStreamMgr.a lib/Release/libAkMusicEngine.a lib/Release/libAkSpatialAudio.a \
lib/Release/libAkVorbisDecoder.a lib/Release/libAkOpusDecoder.a \
-s WASM_BIGINT -msse4.1 -msimd128 -fno-rtti -DEMSCRIPTEN_HAS_UNBOUND_TYPE_NAMES=0 -fPIC \
-s LLD_REPORT_UNDEFINED --no-entry -s EXPORTED_RUNTIME_METHODS=getWasmTableEntry,FS_createPreloadedFile -s FILESYSTEM=1 \
-s DEFAULT_LIBRARY_FUNCS_TO_INCLUDE='["$$Browser"]' -s ALLOW_MEMORY_GROWTH=1 \
-s MODULARIZE=1 -s EXPORT_NAME="WwiseModule" -DAK_OPTIMIZED