lazarus/components/codetools/examples
mattias e02b35ad83 clean up
git-svn-id: trunk@17732 -
2008-12-08 18:08:12 +00:00
..
scanexamples codetools: creating FPC source defines with appended pathdelim 2008-12-08 15:01:18 +00:00
addclass.lpi
addclass.lpr
addeventmethod.lpi
addeventmethod.lpr
addmethod.lpi
addmethod.lpr
codecompletion.lpi codetools: implemented if declared(unicodestring) 2008-11-28 08:43:22 +00:00
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 codetools: extended examples to sue environment variable FPCTARGET 2008-12-07 22:09:57 +00:00
getcontext.lpr clean up 2008-12-08 18:08:12 +00:00
h2pastest.lpi
h2pastest.lpr codetools: clean up 2008-07-31 14:37:06 +00:00
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 codetools: added example for parsing ppu files 2008-06-27 10:27:06 +00:00
ppudependencies.lpr codetools: ppu: changed output of example to pascal 2008-07-05 22:37:52 +00:00
README.txt
reduceifdefs.lpi
reduceifdefs.lpr
removeemptymethods.lpi
removeemptymethods.lpr codetools: remove empty methods: implemented returning list of removed definitions 2008-04-26 19:18:57 +00:00
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