Difference between revisions of "lazbuild/es"

From Lazarus wiki
Jump to navigationJump to search
Line 31: Line 31:
  
  
 +
==============================================================================================================
  
  
  
  
 +
;--verbose-pkgsearch: Write what package files are searched and found. Since 1.5.
  
 +
;--add-package: add package(s) to list of installed packages in the IDE (combine with --build-ide to rebuild IDE). Since 1.1.
 +
Example: --build-ide= --add-package projecttemplates lazopenglcontext /path/to/your/pkg/name.lpk
  
 +
;--add-package-link=<.lpk file> : Register the Lazarus package files (.lpk) and exit. Do not build. Since 1.7.
  
 +
;--create-makefile: Instead of compile package, create a simple Makefile. No support for build modes. Does not compile required packages.
  
 +
;&nbsp;&nbsp;&nbsp;--primary-config-path=<ruta> o --pcp=<ruta>: directorio primario de configuración, donde Lazarus guarda sus archivos de configuración. Por defecto es $HOME/.lazarus
  
;&nbsp;&nbsp;&nbsp;-v o --version: muestra la versión y termina.
+
;&nbsp;&nbsp;&nbsp;--secondary-config-path=<ruta> o --scp=<ruta>: directorio secundario de configuración, donde Lazarus busca archivos de plantillas de configuración. Por defecto es /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.
  
;-q or --quiet: be less verbose; can be given multiple times. Since 1.5: Passing quiet two times, will pass -vw-n-h-i-l-d-u-t-p-c-x- to the compiler.
+
;--build-mode=<project/ide build mode> or --bm=<project/ide build mode>: override the project build mode. With --build-ide= it selects the IDE build profile. (With 0.9.30 and below you can not select the IDE build profile)
  
;--verbose: be more verbose; can be given multiple times
+
;--compiler=<ppcXXX>: override the default compiler. e.g. ppc386, ppcx64, ppcppc etc.
  
 +
;&nbsp;&nbsp;&nbsp;--language=<idioma>: sobreescribe el idioma. Por ejemplo --language=es. Para los posibles valores ver archivos en directorio lazarus/languages.
  
---------------------------------------------
 
  
 +
;--lazarusdir=<Lazarus directory>: directory, to be used as a basedirectory
  
 +
;--max-process-count=<count>: Maximum number of threads for compiling in parallel. Default is 0, which guesses the number of cores in the system. Since 1.5.
  
 +
;--no-write-project: Do not write updated project info file (.lpi) after build. If not specified, build number will be incremented if configured. Since 1.7.
  
;&nbsp;&nbsp;&nbsp;--primary-config-path=<ruta> o --pcp=<ruta>: directorio primario de configuración, donde Lazarus guarda sus archivos de configuración. Por defecto es $HOME/.lazarus
+
======================================================================================================================
  
  
Line 67: Line 79:
  
  
 +
;&nbsp;&nbsp;&nbsp;-v o --version: muestra la versión y termina.
  
;&nbsp;&nbsp;&nbsp;--secondary-config-path=<ruta> o --scp=<ruta>: directorio secundario de configuración, donde Lazarus busca archivos de plantillas de configuración. Por defecto es /etc/lazarus.
 
  
;&nbsp;&nbsp;&nbsp;--operating-system=<Sistema Operativo> o --os=<Sistema Operativo>: sobreescribe el Sistema Operativo del proyecto v.b. FreeBSD, win32 o linux.
 
  
;&nbsp;&nbsp;&nbsp;--widgetset=<interfaz> o --ws=<interfaz>: sobreescribe la interfaz LCL del proyecto, v.b. gtk, gtk2, qt, win32, o carbon.
+
-------------------------------------
  
;&nbsp;&nbsp;&nbsp;--cpu=<cpu>: override the project cpu. e.g. i386, x86_64, powerpc, powerpc_64 etc.
 
  
;&nbsp;&nbsp;&nbsp;--compiler=<ppcXXX>: sobreescribe el compilador a utilizar. v.b. ppc386, ppcx64, ppcppc, etc.
+
;-q or --quiet: be less verbose; can be given multiple times. Since 1.5: Passing quiet two times, will pass -vw-n-h-i-l-d-u-t-p-c-x- to the compiler.
  
