added codetools config example

git-svn-id: trunk@8615 -
This commit is contained in:
mattias 2006-01-25 12:16:04 +00:00
parent 60b17ba91f
commit 2fd1b15468

View File

@ -22,6 +22,21 @@
Abstract:
This unit helps to setup and configure the codetools.
Example:
Options:=TCodeToolsOptions.Create;
Options.LoadFromFile('config.xml');
Options.FPCPath:='/usr/bin/ppc386';
Options.FPCSrcDir:='/home/mattias/freepascal/fpc';
Options.LazarusSrcDir:='/home/mattias/pascal/wichtig/lazarus';
Options.ProjectDir:='/home/mattias/pascal/amat/codetools/scanexamples/';
Options.TestPascalFile:=Options.ProjectDir+'empty.pas';
CodeToolBoss.Init(Options);
Options.SaveToFile('config.xml');
Options.Free;
.. use CodeToolBoss ..
}
unit CodeToolsConfig;