A user-configured target -- its package and its configuration.
This is the general structure from which LeanLib
, LeanExe
, etc. are derived.
- pkg : Package
The package the target belongs to.
- name : Lean.Name
The target's name.
- config : ConfigType kind self.pkg.name self.name
The target's user-defined configuration.
Instances For
Equations
- Lake.instHashableConfigTarget = { hash := fun (x : Lake.ConfigTarget k) => hash x.name }
Equations
- Lake.instBEqConfigTarget = { beq := fun (x1 x2 : Lake.ConfigTarget k) => x1.name == x2.name }
@[simp]
@[inline]
def
Lake.PConfigDecl.mkConfigTarget
(pkg : Package)
(self : PConfigDecl pkg.name)
:
ConfigTarget self.kind
Equations
- Lake.PConfigDecl.mkConfigTarget pkg self = { pkg := pkg, name := self.name, config := self.config' }
Instances For
@[inline]
Returns the package targets of the specified kind (as an Array
).
Equations
- One or more equations did not get rendered due to their size.
Instances For
@[inline]
def
Lake.Package.findConfigTarget?
(kind name : Lean.Name)
(self : Package)
:
Option (ConfigTarget kind)
Try to find a package target of the given name and kind.
Equations
- One or more equations did not get rendered due to their size.