lazarus/components/codetools/examples
mattias a5e3b332c6 codetools: examples: utf8
git-svn-id: trunk@41810 -
2013-06-23 10:33:16 +00:00
..
scanexamples
addclass.lpi
addclass.lpr
addeventmethod.lpi
addeventmethod.lpr
addfpprofcalls.lpi
addfpprofcalls.lpr
addmethod.lpi
addmethod.lpr
addmethodassign.lpi
addmethodassign.lpr
addwith.lpi
addwith.lpr
autoindent.lpi
autoindent.pas
changeparamlist.lpi
changeparamlist.lpr
codecompletion.lpi
codecompletion.lpr
completeabstractmethods.lpi
completeabstractmethods.lpr
completeblock.lpi
completeblock.pas
convert_glib3.sh
finddeclaration.lpi
finddeclaration.lpr
findunusedunits.lpi
findunusedunits.lpr
fixdefinitionorder.lpi
fixdefinitionorder.lpr
fixfilenames.lpi
fixfilenames.pas
fixh2pasdirectives.lpi
fixh2pasdirectives.lpr
getcontext.lpi
getcontext.lpr
getexpandedoperand.lpi
getexpandedoperand.pas
h2pastest.lpi
h2pastest.lpr
identifiercompletion.lpi
identifiercompletion.lpr
listinterfaceclasses.lpi
listinterfaceclasses.pas
methodjumping.lpi
methodjumping.pas
parsefpcmsg.lpi
parsefpcmsg.pas
ppudependencies.lpi
ppudependencies.lpr codetools: examples: utf8 2013-06-23 10:33:16 +00:00
proctomethod.lpi
proctomethod.lpr
README.txt
reduceifdefs.lpi
reduceifdefs.lpr
removeemptymethods.lpi
removeemptymethods.lpr
removewith.lpi
removewith.lpr
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
TestNewXMLCfg.lpr
testunitdirectives.lpi
testunitdirectives.lpr
unitdicttest.lpi
unitdicttest.lpr
usedbyunits.lpi
usedbyunits.lpr

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