 ebc2b66372
			
		
	
	
		ebc2b66372
		
			
		
	
	
	
	
		
			
			* fbt: split sdk management code * scripts: fixed import handling * fbt: sdk: reformatted paths * scrips: dist: bundling libs as a build artifact * fbt: sdk: better path management * typo fix * fbt: sdk: minor path handling fixes * toolchain: fixed windows toolchain download * fbt: minor refactorin * fbt: moved sdk management code to extapps.scons * fbt: fixed sdk symbols header path; disabled -fstack-usage * fbt: changed pathing for .py scripts * fbt: changed SDK_HEADERS pathing; added libusb to SDK; added icon_i.h to SDK; added hw target to SDK meta * fbt: added libusb headers to SDK * picopass: include cleanup; api: added subghz/registry.h; api: added mbedtls to exported headers * picopass: fixed formatting * fbt: fixed COPRO_ASSETS_SCRIPT * sdk: added basic infrared apis * toolchain: added ufbt to list of legal fbtenv callers; updated error messages * fbt: changed manifest collection & icon processing code * fbt: simpler srcdir lookup * toolchain: path management fixes; fbt: fixes for fap private libs paths * scripts: toolchain: reworked download on Windows * toolchain: v17 * scripts: added colorlog for logging * Github: fix unit tests Co-authored-by: あく <alleteam@gmail.com>
		
			
				
	
	
		
			51 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Batchfile
		
	
	
	
	
	
			
		
		
	
	
			51 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Batchfile
		
	
	
	
	
	
| @echo off
 | |
| 
 | |
| if not [%FBT_ROOT%] == [] (
 | |
|     goto already_set
 | |
| )
 | |
| 
 | |
| set "FBT_ROOT=%~dp0\..\..\"
 | |
| pushd %FBT_ROOT%
 | |
| set "FBT_ROOT=%cd%"
 | |
| popd
 | |
| 
 | |
| if not [%FBT_NOENV%] == [] (
 | |
|     exit /b 0
 | |
| )
 | |
| 
 | |
| set "FLIPPER_TOOLCHAIN_VERSION=17"
 | |
| 
 | |
| if [%FBT_TOOLCHAIN_ROOT%] == [] (
 | |
|     set "FBT_TOOLCHAIN_ROOT=%FBT_ROOT%\toolchain\x86_64-windows"
 | |
| )
 | |
| 
 | |
| if not exist "%FBT_TOOLCHAIN_ROOT%" (
 | |
|     powershell -ExecutionPolicy Bypass -File "%FBT_ROOT%\scripts\toolchain\windows-toolchain-download.ps1" "%flipper_toolchain_version%" "%FBT_TOOLCHAIN_ROOT%"
 | |
| )
 | |
| if not exist "%FBT_TOOLCHAIN_ROOT%\VERSION" (
 | |
|     powershell -ExecutionPolicy Bypass -File "%FBT_ROOT%\scripts\toolchain\windows-toolchain-download.ps1" "%flipper_toolchain_version%" "%FBT_TOOLCHAIN_ROOT%"
 | |
| )
 | |
| 
 | |
| set /p REAL_TOOLCHAIN_VERSION=<"%FBT_TOOLCHAIN_ROOT%\VERSION"
 | |
| if not "%REAL_TOOLCHAIN_VERSION%" == "%FLIPPER_TOOLCHAIN_VERSION%" (
 | |
|     powershell -ExecutionPolicy Bypass -File "%FBT_ROOT%\scripts\toolchain\windows-toolchain-download.ps1" "%flipper_toolchain_version%" "%FBT_TOOLCHAIN_ROOT%"
 | |
| )
 | |
| 
 | |
| 
 | |
| set "HOME=%USERPROFILE%"
 | |
| set "PYTHONHOME=%FBT_TOOLCHAIN_ROOT%\python"
 | |
| set "PYTHONPATH="
 | |
| set "PYTHONNOUSERSITE=1"
 | |
| set "PATH=%FBT_TOOLCHAIN_ROOT%\python;%FBT_TOOLCHAIN_ROOT%\bin;%FBT_TOOLCHAIN_ROOT%\protoc\bin;%FBT_TOOLCHAIN_ROOT%\openocd\bin;%PATH%"
 | |
| set "PROMPT=(fbt) %PROMPT%"
 | |
| 
 | |
| :already_set
 | |
| 
 | |
| if not "%1" == "env" (
 | |
|     echo *********************************
 | |
|     echo *     fbt build environment     *
 | |
|     echo *********************************
 | |
|     cd "%FBT_ROOT%"
 | |
|     cmd /k
 | |
| )
 |