How to copy Include File Search Paths from one project to another?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to copy Include File Search Paths from one project to another?

跳至解决方案
2,187 次查看
YK
Contributor I

Hello,

 

I use CW 10.1.1 for StarCores for targeting 8156.

 

I create a new project, which is a Simple Library. The list of Include Search Paths in the Properties of project  is empty in this particular case. I have to list referenced include files of SmartDSP OS because some functions of it are called from my library.  Usually, I open Properties of a neighbour project and copy paths one by one.

Is there any faster way to copy Include File Search Paths from one project to another?

 

Thanks In Avance,

 

Best regards to everybody

 

YK

 

 

 

.    

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,586 次查看
Daniel_Popa
NXP Employee
NXP Employee

Hello YK,

 

You can edit the .cproject file in order to achieve this..

 

Open the .cproject file for the project that has the paths already set, and then search for the section that includes the paths.

 

For example: 

 

<option id="com.freescale.starcore.cdt.toolchain.scc.preprocessor.includePaths.501642259" name="Include File Search Paths" superClass="com.freescale.starcore.cdt.toolchain.scc.preprocessor.includePaths" valueType="includePath">
<listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/ewl/EWL_Runtime/(RISC_Common)&quot;"/>
<listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/ewl/EWL_Runtime/(Runtime_Common)&quot;"/>
<listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/ewl/EWL_Runtime/Runtime_StarCore/msc8156&quot;"/>
<listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/ewl/EWL_Runtime/Runtime_StarCore/startup/msc8156&quot;"/>
<listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/ewl/EWL_Runtime/Runtime_StarCore/common&quot;"/>
<listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/src/rtlib/expanded&quot;"/>
<listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/ewl/EWL_C/src&quot;"/>
<listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/ewl/EWL_C++/src&quot;"/>
</option>

 

<option id="com.freescale.starcore.cdt.toolchain.scc.preprocessor.includePaths.501642259" name="Include File Search Paths" superClass="com.freescale.starcore.cdt.toolchain.scc.preprocessor.includePaths" valueType="includePath"><listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/ewl/EWL_Runtime/(RISC_Common)&quot;"/><listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/ewl/EWL_Runtime/(Runtime_Common)&quot;"/><listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/ewl/EWL_Runtime/Runtime_StarCore/msc8156&quot;"/><listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/ewl/EWL_Runtime/Runtime_StarCore/startup/msc8156&quot;"/><listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/ewl/EWL_Runtime/Runtime_StarCore/common&quot;"/><listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/src/rtlib/expanded&quot;"/><listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/ewl/EWL_C/src&quot;"/><listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/ewl/EWL_C++/src&quot;"/></option>

 

This example is for compiler include paths. 

Copy and paste this section into the .cproject for the new project. You must pay attention where you paste the section. It should be in the same region.

 

Hope it helps you.

Best regards,

Daniel

 

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,587 次查看
Daniel_Popa
NXP Employee
NXP Employee

Hello YK,

 

You can edit the .cproject file in order to achieve this..

 

Open the .cproject file for the project that has the paths already set, and then search for the section that includes the paths.

 

For example: 

 

<option id="com.freescale.starcore.cdt.toolchain.scc.preprocessor.includePaths.501642259" name="Include File Search Paths" superClass="com.freescale.starcore.cdt.toolchain.scc.preprocessor.includePaths" valueType="includePath">
<listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/ewl/EWL_Runtime/(RISC_Common)&quot;"/>
<listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/ewl/EWL_Runtime/(Runtime_Common)&quot;"/>
<listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/ewl/EWL_Runtime/Runtime_StarCore/msc8156&quot;"/>
<listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/ewl/EWL_Runtime/Runtime_StarCore/startup/msc8156&quot;"/>
<listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/ewl/EWL_Runtime/Runtime_StarCore/common&quot;"/>
<listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/src/rtlib/expanded&quot;"/>
<listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/ewl/EWL_C/src&quot;"/>
<listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/ewl/EWL_C++/src&quot;"/>
</option>

 

<option id="com.freescale.starcore.cdt.toolchain.scc.preprocessor.includePaths.501642259" name="Include File Search Paths" superClass="com.freescale.starcore.cdt.toolchain.scc.preprocessor.includePaths" valueType="includePath"><listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/ewl/EWL_Runtime/(RISC_Common)&quot;"/><listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/ewl/EWL_Runtime/(Runtime_Common)&quot;"/><listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/ewl/EWL_Runtime/Runtime_StarCore/msc8156&quot;"/><listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/ewl/EWL_Runtime/Runtime_StarCore/startup/msc8156&quot;"/><listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/ewl/EWL_Runtime/Runtime_StarCore/common&quot;"/><listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/src/rtlib/expanded&quot;"/><listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/ewl/EWL_C/src&quot;"/><listOptionValue builtIn="false" value="&quot;${SCToolsBaseDir}/StarCore_Support/compiler/ewl/EWL_C++/src&quot;"/></option>

 

This example is for compiler include paths. 

Copy and paste this section into the .cproject for the new project. You must pay attention where you paste the section. It should be in the same region.

 

Hope it helps you.

Best regards,

Daniel

 

0 项奖励
回复