EHLS.Project (Elixir HLS v0.1.0)

Copy Markdown View Source

The application the Mix tasks build: its name, directory, start module, settings (config :elixir_hls) and target (EHLS.Target).

config :elixir_hls,
  target: :tang25k,       # the board (else the only target among the dependencies)
  start: MyApp,           # the module whose start/0 runs on the board (else the app's name camelized)
  gowin: [place: 2],      # the target's own options (here Gowin's placement)
  blocks: [:atomvm_tang25k_i2s]   # the block packages (else every dependency that is one)

The machine's paths (GOWIN_HOME, CIRCT_BIN, ...) are not here but in EHLS.Machine.

Summary

Functions

The directory of a dependency, or nil.

The directories of the dependencies, name => directory.

The current Mix project, its dependencies and itself compiled and its config loaded.

Types

t()

@type t() :: %EHLS.Project{
  app: atom(),
  build: Path.t(),
  config: keyword(),
  root: Path.t(),
  start: module(),
  target: module()
}

Functions

dep_path(name)

The directory of a dependency, or nil.

deps()

The directories of the dependencies, name => directory.

load!()

The current Mix project, its dependencies and itself compiled and its config loaded.