defsystem is used to define systems for use with the LispWorks system tools. A system is a collection of files and other systems that, together with rules expressing the interdependencies of those files and subsystems, make a complete program. The LispWorks system tools support the development and maintenance of large programs. Find a full description at Common Defsystem and ASDF.
A string or a symbol, not evaluated.
A list of keyword-value pairs.
A list of strings or lists.
The default package that files are compiled and loaded in. If not specified, this defaults to the value of
*package* at macroexpansion time.
Used to compute a default pathname in which to find files.
defsystem uses current-pathname to compute the pathname.
defsystem checks that all the files given as members actually exist.
The root pathname of a system is defined to be the
:default-host if it is given. Otherwise, it is taken to be the directory containing the defsystem file.
This is the default type of the members of the system. This may be
This is a string.
A declaration specifying default compilation qualities within the scope of compile-system. These settings override the current global setting. They can be overridden per member by the
:optimize option (for subsystems) or proclaim (in files). The
defsystem option accepts the same optimize qualities as proclaim and which are fully described in Compiler control. See below for examples.
members is a list defining the members of the system. Elements of the list may be a string name representing the name of the physical file or system referred to. Elements of the list may also be a symbol, which is interpreted as its symbol name.
The members of the system name must have unique names, as compared by
equalp. For example, if members contains
"foo" then there cannot be another member (either a file or a system) named
The type of this member. Allowed values are as for
:default-type. If not specified it defaults to the value of
:default-type given as an option.
nil then this member is not loaded unless its loading is specifically requested as a result of a dependency on another module
Only the source file for this member is ever loaded
The member is never compiled by
defsystem, objects are loaded in preference to source files
The member is only considered during planning if the feature expression is true.
A default package for the member.
Only allowed when the value for
:c-file. The value embedded-module is used to create a FLI embedded module named embedded-module instead of loading the object file. See
fli:install-embedded-module in the
LispWorks Foreign Language Interface User Guide and Reference Manual
for how to load the embedded module.
("mso97.tlb" :type :midl-type-library-file :com nil)
:all refers to all the members of the system. It provides a shorthand for specifying that a rule should apply to all the system's members. The keyword
:previous refers to all the members of the system that are before the member in the list of members. This makes it easy, for example, to specify that in order to compile a file in a system, all the members that come before it must be loaded.
There are more details about the rules in DEFSYSTEM rules.
LispWorks User Guide and Reference Manual - 20 Sep 2017