Add Append and Replace to the env
This commit is contained in:
		
							parent
							
								
									fd2e6ae699
								
							
						
					
					
						commit
						517a083694
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		|  | @ -9,12 +9,15 @@ import SCons.Script | |||
| 
 | ||||
| def _do_sconscript(env): | ||||
|     original_sconscript = env.SConscript | ||||
|      | ||||
| 
 | ||||
|     def sconscript(env, sconscript, clone=False, *args, **kwargs): | ||||
|         exports = {'Library': env.Library, | ||||
|                    'StaticLibrary': env.StaticLibrary, | ||||
|                    'SharedLibrary': env.SharedLibrary, | ||||
|                    'Program': env.Program} | ||||
|                    'Program': env.Program, | ||||
| 
 | ||||
|                    'Append': env.Append, | ||||
|                    'Replace': env.Replace} | ||||
|         SCons.Script._SConscript.GlobalDict.update(exports) | ||||
|         env.log('Reading {}'.format(sconscript)) | ||||
|         return original_sconscript(sconscript, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue