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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
2,216 Views
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

 

 

 

.    

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
1,615 Views
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

 

View solution in original post

0 Kudos
Reply
1 Reply
1,616 Views
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 Kudos
Reply