lazarus/components/codetools/examples
mattias ddad9c8091 codetools: implemented objcclass
git-svn-id: trunk@21689 -
2009-09-13 21:31:32 +00:00
..
scanexamples codetools: indentation procedures 2009-05-25 11:35:26 +00:00
testscompleteblock codetools test: added test for try if finally 2009-08-23 12:57:23 +00:00
addclass.lpi
addclass.lpr
addeventmethod.lpi
addeventmethod.lpr
addmethod.lpi
addmethod.lpr
autoindent.lpi codetools: added debugging output for indentation parser 2009-05-25 12:22:11 +00:00
autoindent.pas codetools: indentations: parsing source behind 2009-05-30 16:07:41 +00:00
codecompletion.lpi
codecompletion.lpr
completeabstractmethods.lpi
completeabstractmethods.lpr
completeblock.lpi codetools: completeblock: fixed closing nested if else 2009-06-05 11:38:03 +00:00
completeblock.pas codetools: completeblock test result 2009-08-19 21:49:25 +00:00
finddeclaration.lpi codetools: find declaration of selfunit.identifier 2009-05-04 10:10:07 +00:00
finddeclaration.lpr codetools: find declaration of selfunit.identifier 2009-05-04 10:10:07 +00:00
findunusedunits.lpi
findunusedunits.lpr
fixdefinitionorder.lpi
fixdefinitionorder.lpr
fixfilenames.lpi
fixfilenames.pas
fixh2pasdirectives.lpi
fixh2pasdirectives.lpr
fpcunitlinks.lpi codetools: started tool to explore fpc sources 2009-06-05 12:49:01 +00:00
fpcunitlinks.pas codetools: started tool to explore fpc sources 2009-06-05 12:49:01 +00:00
getcontext.lpi
getcontext.lpr
h2pastest.lpi
h2pastest.lpr
identifiercompletion.lpi
identifiercompletion.lpr
listinterfaceclasses.lpi
listinterfaceclasses.pas codetools: implemented objcclass 2009-09-13 21:31:32 +00:00
methodjumping.lpi
methodjumping.pas
ppudependencies.lpi
ppudependencies.lpr
README.txt small updates 2009-07-28 15:14:49 +00:00
reduceifdefs.lpi
reduceifdefs.lpr
removeemptymethods.lpi
removeemptymethods.lpr
replaceresourcedirectives.lpi
replaceresourcedirectives.lpr
setincludepath.lpi
setincludepath.pas

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