lazarus/components/codetools/examples
mattias aefa18ebf4 codetools: config parser: += assignment
git-svn-id: trunk@26968 -
2010-08-01 22:38:52 +00:00
..
scanexamples IDE: indentation examples: multi line parameter list 2010-07-08 12:33:07 +00:00
testscompleteblock
addclass.lpi
addclass.lpr
addeventmethod.lpi codetools: added TCustomCodeTool.CodePosToCleanPos 2010-07-28 16:54:57 +00:00
addeventmethod.lpr
addmethod.lpi
addmethod.lpr
autoindent.lpi
autoindent.pas
codecompletion.lpi
codecompletion.lpr
completeabstractmethods.lpi
completeabstractmethods.lpr
completeblock.lpi
completeblock.pas
finddeclaration.lpi codetools: started init with new fpc cache 2010-07-18 00:50:13 +00:00
finddeclaration.lpr codetools: block completion: consider comments in front of insert pos 2010-07-19 12:37:02 +00:00
findunusedunits.lpi
findunusedunits.lpr
fixdefinitionorder.lpi
fixdefinitionorder.lpr
fixfilenames.lpi
fixfilenames.pas
fixh2pasdirectives.lpi
fixh2pasdirectives.lpr
fpcunitlinks.lpi
fpcunitlinks.pas
getcontext.lpi
getcontext.lpr
h2pastest.lpi
h2pastest.lpr
identifiercompletion.lpi codetools: started collecting FPC units from set 2010-07-19 15:59:57 +00:00
identifiercompletion.lpr codetools: started collecting FPC units from set 2010-07-19 15:59:57 +00:00
listinterfaceclasses.lpi
listinterfaceclasses.pas
methodjumping.lpi
methodjumping.pas
ppudependencies.lpi
ppudependencies.lpr
README.txt
reduceifdefs.lpi
reduceifdefs.lpr
removeemptymethods.lpi codetools: updated example 2010-07-01 09:49:24 +00:00
removeemptymethods.lpr codetools: updated example 2010-07-01 09:49:24 +00:00
replaceresourcedirectives.lpi
replaceresourcedirectives.lpr
retypepublishedvars.lpi codetools: added RetypeClassVariables 2010-03-25 21:16:32 +00:00
retypepublishedvars.lpr codetools: changed RetypeClassVariables parameter to tree 2010-03-26 12:24:47 +00:00
runcfgscript.lpi codetools: cfg parser: typecasts 2010-08-01 22:04:26 +00:00
runcfgscript.lpr codetools: config parser: += assignment 2010-08-01 22:38:52 +00:00
setincludepath.lpi
setincludepath.pas
testexpreval.lpi
testexpreval.pas
testfpcsrcunitrules.lpi codetools: fpc src rules: check case insensitive, when no target compiler use defaults 2010-07-26 13:13:10 +00:00
testfpcsrcunitrules.lpr codetools: check if ppu path exists 2010-07-29 10:03:17 +00:00

Examples for the CodeTools

Some basic examples run out of the box.
Some examples require the path of the FPC sources, which can be given via the
environment variable FPCDIR.
If you see an error message like this:

Scanning FPC sources may take a while ...
TDefinePool.CreateFPCSrcTemplate FPCSrcDir does not exist: ...

Then you must set the FPCDIR variable and start the example again. For example:
Under linux:
  export FPCDIR=/home/username/freepascal/fpc

For instance the FPC 2.2.0 source directory looks like this:
  compiler
  fv
  ide
  installer
  Makefile
  Makefile.fpc
  packages
  rtl
  tests
  utils

See here for more information:
http://wiki.lazarus.freepascal.org/Installing_Lazarus#FPC_Sources

The examples will scan the directories and store the result in a file named
'codetools.config'. So the next time you start any of the examples it does
not need to scan.

List of environment variables:
FPCDIR       = path to FPC source directory
PP           = path of the Free Pascal compiler. For example /usr/bin/ppc386.
LAZARUSDIR   = path of the lazarus sources
FPCTARGET    = FPC target OS like linux, win32, darwin
FPCTARGETCPU = FPC target cpu like i386, x86_64, arm