mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 21:51:22 +00:00 
			
		
		
		
	[HTML5] Port JavaScript inline code to libraries.
The API is implemented in javascript, and generates C functions that can be called from godot. This allows much cleaner code replacing all `EM_ASM` calls in our C++ code with plain C function calls. This also gets rid of few hacks and comes with few optimizations (e.g. custom cursor shapes should be much faster now).
This commit is contained in:
		
							parent
							
								
									54cda5c3b8
								
							
						
					
					
						commit
						e2083871eb
					
				
					 33 changed files with 1995 additions and 1461 deletions
				
			
		|  | @ -19,3 +19,9 @@ def create_engine_file(env, target, source, externs): | |||
|     if env["use_closure_compiler"]: | ||||
|         return env.BuildJS(target, source, JSEXTERNS=externs) | ||||
|     return env.Textfile(target, [env.File(s) for s in source]) | ||||
| 
 | ||||
| 
 | ||||
| def add_js_libraries(env, libraries): | ||||
|     if "JS_LIBS" not in env: | ||||
|         env["JS_LIBS"] = [] | ||||
|     env.Append(JS_LIBS=env.File(libraries)) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Fabio Alessandrelli
						Fabio Alessandrelli