blob: ab63d5dbbedb65df13da7dea7f51a1e7ea4fb846 [file]
/-
Copyright (c) 2025 Mac Malone. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mac Malone
-/
module
prelude
public import Lake.Config.Pattern
public import Lake.Config.MetaClasses
public import Init.Data.ToString.Name
meta import all Lake.Config.Meta
import Lake.Config.Meta
open Lean System
namespace Lake
/-- The declarative configuration for a single input file. -/
public configuration InputFileConfig (name : Name) where
/--
The path to the input file (relative to the package root).
Defaults to the name of the target.
-/
path : FilePath := name.toString (escape := false)
/--
Whether this is a text file.
If so, Lake normalize line endings for its trace.
This avoids rebuilds across platforms with different line endings.
Defaults to `false`.
-/
text : Bool := false
/-- The declarative configuration for an input directory. -/
public configuration InputDirConfig (name : Name) where
/--
The path to the input directory (relative to the package root).
Defaults to the name of the target.
-/
path : FilePath := name.toString (escape := false)
/--
Whether the directory is composed of text files.
If so, Lake normalize line endings for their traces.
This avoids rebuilds across platforms with different line endings.
Defaults to `false`.
-/
text : Bool := false
/-
Includes only the files from the directory
whose paths satisfy the pattern.
Defaults to including every file.
-/
filter : PathPat := .star