Hi,<div><br></div><div>1. What is the rule file?</div><div>2. What is the logic by which this file is generated?</div><div><br></div><div>I have a list of src files that need to be generated, each by an ADD_CUSTOM_COMMAND</div>
<div><br></div><div>in a FOREACH loop:</div><div><br></div><div>FOREACH(SRC ${SRC_LIST})</div><div><br></div><div>// no code here</div><div><br></div><div>ADD_CUSTOM_COMMAND(...)</div><div><br></div><div><div>// no code here</div>
</div><div><br></div><div><div>ENDFOREACH(SRC)</div><div><br></div><div><br></div>And all BUT the first generated SRC files get a SRC.rule file in the same build directory? Why this?</div><div><br></div><div>Moreover, if I look in the vcxproj file generated I see that the <CustomBuild> is slightly different for the first SRC in the list.</div>
<div><br></div><div>The first <CustomBuild> elements (for the 1st item in SRC_LIST) has as "Include" attribute the relative path (from the current build dir) to the MAIN_DEPENDENCY.</div><div>The rest <CustomBuild> elements (for the rest items in SRC_LIST) have as "Include" attribute the relative path (from the current build dir) to the SRC.rule file.</div>
<div><br></div><div>Why is this?</div><div><br></div><div><br></div><div><br></div><div>-- <br>MSc Gabriel Petrovay<br>Mobile: +41(0)787978034<br><a href="http://www.28msec.com" target="_blank">www.28msec.com</a><br>
</div>