Difference between revisions of "lazbuild"

From Lazarus wiki
Jump to navigationJump to search
 
Line 1: Line 1:
 
lazbuild is a command line utility to compile Lazarus projects and packages.
 
lazbuild is a command line utility to compile Lazarus projects and packages.
  
=SYNOPSIS=
+
==SYNOPSIS==
      lazbuild [options] filename...
+
lazbuild [options] filename...
  
 
=DESCRIPTION=
 
=DESCRIPTION=

Revision as of 17:29, 17 September 2006

lazbuild is a command line utility to compile Lazarus projects and packages.

SYNOPSIS

lazbuild [options] filename...

DESCRIPTION

      lazbuild  builds  a  Lazarus project or package. It compiles projects (.lpi) and packages (.lpk). It checks and automati-
      cally compiles required packages.

USAGE

      lazbuild is a command-line tool that builds Lazarus projects and packages. It checks  recursively  all  dependencies  and
      compiles needed packages first. It uses the Free Pascal compiler (fpc) to compile.

OPTIONS

      -h or --help
             write the list of options.
      -B or --build-all
             build  all  files  of  project/package. Normally the compiler only compiles the main source and all sources with a
             newer date.
      -r or --recursive
             apply build flags (-B) to dependencies too.
      -d or --skip-dependencies
             do not compile dependencies
      -v or --version
             show version and exit
      --primary-config-path=<path> or --pcp=<path>
             primary config directory, where Lazarus stores its config files. Default is $HOME/.lazarus
      --secondary-config-path=<path> or --scp=<path>
             secondary config directory, where Lazarus searches for config template files. Default is /etc/lazarus
      --operating-system=<operating-system> or --os=<operating-system>
             override the project operating system. e.g. win32 or linux.
      --widgetset=<widgetset> or --ws=<widgetset>
             override the project widgetset. e.g. gtk, gtk2, qt, win32, or carbon.
      --cpu=<cpu>
             override the project cpu. e.g. i386, x86_64, powerpc, powerpc_64 etc.
      --compiler=<ppcXXX>
             override the default compiler. e.g. ppc386, ppcx64, ppcppc etc.
      --language=
             Override language. For example --language=de. For possible values see files in the lazarus/languages directory.

.lpi and .lpk files

      The .lpi and .lpk files are best created and edited with the Lazarus IDE.  The files are in xml. There is  no  reason  to
      edit them manually, except for very rare cases like renaming hundreds of files.