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.keyName self.name
The target's user-defined configuration.
Instances For
@[instance_reducible]
Equations
- Lake.instHashableConfigTarget = { hash := fun (x : Lake.ConfigTarget k) => hash x.name }
@[instance_reducible]
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.keyName) :
ConfigTarget self.kind
Equations
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.