Andes Workshop http://forum.andestech.com/ |
|
How to set Pre-build & Post-build steps in AndeSight http://forum.andestech.com/viewtopic.php?f=6&t=719 |
Page 1 of 1 |
Author: | HuJin [ Thu Jul 04, 2013 4:24 pm ] |
Post subject: | How to set Pre-build & Post-build steps in AndeSight |
Engineers who uses AndeSight to compile project with auto-generated Makefile may need do some steps before compiling or after compiling, for example, someone may need copy a file to upper folder to make sure that compiling is passed and then restore it. In this condition it is not appropriate for doing this in Makefile, Andesight provide another way to fulfill this purpose. We take "Hello-world" project for example to show how to set build steps and the effects. Ex. 1: We set "Release" as the active build target. Right click the project name, choose "Properties" --> "Setting" --> "C/C++ Build" --> "Setting" --> "Build Steps", input the command, and click "OK". As: Attachment: Build "hello-world", in "Console View", the output is: Attachment: Ex. 2: We set "Debug" as the active build target. Also input the Pre-build & Post-build commands: Attachment: Build "hello-world", in "Console View", the output is: Attachment: From these two examples, we do conclusions as: 1. "Build Steps" Tab provide "Pre-build" and "Post-build" hooks. 2. "Pre-build" and "Post-build" currently only supports bash shell for it will be running in cygwin enviroments. 3. The PATH of executing commands depends on your active build target. |
Author: | Hubert Chung [ Fri Aug 18, 2017 8:22 pm ] | |||
Post subject: | Re: How to set Pre-build & Post-build steps in AndeSight | |||
Add advanced usage. The previous usage is available when there are limit scripts to run. While you got decades of script to run, it's hard to use this scenario to debug and run. You can follow the attachment to use a script file. The key point is how to add parameter/variable into the script file. Attachment:
|
Page 1 of 1 | All times are UTC + 8 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |