 eb4ff3c0fd
			
		
	
	
		eb4ff3c0fd
		
			
		
	
	
	
	
		
			
			* github: bundling debug folder with scripts; docs: fixes & updates; fbt: added FAP_EXAMPLES variable to enable building example apps. Disabled by default. fbt: added TERM to list of proxied environment variables * fbt: better help output; disabled implicit_deps_unchanged; added color to import validator reports * fbt: moved debug configuration to separate tool * fbt: proper dependency tracker for SDK source file; renamed linker script for external apps * fbt: fixed debug elf path * fbt: packaging sdk archive * scripts: fixed sconsdist.py * fbt: reworked sdk packing; docs: updates * docs: info on cli target; linter fixes * fbt: moved main code to scripts folder * scripts: packing update into .tgz * fbt, scripts: reworked copro_dist to build .tgz * scripts: fixed naming for archived updater package * Scripts: fix ぐるぐる回る Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
		
			
				
	
	
		
			30 lines
		
	
	
		
			702 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			702 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from SCons.Builder import Builder
 | |
| from SCons.Action import Action
 | |
| 
 | |
| 
 | |
| def version_emitter(target, source, env):
 | |
|     target_dir = target[0]
 | |
|     target = [
 | |
|         target_dir.File("version.inc.h"),
 | |
|         target_dir.File("version.json"),
 | |
|     ]
 | |
|     return target, source
 | |
| 
 | |
| 
 | |
| def generate(env):
 | |
|     env.Append(
 | |
|         BUILDERS={
 | |
|             "VersionBuilder": Builder(
 | |
|                 action=Action(
 | |
|                     '${PYTHON3} "${ROOT_DIR.abspath}/scripts/version.py" generate -t ${TARGET_HW} -o ${TARGET.dir.posix} --dir "${ROOT_DIR}"',
 | |
|                     "${VERSIONCOMSTR}",
 | |
|                 ),
 | |
|                 emitter=version_emitter,
 | |
|             ),
 | |
|         }
 | |
|     )
 | |
| 
 | |
| 
 | |
| def exists(env):
 | |
|     return True
 |