;&nbsp;&nbsp;&nbsp;--language=<idioma>: sobreescribe el idioma. Por ejemplo --language=es. Para los posibles valores ver archivos en directorio lazarus/languages.
+
;--verbose: be more verbose; can be given multiple times
  
==Archivos .lpi y .lpk ==
 
  
&nbsp;&nbsp;&nbsp;Los archivos .lpi y .lpk son creados y editados por el IDE de Lazarus. Los archivo están en formato  XML. No hay razón para editarlos manualmente, a no ser en el raro caso de tener que renombrar muchísimos archivos.
+
---------------------------------------------
  
==============================================================================================================
 
  
  
 +
;&nbsp;&nbsp;&nbsp;--operating-system=<Sistema Operativo> o --os=<Sistema Operativo>: sobreescribe el Sistema Operativo del proyecto v.b. FreeBSD, win32 o linux.
  
 +
;&nbsp;&nbsp;&nbsp;--widgetset=<interfaz> o --ws=<interfaz>: sobreescribe la interfaz LCL del proyecto, v.b. gtk, gtk2, qt, win32, o carbon.
  
;--verbose-pkgsearch: Write what package files are searched and found. Since 1.5.
+
;&nbsp;&nbsp;&nbsp;--cpu=<cpu>: override the project cpu. e.g. i386, x86_64, powerpc, powerpc_64 etc.
  
;--add-package: add package(s) to list of installed packages in the IDE (combine with --build-ide to rebuild IDE). Since 1.1.
+
;&nbsp;&nbsp;&nbsp;--compiler=<ppcXXX>: sobreescribe el compilador a utilizar. v.b. ppc386, ppcx64, ppcppc, etc.
Example: --build-ide= --add-package projecttemplates lazopenglcontext /path/to/your/pkg/name.lpk
 
 
 
;--add-package-link=<.lpk file> : Register the Lazarus package files (.lpk) and exit. Do not build. Since 1.7.
 
  
;--create-makefile: Instead of compile package, create a simple Makefile. No support for build modes. Does not compile required packages.
 
  
;--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
+
== Archivos .lpi y .lpk ==
  
;--operating-system=<operating-system> or --os=<operating-system>: override the project operating system. e.g. win32 or linux.
+
&nbsp;&nbsp;&nbsp;Los archivos .lpi y .lpk son creados y editados por el IDE de Lazarus. Los archivo están en formato  XML. No hay razón para editarlos manualmente, a no ser en el raro caso de tener que renombrar muchísimos archivos.
 
 
;--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.
 
 
 
;--build-mode=<project/ide build mode> or --bm=<project/ide build mode>: override the project build mode. With --build-ide= it selects the IDE build profile. (With 0.9.30 and below you can not select the IDE build profile)
 
 
 
;--compiler=<ppcXXX>: override the default compiler. e.g. ppc386, ppcx64, ppcppc etc.
 
 
 
;--language=<language>: override language. For example --language=de. For possible values see files in the lazarus/languages directory.
 
 
 
;--lazarusdir=<Lazarus directory>: directory, to be used as a basedirectory
 
 
 
;--max-process-count=<count>: Maximum number of threads for compiling in parallel. Default is 0, which guesses the number of cores in the system. Since 1.5.
 
 
 
;--no-write-project: Do not write updated project info file (.lpi) after build. If not specified, build number will be incremented if configured. Since 1.7.
 

Revision as of 12:59, 1 April 2020

Deutsch (de) English (en) español (es) français (fr)

   lazbuild es una utilidad de línea de comando para compilar proyectos Lazarus y paquetes, así como el mismo IDE. Cuando contruyes por tu cuenta Lazarus entonces lazbuild lo puedes encontrar en el directorio fuente junto con el ejecutable de lazarus

Sinopsis

 lazbuild [opciones] nombre_de_fichero nombre_de_fichero ...

Descripción

   lazbuild construye proyectos de Lazarus (.lpi) y/o paquetes (.lpk). Comprueba los paquetes necesarios y los compila automáticamente. Además compila el IDE e instala cualquier paquete compilado.

Utilización

   lazbuild es una utilidad de línea de comando que construye proyectos Lazarus y paquetes. Comprueba de forma recursiva todas las dependencias y compila primero los paquetes necesarios. Utiliza el compilador Free Pascal (fpc) para ello.

