public Esp32SampleRelocator() { AutoDetectedFrameworks = new AutoDetectedFramework[0]; AutoPathMappings = new PathMapping[] { }; }
public STM32SampleRelocator() { /* * Known problems with trying to map frameworks: * HAL: * Much longer build times * LL-only samples don't provide cfg files for HAL * HAL-only samples don't provide stm32_assert.h needed by LL * lwIP: * Different SDKs have slightly different file layouts * Some samples don't provide sys_xxx() functions */ AutoDetectedFrameworks = new AutoDetectedFramework[] {/* * new AutoDetectedFramework {FrameworkID = "com.sysprogs.arm.stm32.hal", * FileRegex = new Regex(@"\$\$SYS:VSAMPLE_DIR\$\$/[^/\\]+/Drivers/[^/\\]+_HAL_Driver", RegexOptions.Compiled | RegexOptions.IgnoreCase), * DisableTriggerRegex = new Regex(@"_ll_[^/\\]+\.c", RegexOptions.Compiled | RegexOptions.IgnoreCase), * Configuration = new Dictionary<string, string>() } */ /*new AutoDetectedFramework {FrameworkID = "com.sysprogs.arm.stm32.LwIP", * FileRegex = new Regex(@"\$\$SYS:VSAMPLE_DIR\$\$/[^/\\]+/Middlewares/Third_Party/LwIP", RegexOptions.Compiled | RegexOptions.IgnoreCase), * DisableTriggerRegex = new Regex(@"^$", RegexOptions.Compiled | RegexOptions.IgnoreCase), * Configuration = new Dictionary<string, string>() }*/ }; AutoPathMappings = new PathMapping[] { new PathMapping(@"\$\$SYS:VSAMPLE_DIR\$\$/STM32Cube_FW_([^_]+)_[^/\\]+/Drivers/STM32[^/\\]+xx_HAL_Driver/(.*)", "$$SYS:BSP_ROOT$$/STM32{1}xxxx/STM32{1}xx_HAL_Driver/{2}"), new PathMapping(@"\$\$SYS:VSAMPLE_DIR\$\$/STM32Cube_FW_([^_]+)_[^/\\]+/Drivers/CMSIS/(.*)", "$$SYS:BSP_ROOT$$/STM32{1}xxxx/CMSIS_HAL/{2}"), new PathMapping(@"\$\$SYS:VSAMPLE_DIR\$\$/STM32Cube_FW_([^_]+)_[^/\\]+/Middlewares/ST/STM32_USB_(Host|Device)_Library/(.*)", "$$SYS:BSP_ROOT$$/STM32_USB_{2}_Library/{3}"), new PathMapping(@"\$\$SYS:VSAMPLE_DIR\$\$/STM32Cube_FW_([^_]+)_[^/\\]+/Middlewares/Third_Party/(FreeRTOS)/(.*)", "$$SYS:BSP_ROOT$$/{2}/{3}"), }; }
public NordicSampleRelocator() { AutoDetectedFrameworks = new AutoDetectedFramework[0]; AutoPathMappings = new PathMapping[] { new PathMapping(@"\$\$SYS:VSAMPLE_DIR\$\$/(components|config|external)/(.*)", "$$SYS:BSP_ROOT$$/nRF5x/{1}/{2}"), }; }
public NordicSampleRelocator(ReverseConditionTable optionalConditionTableForFrameworkMapping) : base(optionalConditionTableForFrameworkMapping) { AutoDetectedFrameworks = new AutoDetectedFramework[0]; AutoPathMappings = new PathMapping[] { new PathMapping(@"\$\$SYS:VSAMPLE_DIR\$\$/(components|config|external|integration|modules)/(.*)", "$$SYS:BSP_ROOT$$/nRF5x/{1}/{2}"), }; }
public STM32SampleRelocator() { /* Known problems with trying to map frameworks: HAL: * Much longer build times * LL-only samples don't provide cfg files for HAL * HAL-only samples don't provide stm32_assert.h needed by LL lwIP: * Different SDKs have slightly different file layouts * Some samples don't provide sys_xxx() functions */ AutoDetectedFrameworks = new AutoDetectedFramework[] {/* new AutoDetectedFramework {FrameworkID = "com.sysprogs.arm.stm32.hal", FileRegex = new Regex(@"\$\$SYS:VSAMPLE_DIR\$\$/[^/\\]+/Drivers/[^/\\]+_HAL_Driver", RegexOptions.Compiled | RegexOptions.IgnoreCase), DisableTriggerRegex = new Regex(@"_ll_[^/\\]+\.c", RegexOptions.Compiled | RegexOptions.IgnoreCase), Configuration = new Dictionary<string, string>() } */ /*new AutoDetectedFramework {FrameworkID = "com.sysprogs.arm.stm32.LwIP", FileRegex = new Regex(@"\$\$SYS:VSAMPLE_DIR\$\$/[^/\\]+/Middlewares/Third_Party/LwIP", RegexOptions.Compiled | RegexOptions.IgnoreCase), DisableTriggerRegex = new Regex(@"^$", RegexOptions.Compiled | RegexOptions.IgnoreCase), Configuration = new Dictionary<string, string>() }*/ }; AutoPathMappings = new PathMapping[] { new PathMapping(@"\$\$SYS:VSAMPLE_DIR\$\$/STM32Cube_FW_([^_]+)_[^/\\]+/Drivers/STM32[^/\\]+xx_HAL_Driver/(.*)", "$$SYS:BSP_ROOT$$/STM32{1}xxxx/STM32{1}xx_HAL_Driver/{2}"), new PathMapping(@"\$\$SYS:VSAMPLE_DIR\$\$/STM32Cube_FW_([^_]+)_[^/\\]+/Drivers/CMSIS/(.*)", "$$SYS:BSP_ROOT$$/STM32{1}xxxx/CMSIS_HAL/{2}"), new PathMapping(@"\$\$SYS:VSAMPLE_DIR\$\$/STM32Cube_FW_([^_]+)_[^/\\]+/Middlewares/ST/STM32_USB_(Host|Device)_Library/(.*)", "$$SYS:BSP_ROOT$$/STM32_USB_{2}_Library/{3}"), new PathMapping(@"\$\$SYS:VSAMPLE_DIR\$\$/STM32Cube_FW_([^_]+)_[^/\\]+/Middlewares/Third_Party/(FreeRTOS)/(.*)", "$$SYS:BSP_ROOT$$/{2}/{3}"), }; }