Get source files in S32 eclipse project

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Get source files in S32 eclipse project

ソリューションへジャンプ
2,489件の閲覧回数
mathias_edman
Contributor III

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

タグ(2)
0 件の賞賛
返信
1 解決策
2,354件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

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: 

pastedImage_1.png

Select configuration you are interested in: 

pastedImage_2.png

After finish you will get ProjectInfo.xml file in project root folder:

pastedImage_3.png

Hope it helps. 

Jiri 

元の投稿で解決策を見る

4 返答(返信)
2,354件の閲覧回数
mathias_edman
Contributor III

Can anyone help me with this?

0 件の賞賛
返信
2,355件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

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: 

pastedImage_1.png

Select configuration you are interested in: 

pastedImage_2.png

After finish you will get ProjectInfo.xml file in project root folder:

pastedImage_3.png

Hope it helps. 

Jiri 

2,354件の閲覧回数
mathias_edman
Contributor III

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

0 件の賞賛
返信
2,354件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

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: 

pastedImage_1.png

This file is generated when project is build and is stored in workspace\.metadata\.plugins\org.eclipse.cdt.ui\ProjectName.log 

Jiri