Skip to content

Commit

Permalink
Added missing include stuff. Will have to package with an installer a…
Browse files Browse the repository at this point in the history
…t some point to prevent directory issues.
  • Loading branch information
Samson committed Nov 9, 2015
1 parent 044770f commit de1dad7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Ev3DL/Build.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ private void btnBrowse_Click(object sender, EventArgs e)
tbFile.Text = openFileDialog1.FileName;
}

private const string includes = "lms2012\\ev3_button.c lms2012\\ev3_command.c lms2012\\ev3_lcd.c lms2012\\ev3_output.c lms2012\\ev3_sound.c lms2012\\ev3_timer.c ";
private void btnBuild_Click(object sender, EventArgs e)
{
var substrstart= tbFile.Text.LastIndexOf("\\")+1;
var oname = tbFile.Text.Substring(substrstart,tbFile.Text.LastIndexOf(".")-substrstart);
System.Diagnostics.Process BuildProcess = new System.Diagnostics.Process();
BuildProcess.StartInfo.FileName = @"C:\CSLITE\bin\arm-none-linux-gnueabi-g++.exe";
BuildProcess.StartInfo.Arguments = "-o "+oname+".o "+ tbFile.Text;
BuildProcess.StartInfo.Arguments = "-o "+oname+".o "+ includes + tbFile.Text;
BuildProcess.StartInfo.CreateNoWindow = true;
BuildProcess.StartInfo.UseShellExecute = false;
BuildProcess.StartInfo.RedirectStandardOutput = true;
Expand Down

0 comments on commit de1dad7

Please # to comment.