Hi,
From "Settings > Build Settings > Compilers" click on the New button and create a new compiler.
The new compiler by default will clone the g++ settings.
Step 1: Update the tools:
First, you need to replace the GNU tools with your tools to do this:
Select your new compiler from the tree to the left and go to "Tools"
and start modifying the tools, for example (If I understand you correctly):
Code: Select all
Compiler Name: "C:\CCStudio_v3.3\C5400\cgtools\bin\cl500"
C Compiler Name: "C:\CCStudio_v3.3\C5400\cgtools\bin\cl500"
Linker Name: "C:\CCStudio_v3.3\C5400\cgtools\bin\cl500" -z
Step 2: Update the file types recognized by your compiler
codelite compile files according to the patterns set under "You Compiler > File Types"
For example, to compile a "C" file, codelite will use this pattern (which you can change to fit your needs)
Code: Select all
$(C_CompilerName) $(SourceSwitch) "$(FileFullPath)" $(C_CmpOptions) $(ObjectSwitch)$(IntermediateDirectory)/$(ObjectName)$(ObjectSuffix) $(IncludePath)
The macros:
$(C_CompilerName) is taken from the Tools page "C Compiler Name" (in your case, it will be replaced with "C:\CCStudio_v3.3\C5400\cgtools\bin\cl500")
$(CompilerName) is taken from the Tools Page "Compiler Name"
$(IncludePath) is taken from the "Project settings -> Compiler -> Include Paths" (this field should contain list of include paths separated by semicolon, each search path will be prended with $(IncludeSwitch) ).
So basically you need to set the include path like this in the project settings:
which will be convereted by codelite to
Code: Select all
$(IncludeSwitch)/some/path $(IncludeSwitch)/some/other/path
Step 3: Updating the switches
$(SourceSwitch), $(ObjectSwitch) and $(ObjectSuffix) from the pattern above are taken from:
"You Compiler > Switches"
Here you can modify all the default "switches".
For example, in your case, the "Include" switch should be changed from "-I" set to "-i"
and Preprocessor switch should be changed from "-D" to "-d"
Once you completed settings your compiler, simply select it to be the compiler for your project.
To do this: Right click on your project settings => Settings => General
and in the "Compiler" drop down control select you newly created compiler.
This should be enough to let you start compiling.
If you want codelite to also color the errors / warning and make them clickable, you will need to provide some errors / warnings example so I can help you convert them into a regular expressions that codelite understands
Eran