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,188件の閲覧回数
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,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 件の賞賛
返信
1 返信
1,588件の閲覧回数
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 件の賞賛
返信