mirror of
				https://github.com/bytecodealliance/wasm-micro-runtime.git
				synced 2025-10-30 21:02:27 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
		
			549 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			549 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| #
 | |
| # Copyright (c) 2021, RT-Thread Development Team
 | |
| #
 | |
| # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 | |
| #
 | |
| 
 | |
| from building import *
 | |
| 
 | |
| cwd     = GetCurrentDir()
 | |
| 
 | |
| src = Split('''
 | |
| wasm_runtime.c
 | |
| ''')
 | |
| 
 | |
| if GetDepend(['WAMR_BUILD_FAST_INTERP']):
 | |
|     src += ["wasm_interp_fast.c"]
 | |
| else:
 | |
|     src += ["wasm_interp_classic.c"]
 | |
| 
 | |
| if GetDepend(['WAMR_BUILD_MINI_LOADER']):
 | |
|     src += ["wasm_mini_loader.c"]
 | |
| else:
 | |
|     src += ["wasm_loader.c"]
 | |
| 
 | |
| 
 | |
| CPPPATH = [cwd]
 | |
| 
 | |
| group = DefineGroup('iwasm_interpreter', src, depend = [''], CPPPATH = CPPPATH)
 | |
| 
 | |
| Return('group')
 | 
