Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Custom build step (Read 2373 times)
f1oat
Newbies
*
Offline


Posts: 4
Joined: Jun 13th, 2016
Custom build step
Jun 18th, 2016 at 3:46pm
Print Post  
I have a perl script to generate automatically a C file of my project.
I tried to add a custom build step in VisualStudio to call this script at the beginning of build.
It is not called. Looks like vMicro is taking the control on the whole build process and ignore my customization.
How to achieve that?
Thanks.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Custom build step
Reply #1 - Jun 18th, 2016 at 3:51pm
Print Post  
Hi,

Visual Micro implements the Arduino build hooks but it is on the list to also implement the vs events.

You can read about the arduino hooks on the arduino.cc site.

Here is an example from the RedBear labels platform.txt which uses a post build hook.

Code
Select All
s}/sh" "{runtime.platform.path}/tools/crc32/{runtime.os}/crc32.sh" "{build.path}/{build.project_name}.bin" "{runtime.platform.path}/tools/crc32/{runtime.os}" "{compiler.path}"
 

« Last Edit: Jun 18th, 2016 at 3:52pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint