lazarus/components/codetools/examples
2017-12-18 17:03:02 +00:00
..
scanexamples codetools: examples: fixed fixfilenames 2017-11-03 23:04:28 +00:00
addclass.lpi
addclass.lpr
addeventmethod.lpi
addeventmethod.lpr
addfpprofcalls.lpi
addfpprofcalls.lpr CodeTools example AddFpprofCalls: show help if no filename is given. Fix memory leak. 2017-11-03 21:37:35 +00:00
addmethod.lpi
addmethod.lpr codetools: examples: fixed fixfilenames 2017-11-03 23:04:28 +00:00
addmethodassign.lpi
addmethodassign.lpr
addwith.lpi
addwith.lpr
autoindent.lpi
autoindent.pas
codecompletion.lpi
codecompletion.lpr codetools: fixed example 2017-11-03 22:16:07 +00:00
completeabstractmethods.lpi codetools: fixed example 2017-11-03 22:17:02 +00:00
completeabstractmethods.lpr codetools: fixed example 2017-11-03 22:17:02 +00:00
completeblock.lpi
completeblock.pas codetools: examples: fixed completeblock 2017-11-03 22:28:27 +00:00
convert_glib3.sh
finddeclaration.lpi
finddeclaration.lpr codetools: examples: fixed finddeclaration 2017-11-03 22:38:40 +00:00
findunusedunits.lpi
findunusedunits.lpr
findusedunitreferences.lpi
findusedunitreferences.lpr
fixdefinitionorder.lpi
fixdefinitionorder.lpr
fixfilenames.lpi
fixfilenames.pas
fixh2pasdirectives.lpi
fixh2pasdirectives.lpr codetools: examples: comments 2017-11-04 14:43:37 +00:00
getcontext.lpi
getcontext.lpr
getexpandedoperand.lpi
getexpandedoperand.pas codetools: examples: fixed getexpandedoperand 2017-11-04 07:53:54 +00:00
h2pastest.lpi Codetools example h2pastest: Remove a non-existent file from project. 2017-11-03 23:54:47 +00:00
h2pastest.lpr
identifiercompletion.lpi
identifiercompletion.lpr
initvariable.lpr
listinterfaceclasses.lpi
listinterfaceclasses.pas
methodjumping.lpi
methodjumping.pas codetools: examples fixed addmethod 2017-11-04 07:39:58 +00:00
parsefpcmsg.lpi
parsefpcmsg.pas
ppudependencies.lpi
ppudependencies.lpr
proctomethod.lpi
proctomethod.lpr
README.txt
reduceifdefs.lpi Codetools example ReduceIfdefs: Add a sample file to the project. 2017-11-03 23:54:52 +00:00
reduceifdefs.lpr
removeemptymethods.lpi
removeemptymethods.lpr
removewith.lpi
removewith.lpr
replaceresourcedirectives.lpi Codetools example ReplaceResourceDirectives: Add a sample file to the project. Fix comment. 2017-11-03 23:54:54 +00:00
replaceresourcedirectives.lpr Codetools example ReplaceResourceDirectives: Add a sample file to the project. Fix comment. 2017-11-03 23:54:54 +00:00
retypepublishedvars.lpi
retypepublishedvars.lpr
runcfgscript.lpi
runcfgscript.lpr
scanfpcerrormsgfiles.lpi
scanfpcerrormsgfiles.lpr
setincludepath.lpi
setincludepath.pas
sourcecloser.lpi
sourcecloser.lpr
testexpreval.lpi
testexpreval.pas
testfpcsrcunitrules.lpi
testfpcsrcunitrules.lpr codetools: renamed TFPCConfigFileStateList TPCConfigFileStateList, TFPCTargetConfigCache TPCTargetConfigCache 2017-12-18 17:03:02 +00:00
TestNewXMLCfg.lpi
TestNewXMLCfg.lpr
testunitdirectives.lpi
testunitdirectives.lpr
unitdicttest.lpi
unitdicttest.lpr codetools: renamed TFPCConfigFileStateList TPCConfigFileStateList, TFPCTargetConfigCache TPCTargetConfigCache 2017-12-18 17:03:02 +00:00
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