JamPlus manual
Emscripten Rules

The emscripten module will automatically detect the appropriate compilers and set up some architecture-specific items.

When building with Emscripten, additional rules are available to complete the build.

List of Rules

Rules


rule C.emscripten.JSLibraries TARGET : SOURCES : OPTIONS

For the given TARGET, assign libraries via SOURCES to be linked with the link flag –js-library.

Parameters
TARGETThe target to assign the libraries to. TARGET is optional if rule ActiveTarget TARGET has been specified. If TARGET is *, the libraries will be linked for all applications.
SOURCESThe list of libraries.
OPTIONSIf public is specified, the libraries specified by SOURCES are made available to a project using C.Inherits.
C.emscripten.JSLibraries :
js/libs/library_godot_audio.js
js/libs/library_godot_display.js
js/libs/library_godot_emscripten.js
js/libs/library_godot_fetch.js
js/libs/library_godot_webmidi.js
js/libs/library_godot_os.js
js/libs/library_godot_runtime.js
js/libs/library_godot_input.js
js/libs/library_godot_webgl2.js
;

rule C.emscripten.JSPre TARGET : SOURCES : OPTIONS

For the given TARGET, assign libraries via SOURCES to be linked with the link flag –pre-js.

Parameters
TARGETThe target to assign the libraries to. TARGET is optional if rule ActiveTarget TARGET has been specified. If TARGET is *, the libraries will be linked for all applications.
SOURCESThe list of libraries.
OPTIONSIf public is specified, the libraries specified by SOURCES are made available to a project using C.Inherits.
C.emscripten.JSPre :
js/libs/a_pre_file.js
;

rule C.emscripten.JSPost TARGET : SOURCES : OPTIONS

For the given TARGET, assign libraries via SOURCES to be linked with the link flag –post-js.

Parameters
TARGETThe target to assign the libraries to. TARGET is optional if rule ActiveTarget TARGET has been specified. If TARGET is *, the libraries will be linked for all applications.
SOURCESThe list of libraries.
OPTIONSIf public is specified, the libraries specified by SOURCES are made available to a project using C.Inherits.
C.emscripten.JSPost :
js/patches/patch_em_gl.js
;

rule C.emscripten.JSExterns TARGET : SOURCES : OPTIONS

For the given TARGET, assign libraries via SOURCES to be linked with the flag –externs.

Parameters
TARGETThe target to assign the libraries to. TARGET is optional if rule ActiveTarget TARGET has been specified. If TARGET is *, the libraries will be linked for all applications.
SOURCESThe list of libraries.
OPTIONSIf public is specified, the libraries specified by SOURCES are made available to a project using C.Inherits.
C.emscripten.JSExterns :
js/libs/library_godot_webgl2.externs.js
;