master opens in Studio, so this branch should too. One project, the port's own chip, flags mirrored by hand against the CMake build — and the acceptance is not that it builds but that it builds the same firmware: .text (7094 B) and .data (336 B) come out byte-identical to the CMake output from the same sources. libavr is found through $(LIBAVR_ROOT), the variable the CMake build already uses, so no machine path is committed; Studio expands it from the environment. The toolchain is named by flavour only, since nothing Studio ships can compile -std=c++26 and the path to one that can is per-machine state. The componentinfo file the project cannot load without is generated by libavr's tools/atmelstudio/componentinfo.py and ignored here, as are Studio's output directories. Release is what the flag gate compares, the presets defining no debug build; Debug carries the -Og -gdwarf-4 pair libavr's own debug preset uses. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
97 lines
5.4 KiB
XML
97 lines
5.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="14.0">
|
|
<PropertyGroup>
|
|
<SchemaVersion>2.0</SchemaVersion>
|
|
<ProjectVersion>7.0</ProjectVersion>
|
|
<ToolchainName>com.Atmel.AVRGCC8.CPP</ToolchainName>
|
|
<ProjectGuid>4f0c1d92-6a5b-4e33-9a71-2c8f5b0d47ae</ProjectGuid>
|
|
<avrdevice>ATmega328P</avrdevice>
|
|
<avrdeviceseries>none</avrdeviceseries>
|
|
<OutputType>Executable</OutputType>
|
|
<Language>CPP</Language>
|
|
<OutputFileName>$(MSBuildProjectName)</OutputFileName>
|
|
<OutputFileExtension>.elf</OutputFileExtension>
|
|
<OutputDirectory>$(MSBuildProjectDirectory)\$(Configuration)</OutputDirectory>
|
|
<AssemblyName>fantemp</AssemblyName>
|
|
<Name>fantemp</Name>
|
|
<RootNamespace>fantemp</RootNamespace>
|
|
<ToolchainFlavour>avr-g++-16.1.0</ToolchainFlavour>
|
|
<KeepTimersRunning>true</KeepTimersRunning>
|
|
<OverrideVtor>false</OverrideVtor>
|
|
<CacheFlash>true</CacheFlash>
|
|
<ProgFlashFromRam>true</ProgFlashFromRam>
|
|
<RamSnippetAddress>0x20000000</RamSnippetAddress>
|
|
<UncachedRange />
|
|
<preserveEEPROM>true</preserveEEPROM>
|
|
<OverrideVtorValue>exception_table</OverrideVtorValue>
|
|
<BootSegment>2</BootSegment>
|
|
<ResetRule>0</ResetRule>
|
|
<eraseonlaunchrule>0</eraseonlaunchrule>
|
|
<EraseKey />
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
|
|
<ToolchainSettings>
|
|
<AvrGccCpp>
|
|
<avrgcc.common.Device>-mmcu=atmega328p</avrgcc.common.Device>
|
|
<avrgcc.common.outputfiles.hex>True</avrgcc.common.outputfiles.hex>
|
|
<avrgcc.common.outputfiles.lss>True</avrgcc.common.outputfiles.lss>
|
|
<avrgcc.common.outputfiles.eep>True</avrgcc.common.outputfiles.eep>
|
|
<avrgcc.common.outputfiles.srec>True</avrgcc.common.outputfiles.srec>
|
|
<avrgcc.common.outputfiles.usersignatures>False</avrgcc.common.outputfiles.usersignatures>
|
|
<avrgcccpp.compiler.symbols.DefSymbols>
|
|
<ListValues>
|
|
<Value>NDEBUG</Value>
|
|
</ListValues>
|
|
</avrgcccpp.compiler.symbols.DefSymbols>
|
|
<avrgcccpp.compiler.directories.IncludePaths>
|
|
<ListValues>
|
|
<Value>$(LIBAVR_ROOT)\include</Value>
|
|
</ListValues>
|
|
</avrgcccpp.compiler.directories.IncludePaths>
|
|
<avrgcccpp.compiler.optimization.level>Optimize for size (-Os)</avrgcccpp.compiler.optimization.level>
|
|
<avrgcccpp.compiler.optimization.PrepareFunctionsForGarbageCollection>True</avrgcccpp.compiler.optimization.PrepareFunctionsForGarbageCollection>
|
|
<avrgcccpp.compiler.optimization.PrepareDataForGarbageCollection>True</avrgcccpp.compiler.optimization.PrepareDataForGarbageCollection>
|
|
<avrgcccpp.compiler.warnings.AllWarnings>True</avrgcccpp.compiler.warnings.AllWarnings>
|
|
<avrgcccpp.compiler.miscellaneous.OtherFlags>-std=c++26 -Wextra -mrelax -fno-exceptions -fno-rtti -fno-threadsafe-statics</avrgcccpp.compiler.miscellaneous.OtherFlags>
|
|
<avrgcccpp.linker.optimization.GarbageCollectUnusedSections>True</avrgcccpp.linker.optimization.GarbageCollectUnusedSections>
|
|
<avrgcccpp.linker.miscellaneous.LinkerFlags>-mrelax</avrgcccpp.linker.miscellaneous.LinkerFlags>
|
|
</AvrGccCpp>
|
|
</ToolchainSettings>
|
|
</PropertyGroup>
|
|
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
|
|
<ToolchainSettings>
|
|
<AvrGccCpp>
|
|
<avrgcc.common.Device>-mmcu=atmega328p</avrgcc.common.Device>
|
|
<avrgcc.common.outputfiles.hex>True</avrgcc.common.outputfiles.hex>
|
|
<avrgcc.common.outputfiles.lss>True</avrgcc.common.outputfiles.lss>
|
|
<avrgcc.common.outputfiles.eep>True</avrgcc.common.outputfiles.eep>
|
|
<avrgcc.common.outputfiles.srec>True</avrgcc.common.outputfiles.srec>
|
|
<avrgcc.common.outputfiles.usersignatures>False</avrgcc.common.outputfiles.usersignatures>
|
|
<avrgcccpp.compiler.symbols.DefSymbols>
|
|
<ListValues>
|
|
<Value>DEBUG</Value>
|
|
</ListValues>
|
|
</avrgcccpp.compiler.symbols.DefSymbols>
|
|
<avrgcccpp.compiler.directories.IncludePaths>
|
|
<ListValues>
|
|
<Value>$(LIBAVR_ROOT)\include</Value>
|
|
</ListValues>
|
|
</avrgcccpp.compiler.directories.IncludePaths>
|
|
<avrgcccpp.compiler.optimization.level>Optimize debugging experience (-Og)</avrgcccpp.compiler.optimization.level>
|
|
<avrgcccpp.compiler.optimization.PrepareFunctionsForGarbageCollection>True</avrgcccpp.compiler.optimization.PrepareFunctionsForGarbageCollection>
|
|
<avrgcccpp.compiler.optimization.PrepareDataForGarbageCollection>True</avrgcccpp.compiler.optimization.PrepareDataForGarbageCollection>
|
|
<avrgcccpp.compiler.warnings.AllWarnings>True</avrgcccpp.compiler.warnings.AllWarnings>
|
|
<avrgcccpp.compiler.miscellaneous.OtherFlags>-std=c++26 -Wextra -mrelax -fno-exceptions -fno-rtti -fno-threadsafe-statics -gdwarf-4</avrgcccpp.compiler.miscellaneous.OtherFlags>
|
|
<avrgcccpp.linker.optimization.GarbageCollectUnusedSections>True</avrgcccpp.linker.optimization.GarbageCollectUnusedSections>
|
|
<avrgcccpp.linker.miscellaneous.LinkerFlags>-mrelax</avrgcccpp.linker.miscellaneous.LinkerFlags>
|
|
</AvrGccCpp>
|
|
</ToolchainSettings>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<Compile Include="..\src\main.cpp">
|
|
<SubType>compile</SubType>
|
|
</Compile>
|
|
</ItemGroup>
|
|
<Import Project="$(AVRSTUDIO_EXE_PATH)\Vs\Compiler.targets" />
|
|
</Project>
|