lazarus/components/codetools/examples
mattias a74bc652d2 codetools: added RetypeClassVariables
git-svn-id: trunk@24215 -
2010-03-25 21:16:32 +00:00
..
scanexamples codetools: added RetypeClassVariables 2010-03-25 21:16:32 +00:00
testscompleteblock
addclass.lpi IDE: when no lps file: open main unit 2009-12-03 10:59:32 +00:00
addclass.lpr codetools: fixed compilation of some examples 2009-12-03 10:28:17 +00:00
addeventmethod.lpi IDE: when no lps file: open main unit 2009-12-03 10:59:32 +00:00
addeventmethod.lpr codetools: fixed compilation of some examples 2009-12-03 10:28:17 +00:00
addmethod.lpi IDE: when no lps file: open main unit 2009-12-03 10:59:32 +00:00
addmethod.lpr codetools: fixed adding published method into implicit first published section 2009-12-03 11:29:47 +00:00
autoindent.lpi
autoindent.pas codetools: fixed compilation of some examples 2009-12-03 10:28:17 +00:00
codecompletion.lpi codetools: examples: fixed title 2009-12-03 11:34:57 +00:00
codecompletion.lpr
completeabstractmethods.lpi IDE: when no lps file: open main unit 2009-12-03 10:59:32 +00:00
completeabstractmethods.lpr
completeblock.lpi
completeblock.pas
finddeclaration.lpi
finddeclaration.lpr
findunusedunits.lpi
findunusedunits.lpr
fixdefinitionorder.lpi codetools: fixed compilation of examples 2009-12-03 11:10:47 +00:00
fixdefinitionorder.lpr
fixfilenames.lpi codetools: fixed compilation of examples 2009-12-03 11:10:47 +00:00
fixfilenames.pas codetools: examples: fixed title 2009-12-03 11:34:57 +00:00
fixh2pasdirectives.lpi codetools: fixed compilation of examples 2009-12-03 11:10:47 +00:00
fixh2pasdirectives.lpr
fpcunitlinks.lpi
fpcunitlinks.pas codetools: fixed compilation of examples 2009-12-03 11:10:47 +00:00
getcontext.lpi codetools: fixed compilation of examples 2009-12-03 11:10:47 +00:00
getcontext.lpr codetools: fixed compilation of examples 2009-12-03 11:10:47 +00:00
h2pastest.lpi codetools: fixed compilation of examples 2009-12-03 11:10:47 +00:00
h2pastest.lpr
identifiercompletion.lpi codetools: fixed compilation of examples 2009-12-03 11:10:47 +00:00
identifiercompletion.lpr
listinterfaceclasses.lpi codetools: fixed compilation of examples 2009-12-03 11:10:47 +00:00
listinterfaceclasses.pas
methodjumping.lpi codetools: fixed compilation of examples 2009-12-03 11:10:47 +00:00
methodjumping.pas codetools: added example file for methodjumping 2009-12-03 11:38:21 +00:00
ppudependencies.lpi codetools: fixed compilation of examples 2009-12-03 11:10:47 +00:00
ppudependencies.lpr codetools: fixed compilation of examples 2009-12-03 11:10:47 +00:00
README.txt
reduceifdefs.lpi codetools: fixed compilation of examples 2009-12-03 11:10:47 +00:00
reduceifdefs.lpr
removeemptymethods.lpi codetools: fixed compilation of examples 2009-12-03 11:10:47 +00:00
removeemptymethods.lpr codetools: fixed compilation of examples 2009-12-03 11:10:47 +00:00
replaceresourcedirectives.lpi codetools: examples: fixed comment 2009-12-03 11:40:47 +00:00
replaceresourcedirectives.lpr
retypepublishedvars.lpi codetools: added RetypeClassVariables 2010-03-25 21:16:32 +00:00
retypepublishedvars.lpr codetools: added RetypeClassVariables 2010-03-25 21:16:32 +00:00
setincludepath.lpi codetools: fixed compilation of examples 2009-12-03 11:10:47 +00:00
setincludepath.pas
testexpreval.lpi
testexpreval.pas codetools: examples: fixed comment 2009-12-03 11:40:47 +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