Arguments: application-name destination-directory input-files &rest rest&key allow-existing-directory application-files application-administration application-type copy-shared-libraries copy-file-function debug image-only pure-files purify runtime-bundle... build-lisp-image keyword arguments...
See delivery.htm for a complete description of the issues and functionality associated with this function. Note that this function is only available in Enterprise versions of Allegro CL.
This function writes a collection of files to destination-directory. In theory, all the files needed to deliver an application will be in that directory when generate-application completes (but you should test that carefully).
Note that this function calls build-lisp-image and like build-lisp-image, this function does not inherit from the currently running image (except for the defaults for certain arguments).
The required arguments:
"myapp"
). When coerced to a
pathname, this name should not have a directory or type. It is
used to create the name of the executable or .dll or
.so or .sl (whichever is appropriate for the
platform) and ancillary files.:lisp-files
. That argument is ignored even
if specified to
generate-application.The keyword arguments:
nil
and the
directory exists, then an error is signaled.application-administration: allows the specification of various
application administrative tasks. The form of the value of this keyword is
or
(:resource-command-line "...command line arguments...") [UNIX only]
([:shortcut | :batch-file] filename...command line arguments...) [Windows only]
An error is signaled if application-type is not |
:exe
,
:ole-in-proc-server
, or :dll
. If
:exe
is used, then application-name.exe is
created. If :ole-in-proc-server
or :dll
is used application-name.dll is created.copy-shared-libraries: if
true, then copy shared
objects/libraries that have been loaded with the
Common Lisp function load
by the time the image is dumped. The value of this
keyword argument can also be a lambda
expression (you cannot use the function special form,
the value must be a list),
accepting one argument, that is a predicate which determines
if the loaded shared objects
should be copied. The one argument is the pathname of the
shared object file (the
original pathname given to load). The predicate
should return t
if the shared object is to be copied, and
nil if it is to be ignored by
shared-library copying process. The predicate can also
return a relative pathname,
which will be used as the name of the copied shared library
relative to the destination-directory.
Note: shared libraries may be
specified without a directory path and
found using Operating System tools (such as
LD_LIBRARY_PATH or PATH), as described in
section
Load foreign code with cl:load
in the foreign-functions.htm
document. However, the shared library copying functionality
will not use Operating System
tools to find shared libraries. If a shared library is
specified without a directory path
and is not in the current directory, it will not be found.
For shared objects that are copied, the image that is created will load them from the destination directory upon startup. That is, in the image built by generate-application, the name of the shared libraries loaded on startup will be sys:[name], for each [name] copied by generate-application. |
runtime-bundle
: if specified t
a bundle file named files.bu will be placed in the application
directory. This file contains the modules allowable in a runtime
image. This means that such modules need not be loading into the
application image during the application build. This argument is new
in release 6.0.runtime
: the value defaults
to :standard
and must be either
:standard
, :dynamic
or :partners
.
See runtime.htm.:lisp-files
. The require input-files argument is used
to specify files to be loaded. :lisp-files
, even if
specified, is ignored.See delivery.htm for a complete description of this function.
The documentation is described in introduction.htm and the index is in index.htm.
Copyright (c) 1998-2000, Franz Inc. Berkeley, CA., USA. All rights reserved.
Created 2000.10.5.