Opciones

   -h o --help
muestra la lista de opciones.
   -B o --build-all
construye todos los archivos del proyecto o paquete . Normalmente únicamente se compilan los fuentes principales y los fuentes modificados con fecha más reciente que su archivo objeto correspondiente.
   -r o --recursive
aplica el modificador -B a los archivos de los paquetes dependientes.
   -d o --skip-dependencies
no compilará los archivos dependientes.
   --build-ide=<opciones>
Compila el IDE (i.e. el ejecutable de Lazarus). La lista de paquetes para instalar se lee desde el directorio de configuración. Las <opciones> se añaden a las otras opciones personalizadas del IDE, que pueden estar vacias. (con 0.9.30 e inferiores fueron reemplazadas las opciones personalizadas del perfil IDE). Desde al menos la versión 1.0.6 de Lazarus (revisión 38971) es posible pasar -dKeepInstalledPackages para construir el IDE con el listado de paquetes que se hayan seleccionado previamente - de manera análoga para hacer make useride, manejado cuando se utiliza --add-package. Build-ide utiliza el perfil seleccionado en el IDE, pudiendo utilizar otro perfil mediante --build-mode (ver más abajo).
  • Ejemplo para construir con tu perfil por defecto: --build-ide=
  • Ejemplo para construir con un perfil específico: --build-ide="Normal IDE"


==================================================================================================
--verbose-pkgsearch
Write what package files are searched and found. Since 1.5.
--add-package
add package(s) to list of installed packages in the IDE (combine with --build-ide to rebuild IDE). Since 1.1.

Example: --build-ide= --add-package projecttemplates lazopenglcontext /path/to/your/pkg/name.lpk

--add-package-link=<.lpk file>
Register the Lazarus package files (.lpk) and exit. Do not build. Since 1.7.
--create-makefile
Instead of compile package, create a simple Makefile. No support for build modes. Does not compile required packages.
   --primary-config-path=<ruta> o --pcp=<ruta>
directorio primario de configuración, donde Lazarus guarda sus archivos de configuración. Por defecto es $HOME/.lazarus
   --secondary-config-path=<ruta> o --scp=<ruta>
directorio secundario de configuración, donde Lazarus busca archivos de plantillas de configuración. Por defecto es /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.
--build-mode=<project/ide build mode> or --bm=<project/ide build mode>
override the project build mode. With --build-ide= it selects the IDE build profile. (With 0.9.30 and below you can not select the IDE build profile)
--compiler=<ppcXXX>
override the default compiler. e.g. ppc386, ppcx64, ppcppc etc.
   --language=<idioma>
sobreescribe el idioma. Por ejemplo --language=es. Para los posibles valores ver archivos en directorio lazarus/languages.


--lazarusdir=<Lazarus directory>
directory, to be used as a basedirectory
--max-process-count=<count>
Maximum number of threads for compiling in parallel. Default is 0, which guesses the number of cores in the system. Since 1.5.
--no-write-project
Do not write updated project info file (.lpi) after build. If not specified, build number will be incremented if configured. Since 1.7.
==========================================================================================================
   -v o --version
muestra la versión y termina.




-q or --quiet
be less verbose; can be given multiple times. Since 1.5: Passing quiet two times, will pass -vw-n-h-i-l-d-u-t-p-c-x- to the compiler.
--verbose
be more verbose; can be given multiple times




   --operating-system=<Sistema Operativo> o --os=<Sistema Operativo>
sobreescribe el Sistema Operativo del proyecto v.b. FreeBSD, win32 o linux.
   --widgetset=<interfaz> o --ws=<interfaz>
sobreescribe la interfaz LCL del proyecto, v.b. gtk, gtk2, qt, win32, o carbon.
   --cpu=<cpu>
override the project cpu. e.g. i386, x86_64, powerpc, powerpc_64 etc.
   --compiler=<ppcXXX>
sobreescribe el compilador a utilizar. v.b. ppc386, ppcx64, ppcppc, etc.


Archivos .lpi y .lpk

   Los archivos .lpi y .lpk son creados y editados por el IDE de Lazarus. Los archivo están en formato XML. No hay razón para editarlos manualmente, a no ser en el raro caso de tener que renombrar muchísimos archivos.