lazarus/components/codetools/examples
mattias c9b89a44b3 codetools: debug TLSDirectiveKind
git-svn-id: trunk@41371 -
2013-05-23 12:01:53 +00:00
..
scanexamples codetools: debug TLSDirectiveKind 2013-05-23 12:01:53 +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:47:29 +00:00
addmethod.lpi codetools: aded FindProcDeclaration 2011-05-02 09:08:23 +00:00
addmethod.lpr
addmethodassign.lpi
addmethodassign.lpr
addwith.lpi
addwith.lpr
autoindent.lpi
autoindent.pas
changeparamlist.lpi
changeparamlist.lpr
codecompletion.lpi codetools: linkscanner: sorted inlines, started storing directives 2013-05-09 13:19:47 +00:00
codecompletion.lpr codetools: fixed complete proc from statement 2013-05-09 11:24:39 +00:00
completeabstractmethods.lpi
completeabstractmethods.lpr IDE: added refactoring tool show abstract methods 2007-12-07 23:16:21 +00:00
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 codetools: added example for unused units 2009-04-09 12:57:21 +00:00
fixdefinitionorder.lpi
fixdefinitionorder.lpr
fixfilenames.lpi
fixfilenames.pas codetools: examples: fixed title 2009-12-03 11:34:57 +00:00
fixh2pasdirectives.lpi
fixh2pasdirectives.lpr codetools: fixed examples from Mattias 2007-11-05 13:12:59 +00:00
getcontext.lpi
getcontext.lpr
getexpandedoperand.lpi
getexpandedoperand.pas codetools: GetExpandedOperand: typecast 2011-09-11 20:57:31 +00:00
h2pastest.lpi
h2pastest.lpr
identifiercompletion.lpi
identifiercompletion.lpr
listinterfaceclasses.lpi
listinterfaceclasses.pas
methodjumping.lpi
methodjumping.pas
parsefpcmsg.lpi
parsefpcmsg.pas
ppudependencies.lpi codetools: aded FindProcDeclaration 2011-05-02 09:08:23 +00:00
ppudependencies.lpr
proctomethod.lpi
proctomethod.lpr
README.txt
reduceifdefs.lpi
reduceifdefs.lpr
removeemptymethods.lpi
removeemptymethods.lpr
removewith.lpi
removewith.lpr
replaceresourcedirectives.lpi codetools: examples: fixed comment 2009-12-03 11:40:47 +00:00
replaceresourcedirectives.lpr
retypepublishedvars.lpi
retypepublishedvars.lpr
runcfgscript.lpi
runcfgscript.lpr
setincludepath.lpi
setincludepath.pas codetools: fixed examples 2008-09-01 20:08:28 +00:00
testexpreval.lpi
testexpreval.pas
testfpcsrcunitrules.lpi
testfpcsrcunitrules.lpr codetools: check if ppu path exists 2010-07-29 10:03:17 +00:00
TestNewXMLCfg.lpi
TestNewXMLCfg.lpr lazutils: removed old xml implementation, interface alias to new 2012-06-24 15:46:28 +00:00
testunitdirectives.lpi codetools: linkscanner: sorted inlines, started storing directives 2013-05-09 13:19:47 +00:00
testunitdirectives.lpr codetools: linkscanner: FindDirective 2013-05-09 17:31:14 +00:00
unitdicttest.lpi
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

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