From 383b17c55cbf83d7a29c7e1ebe2943b9a0e6222a Mon Sep 17 00:00:00 2001 From: BlubbFish Date: Sun, 15 Nov 2015 16:12:32 +0000 Subject: [PATCH] =?UTF-8?q?gcc=20bridge=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gcc-Proxy.sln | 20 +++++++ Gcc-Proxy/App.config | 24 ++++++++ Gcc-Proxy/Gcc-Proxy.csproj | 67 ++++++++++++++++++++++ Gcc-Proxy/Gcc-Proxy.csproj.user | 6 ++ Gcc-Proxy/Program.cs | 24 ++++++++ Gcc-Proxy/Properties/AssemblyInfo.cs | 36 ++++++++++++ Gcc-Proxy/Properties/Settings.Designer.cs | 62 ++++++++++++++++++++ Gcc-Proxy/Properties/Settings.settings | 15 +++++ Gcc-Proxy/bin/Release/avr-g++.exe | Bin 0 -> 6656 bytes 9 files changed, 254 insertions(+) create mode 100644 Gcc-Proxy.sln create mode 100644 Gcc-Proxy/App.config create mode 100644 Gcc-Proxy/Gcc-Proxy.csproj create mode 100644 Gcc-Proxy/Gcc-Proxy.csproj.user create mode 100644 Gcc-Proxy/Program.cs create mode 100644 Gcc-Proxy/Properties/AssemblyInfo.cs create mode 100644 Gcc-Proxy/Properties/Settings.Designer.cs create mode 100644 Gcc-Proxy/Properties/Settings.settings create mode 100644 Gcc-Proxy/bin/Release/avr-g++.exe diff --git a/Gcc-Proxy.sln b/Gcc-Proxy.sln new file mode 100644 index 0000000..ff45da0 --- /dev/null +++ b/Gcc-Proxy.sln @@ -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 diff --git a/Gcc-Proxy/App.config b/Gcc-Proxy/App.config new file mode 100644 index 0000000..0618873 --- /dev/null +++ b/Gcc-Proxy/App.config @@ -0,0 +1,24 @@ + + + + +
+ + + + + + + + + hardware\tools\avr\bin\avr-g++.orig.exe + + + -O3 + + + G:\Programme\arduino-nightly + + + + \ No newline at end of file diff --git a/Gcc-Proxy/Gcc-Proxy.csproj b/Gcc-Proxy/Gcc-Proxy.csproj new file mode 100644 index 0000000..4ac2092 --- /dev/null +++ b/Gcc-Proxy/Gcc-Proxy.csproj @@ -0,0 +1,67 @@ + + + + + Debug + AnyCPU + {7A75E2DB-2DD1-4D32-8BAE-E8FB15BCB273} + Exe + Properties + Gcc_Proxy + avr-g++ + v4.5 + 512 + + + AnyCPU + true + full + false + G:\Programme\arduino-nightly\hardware\tools\avr\bin\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + True + True + Settings.settings + + + + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + + + \ No newline at end of file diff --git a/Gcc-Proxy/Gcc-Proxy.csproj.user b/Gcc-Proxy/Gcc-Proxy.csproj.user new file mode 100644 index 0000000..e34fcc9 --- /dev/null +++ b/Gcc-Proxy/Gcc-Proxy.csproj.user @@ -0,0 +1,6 @@ + + + + -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 + + \ No newline at end of file diff --git a/Gcc-Proxy/Program.cs b/Gcc-Proxy/Program.cs new file mode 100644 index 0000000..e249f2c --- /dev/null +++ b/Gcc-Proxy/Program.cs @@ -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); + } + } +} diff --git a/Gcc-Proxy/Properties/AssemblyInfo.cs b/Gcc-Proxy/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..4568f48 --- /dev/null +++ b/Gcc-Proxy/Properties/AssemblyInfo.cs @@ -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")] diff --git a/Gcc-Proxy/Properties/Settings.Designer.cs b/Gcc-Proxy/Properties/Settings.Designer.cs new file mode 100644 index 0000000..f888020 --- /dev/null +++ b/Gcc-Proxy/Properties/Settings.Designer.cs @@ -0,0 +1,62 @@ +//------------------------------------------------------------------------------ +// +// 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. +// +//------------------------------------------------------------------------------ + +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; + } + } + } +} diff --git a/Gcc-Proxy/Properties/Settings.settings b/Gcc-Proxy/Properties/Settings.settings new file mode 100644 index 0000000..12d5aee --- /dev/null +++ b/Gcc-Proxy/Properties/Settings.settings @@ -0,0 +1,15 @@ + + + + + + hardware\tools\avr\bin\avr-g++.orig.exe + + + -O3 + + + G:\Programme\arduino-nightly + + + \ No newline at end of file diff --git a/Gcc-Proxy/bin/Release/avr-g++.exe b/Gcc-Proxy/bin/Release/avr-g++.exe new file mode 100644 index 0000000000000000000000000000000000000000..e4aeb82c00fba5a7529a492cd7be8b205daaee6d GIT binary patch literal 6656 zcmeHLTWlQF8UAN>z1bLNl{j1yNMO7U)Wqz19UF4NPV9K?WOK9eI!;54;@R2b^}y`R zGBfLVQz-;hr3x>=1F4Xzs;xvt9$JAK6=;Q8c%y<|)JmlyQfW&bN};H#)K;Y`{mwtL z>$RPtyn;CE`Obei=Rg1X&)rAwf080Z6vg-P$3!n7muZOcli?iHiQ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