import qbs Product { Depends { name: "cpp" } Properties { // Настройки Debug condition: cpp.debugInformation property string DeployPath: "Bin/Debug" } // а это для релиза property string DeployPath: "Bin/Release" cpp.defines: [ "STM32F102", "STM32F1", "STM32", "USE_HAL_DRIVER", "STM32F102xB", ] cpp.driverFlags:[ "-mcpu=cortex-m3", "-mthumb", "-mfloat-abi=soft", "-specs=nano.specs", ] cpp.commonCompilerFlags: [ "-ffunction-sections", "-fdata-sections", "-funsigned-bitfields", "-fmessage-length=0", "-fsigned-char", "-c", ] cpp.cxxFlags: [ "-fno-threadsafe-statics", ] cpp.enableRtti: false cpp.enableExceptions: false cpp.linkerFlags: [ "-Map","output.map", "--gc-sections", "-lm", ] }