I have no idea if this would work or not once implemented, but how about something like the following:
- Add the STM project file to the project , but exclude it from the compilation
- Add a few new file attributes for a file that makes up the project or sub XML tags
- One of the new attribute/tag would cause a watch process to be triggered that watches for changes to the file.
- Once a change in the file is detected another attribute/tag would indicate what is to be done due to the file changing.
Sounds like the CBP file XML snippet could be like the following (okay you would not have both the <squirrelscript>lines:
<Unit filename="STMProject.prj">
<Option compile="0" />
<Option link="0" />
<changedetected>
<squirrelscript filename="file name to run on change detected " />
<squirrelscript script="script code to run on change detected " />
</changedetected>
</Unit>
How does this sound?