gcc bridge hinzugefügt
This commit is contained in:
commit
383b17c55c
20
Gcc-Proxy.sln
Normal file
20
Gcc-Proxy.sln
Normal file
@ -0,0 +1,20 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 2012
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Gcc-Proxy", "Gcc-Proxy\Gcc-Proxy.csproj", "{7A75E2DB-2DD1-4D32-8BAE-E8FB15BCB273}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{7A75E2DB-2DD1-4D32-8BAE-E8FB15BCB273}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{7A75E2DB-2DD1-4D32-8BAE-E8FB15BCB273}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{7A75E2DB-2DD1-4D32-8BAE-E8FB15BCB273}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{7A75E2DB-2DD1-4D32-8BAE-E8FB15BCB273}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
24
Gcc-Proxy/App.config
Normal file
24
Gcc-Proxy/App.config
Normal file
@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<configSections>
|
||||
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
|
||||
<section name="Gcc_Proxy.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
|
||||
</sectionGroup>
|
||||
</configSections>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
|
||||
</startup>
|
||||
<userSettings>
|
||||
<Gcc_Proxy.Properties.Settings>
|
||||
<setting name="gcc" serializeAs="String">
|
||||
<value>hardware\tools\avr\bin\avr-g++.orig.exe</value>
|
||||
</setting>
|
||||
<setting name="para" serializeAs="String">
|
||||
<value>-O3</value>
|
||||
</setting>
|
||||
<setting name="work" serializeAs="String">
|
||||
<value>G:\Programme\arduino-nightly</value>
|
||||
</setting>
|
||||
</Gcc_Proxy.Properties.Settings>
|
||||
</userSettings>
|
||||
</configuration>
|
67
Gcc-Proxy/Gcc-Proxy.csproj
Normal file
67
Gcc-Proxy/Gcc-Proxy.csproj
Normal file
@ -0,0 +1,67 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{7A75E2DB-2DD1-4D32-8BAE-E8FB15BCB273}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Gcc_Proxy</RootNamespace>
|
||||
<AssemblyName>avr-g++</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>G:\Programme\arduino-nightly\hardware\tools\avr\bin\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
6
Gcc-Proxy/Gcc-Proxy.csproj.user
Normal file
6
Gcc-Proxy/Gcc-Proxy.csproj.user
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
|
||||
<StartArguments>-c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10600 -DARDUINO_AVR_MEGATRONICS -DARDUINO_ARCH_AVR -IG:\Programme\arduino-nightly\hardware\arduino\avr\cores\arduino -IG:\Programme\arduino-nightly\hardware\arduino\avr\variants\mega -IG:\Programme\arduino-nightly\hardware\arduino\avr\libraries\Wire -ID:\Arduino\libraries\U8glib -IG:\Programme\arduino-nightly\libraries\LiquidCrystal\src -IG:\Programme\arduino-nightly\hardware\arduino\avr\libraries\SPI C:\Users\netz\AppData\Local\Temp\build3326865059667078890.tmp\temperature.cpp -o C:\Users\netz\AppData\Local\Temp\build3326865059667078890.tmp\temperature.cpp.o</StartArguments>
|
||||
</PropertyGroup>
|
||||
</Project>
|
24
Gcc-Proxy/Program.cs
Normal file
24
Gcc-Proxy/Program.cs
Normal file
@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace Gcc_Proxy
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
Process p = new Process();
|
||||
p.StartInfo.Arguments = String.Join(" ", args) + " " + Gcc_Proxy.Properties.Settings.Default.para;
|
||||
p.StartInfo.FileName = Gcc_Proxy.Properties.Settings.Default.gcc;
|
||||
p.StartInfo.WorkingDirectory = Gcc_Proxy.Properties.Settings.Default.work;
|
||||
p.StartInfo.UseShellExecute = false;
|
||||
p.Start();
|
||||
p.WaitForExit();
|
||||
Environment.Exit(p.ExitCode);
|
||||
}
|
||||
}
|
||||
}
|
36
Gcc-Proxy/Properties/AssemblyInfo.cs
Normal file
36
Gcc-Proxy/Properties/AssemblyInfo.cs
Normal file
@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// Allgemeine Informationen über eine Assembly werden über die folgenden
|
||||
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
|
||||
// die mit einer Assembly verknüpft sind.
|
||||
[assembly: AssemblyTitle("Gcc-Proxy")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("Gcc-Proxy")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2014")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Durch Festlegen von ComVisible auf "false" werden die Typen in dieser Assembly unsichtbar
|
||||
// für COM-Komponenten. Wenn Sie auf einen Typ in dieser Assembly von
|
||||
// COM zugreifen müssen, legen Sie das ComVisible-Attribut für diesen Typ auf "true" fest.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
|
||||
[assembly: Guid("376d10f9-0803-4a09-ba90-d401f5d446b2")]
|
||||
|
||||
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
|
||||
//
|
||||
// Hauptversion
|
||||
// Nebenversion
|
||||
// Buildnummer
|
||||
// Revision
|
||||
//
|
||||
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
|
||||
// übernehmen, indem Sie "*" eingeben:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
62
Gcc-Proxy/Properties/Settings.Designer.cs
generated
Normal file
62
Gcc-Proxy/Properties/Settings.Designer.cs
generated
Normal file
@ -0,0 +1,62 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Dieser Code wurde von einem Tool generiert.
|
||||
// Laufzeitversion:4.0.30319.18444
|
||||
//
|
||||
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
||||
// der Code erneut generiert wird.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Gcc_Proxy.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default {
|
||||
get {
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("hardware\\tools\\avr\\bin\\avr-g++.orig.exe")]
|
||||
public string gcc {
|
||||
get {
|
||||
return ((string)(this["gcc"]));
|
||||
}
|
||||
set {
|
||||
this["gcc"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("-O3")]
|
||||
public string para {
|
||||
get {
|
||||
return ((string)(this["para"]));
|
||||
}
|
||||
set {
|
||||
this["para"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("G:\\Programme\\arduino-nightly")]
|
||||
public string work {
|
||||
get {
|
||||
return ((string)(this["work"]));
|
||||
}
|
||||
set {
|
||||
this["work"] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
15
Gcc-Proxy/Properties/Settings.settings
Normal file
15
Gcc-Proxy/Properties/Settings.settings
Normal file
@ -0,0 +1,15 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="Gcc_Proxy.Properties" GeneratedClassName="Settings">
|
||||
<Profiles />
|
||||
<Settings>
|
||||
<Setting Name="gcc" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)">hardware\tools\avr\bin\avr-g++.orig.exe</Value>
|
||||
</Setting>
|
||||
<Setting Name="para" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)">-O3</Value>
|
||||
</Setting>
|
||||
<Setting Name="work" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)">G:\Programme\arduino-nightly</Value>
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
BIN
Gcc-Proxy/bin/Release/avr-g++.exe
Normal file
BIN
Gcc-Proxy/bin/Release/avr-g++.exe
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user