Hi,
I have a problem with getting the filenames in a specific project and configuration. In S32 studio (Version: 2017.R1, Build id: 171018) I did it rather awkwardly by looking in the file .cproject for this section:
<option id="com.freescale.s32ds.cross.gnu.tool.c.linker.option.linkOrder.1217940141" name="Link Order" superClass="com.freescale.s32ds.cross.gnu.tool.c.linker.option.linkOrder" useByScannerDiscovery="false" valueType="stringList">
<listOptionValue builtIn="false" value="Core0/flashrchw.c"/>
....
....
But this section is only appearing when setting the tick box "customize linker input order" in the setting for linker.
To make things worse, this section member "name" field has been removed in S32 Version: 2.1, Build id: 190624.
Do you have any suggestion how to get all the source files that is being used/built for a specific project/configuration? What file contains this information?
I want a list like this:
<listOptionValue builtIn="false" value="Core0/flashrchw.c"/>
<listOptionValue builtIn="false" value="Core0/main_Z7_0.c"/>
<listOptionValue builtIn="false" value="Core1/main_Z7_1.c"/>
...
...
Regards,
Mathias
Solved! Go to Solution.
Hi,
Well - if I understand it correctly - you like to get something like sources list for particular configuration (Debug/Debug RAM/Release), correct?
You can get ProjectInfo.xml file where is list of sources. Right click on project name -> Export -> S32Design Studio -> Project Info Export wizard:
Select configuration you are interested in:
After finish you will get ProjectInfo.xml file in project root folder:
Hope it helps.
Jiri
Can anyone help me with this?
Hi,
Well - if I understand it correctly - you like to get something like sources list for particular configuration (Debug/Debug RAM/Release), correct?
You can get ProjectInfo.xml file where is list of sources. Right click on project name -> Export -> S32Design Studio -> Project Info Export wizard:
Select configuration you are interested in:
After finish you will get ProjectInfo.xml file in project root folder:
Hope it helps.
Jiri
Hi Jiri,
Thanks a lot!
This is exactly what I need. Do you know if it is possible to automate this somehow, so that this file is always generated when building for example?
Mathias
Hi Mathias,
I'm afraid that there is no such feature. You need to create poroject info xml file manually.
Other possibility is parsing build log which looks like this:
This file is generated when project is build and is stored in workspace\.metadata\.plugins\org.eclipse.cdt.ui\ProjectName.log
Jiri