lazarus/components/codetools/examples
mattias b64cc46583 codetools: ppu parser: added module options
git-svn-id: trunk@29497 -
2011-02-12 23:05:01 +00:00
..
scanexamples codetools: clean up 2011-02-07 22:55:58 +00:00
testscompleteblock
addclass.lpi
addclass.lpr
addeventmethod.lpi codetools: added TCustomCodeTool.CodePosToCleanPos 2010-07-28 16:54:57 +00:00
addeventmethod.lpr
addmethod.lpi
addmethod.lpr
autoindent.lpi
autoindent.pas
codecompletion.lpi
codecompletion.lpr
completeabstractmethods.lpi
completeabstractmethods.lpr
completeblock.lpi code tools examples: fixed compilation after r26515 #c0682eae27. 2010-10-22 12:44:54 +00:00
completeblock.pas code tools examples: fixed compilation after r26515 #c0682eae27. 2010-10-22 12:44:54 +00:00
finddeclaration.lpi
finddeclaration.lpr codetools: identifier completion: fixed search in type of var/const 2011-02-07 22:55:37 +00:00
findunusedunits.lpi
findunusedunits.lpr
fixdefinitionorder.lpi
fixdefinitionorder.lpr
fixfilenames.lpi
fixfilenames.pas
fixh2pasdirectives.lpi
fixh2pasdirectives.lpr
fpcunitlinks.lpi
fpcunitlinks.pas
getcontext.lpi
getcontext.lpr
h2pastest.lpi
h2pastest.lpr
identifiercompletion.lpi
identifiercompletion.lpr codetools: identifier completion: fixed search in type of var/const 2011-02-07 22:55:37 +00:00
listinterfaceclasses.lpi
listinterfaceclasses.pas
methodjumping.lpi codetools: fixed TCodeToolsOptions.LoadFromFile to not expand empty settings, bug #18364 2011-01-27 18:59:48 +00:00
methodjumping.pas codetools: fixed TCodeToolsOptions.LoadFromFile to not expand empty settings, bug #18364 2011-01-27 18:59:48 +00:00
ppudependencies.lpi codetools: ppu parser: added module options 2011-02-12 23:05:01 +00:00
ppudependencies.lpr
README.txt
reduceifdefs.lpi
reduceifdefs.lpr
removeemptymethods.lpi codetools: RemoveUnitFromUsesSection: when removing the last unit remove empty lines in front too, bug #18055 2010-11-26 12:23:25 +00:00
removeemptymethods.lpr
replaceresourcedirectives.lpi
replaceresourcedirectives.lpr
retypepublishedvars.lpi
retypepublishedvars.lpr
runcfgscript.lpi codetools: configscript: comparing string and number 2010-11-25 16:20:01 +00:00
runcfgscript.lpr codetools: configscript: comparing string and number 2010-11-25 16:20:01 +00:00
setincludepath.lpi
setincludepath.pas
testexpreval.lpi
testexpreval.pas
testfpcsrcunitrules.lpi codetools: fpc src rules: check case insensitive, when no target compiler use defaults 2010-07-26 13:13:10 +00:00
testfpcsrcunitrules.lpr codetools: check if ppu path exists 2010-07-29 10:03:17 +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