This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to include a list of include paths in project

Guru 15580 points

My project uses EDMA3 which requires painfully including several "deep" directories. Is there a way to create an include file that defines the multiple paths that need to be included for the compiler so that I don't have to re-enter these for every project?

 Here are the paths:

C:\Program Files (x86)\TI\edma3_lld_01_11_01_04\packages

C:\Program Files (x86)\TI\edma3_lld_01_11_01_04\packages\ti\sdo\edma3\rm

C:\Program Files (x86)\TI\edma3_lld_01_11_01_04\packages\ti\sdo\edma3\rm\sample

C:\Program Files (x86)\TI\edma3_lld_01_11_01_04\packages\ti\sdo\edma3\drv

C:\Program Files (x86)\TI\edma3_lld_01_11_01_04\packages\ti\sdo\edma3\drv\sample

Thx

MikeH

 

 

 

  • Yes. You can create a text file that has additional compiler options and pass that to the compiler. People use this for the exact scenario that you mentioned - easily sharing common options across multiple projects.

     

    You can have a file with a list of -i options:

    -i"C:\Program Files (x86)\TI\edma3_lld_01_11_01_04\packages"
    -i"C:\Program Files (x86)\TI\edma3_lld_01_11_01_04\packages\ti\sdo\edma3\rm"

    <etc>

    To specify the file to pass in, go to the Build Properties of the project and under C/C++ Build->Tool Settings tab, select 'Command Files' under the '<ISA> Compiler'.

    Thanks

    ki

  • Ki,

    Thanks! Works great.....as long as you remember to include the " " around the path name.........:)

    Mike