lazarus/components/codetools/examples
2010-07-24 19:33:10 +00:00
..
scanexamples IDE: indentation examples: multi line parameter list 2010-07-08 12:33:07 +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 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 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: 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 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: 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 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: changed RetypeClassVariables parameter to tree 2010-03-26 12:24:47 +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
testfpcsrcunitrules.lpi codetools: started test tool for fpc src rules 2010-07-24 16:07:31 +00:00
testfpcsrcunitrules.lpr codetools: check fpc paths: show ppu files without source 2010-07-24 19:33:10 +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