lazarus/components/codetools/examples
mattias 1f7adcb09a codetools: clean up
git-svn-id: trunk@41078 -
2013-05-08 18:46:44 +00:00
..
scanexamples undo 2012-08-21 07:48:52 +00:00
addclass.lpi
addclass.lpr
addeventmethod.lpi
addeventmethod.lpr
addfpprofcalls.lpi codetools: started example addfpprofcalls 2013-05-08 15:08:21 +00:00
addfpprofcalls.lpr codetools: clean up 2013-05-08 18:46:44 +00:00
addmethod.lpi
addmethod.lpr
addmethodassign.lpi
addmethodassign.lpr
addwith.lpi codetools: started add with block 2011-09-07 21:03:52 +00:00
addwith.lpr codetools: AddWithBlock 2011-09-09 22:32:47 +00:00
autoindent.lpi
autoindent.pas
changeparamlist.lpi codetools: added cache to FindReferences 2011-05-04 13:40:35 +00:00
changeparamlist.lpr codetools: added cache to FindReferences 2011-05-04 13:40:35 +00:00
codecompletion.lpi
codecompletion.lpr
completeabstractmethods.lpi
completeabstractmethods.lpr
completeblock.lpi
completeblock.pas
convert_glib3.sh
finddeclaration.lpi codetools: skipped code is now converted to special comments 2012-09-05 10:47:44 +00:00
finddeclaration.lpr codetools: skipped code is now converted to special comments 2012-09-05 10:47:44 +00:00
findunusedunits.lpi
findunusedunits.lpr
fixdefinitionorder.lpi
fixdefinitionorder.lpr
fixfilenames.lpi
fixfilenames.pas
fixh2pasdirectives.lpi
fixh2pasdirectives.lpr
getcontext.lpi
getcontext.lpr
getexpandedoperand.lpi codetools: started GetExpandedOperand 2011-09-10 18:21:13 +00:00
getexpandedoperand.pas codetools: GetExpandedOperand: typecast 2011-09-11 20:57:31 +00:00
h2pastest.lpi lcl: TUTF8Parser.HandleNewLine: fill buffer 2011-06-26 21:05:15 +00:00
h2pastest.lpr
identifiercompletion.lpi
identifiercompletion.lpr
listinterfaceclasses.lpi
listinterfaceclasses.pas codetools: GetSmartHint: show anonymous arrays 2012-04-30 14:13:02 +00:00
methodjumping.lpi
methodjumping.pas
parsefpcmsg.lpi codetools: example to parse fpc msg files 2012-02-05 08:58:57 +00:00
parsefpcmsg.pas codetools: fpc msg parser: check for type 2012-02-05 10:46:06 +00:00
ppudependencies.lpi
ppudependencies.lpr
proctomethod.lpi
proctomethod.lpr
README.txt
reduceifdefs.lpi
reduceifdefs.lpr
removeemptymethods.lpi
removeemptymethods.lpr
removewith.lpi codetools: added cache to FindReferences 2011-05-04 13:40:35 +00:00
removewith.lpr codetools: RemoveWithBlock: unindent 2011-05-07 23:10:20 +00:00
replaceresourcedirectives.lpi
replaceresourcedirectives.lpr
retypepublishedvars.lpi
retypepublishedvars.lpr
runcfgscript.lpi
runcfgscript.lpr
setincludepath.lpi
setincludepath.pas
testexpreval.lpi
testexpreval.pas
testfpcsrcunitrules.lpi
testfpcsrcunitrules.lpr
TestNewXMLCfg.lpi laz_xmlcfg: test old and new version 2011-07-09 08:23:14 +00:00
TestNewXMLCfg.lpr lazutils: removed old xml implementation, interface alias to new 2012-06-24 15:46:28 +00:00
unitdicttest.lpi codetools: example unit dictionary 2011-11-21 07:48:49 +00:00
unitdicttest.lpr codetools: example unit dictionary 2011-11-21 07:48:49 +00:00
usedbyunits.lpi codetools: added cache to FindReferences 2011-05-04 13:40:35 +00:00
usedbyunits.lpr codetools: added cache to FindReferences 2011-05-04 13:40:35 +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.4.2 source directory contains the following files:
  compiler
  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