lazarus/components/codetools/examples
mattias 0258b583f2 codetools: fixed examples
git-svn-id: trunk@16360 -
2008-09-01 20:08:28 +00:00
..
scanexamples
addclass.lpi
addclass.lpr
addeventmethod.lpi
addeventmethod.lpr
addmethod.lpi
addmethod.lpr
codecompletion.lpi
codecompletion.lpr
completeabstractmethods.lpi
completeabstractmethods.lpr
finddeclaration.lpi
finddeclaration.lpr
fixdefinitionorder.lpi
fixdefinitionorder.lpr
fixfilenames.lpi codetools: fixed examples 2008-09-01 20:08:28 +00:00
fixfilenames.pas codetools: fixed examples 2008-09-01 20:08:28 +00:00
fixh2pasdirectives.lpi
fixh2pasdirectives.lpr
getcontext.lpi
getcontext.lpr codetools: implemented FindCodeContext for procedures 2006-05-17 00:56:04 +00:00
h2pastest.lpi
h2pastest.lpr
identifiercompletion.lpi
identifiercompletion.lpr
listinterfaceclasses.lpi codetools: fixed examples 2008-09-01 20:08:28 +00:00
listinterfaceclasses.pas codetools: fixed examples 2008-09-01 20:08:28 +00:00
methodjumping.lpi codetools: fixed examples 2008-09-01 20:08:28 +00:00
methodjumping.pas codetools: fixed examples 2008-09-01 20:08:28 +00:00
ppudependencies.lpi
ppudependencies.lpr
README.txt
reduceifdefs.lpi
reduceifdefs.lpr
removeemptymethods.lpi
removeemptymethods.lpr
replaceresourcedirectives.lpi
replaceresourcedirectives.lpr
setincludepath.lpi codetools: fixed examples 2008-09-01 20:08:28 +00:00
setincludepath.pas codetools: fixed examples 2008-09-01 20:08:28 +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