scenic_driver_renderling/mix.exs
Renovate Bot 9956765c29
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build encountered an error
chore(deps): update dependency ex_doc to ~> 0.34
2024-05-31 01:23:23 +12:00

79 lines
2.1 KiB
Elixir

defmodule Scenic.Driver.Renderling.MixProject do
use Mix.Project
@version "0.1.0"
@description """
A Scenic driver which uses Rust's renderling crate to perform GPU-based rendering.
"""
def project do
[
app: :scenic_driver_renderling,
version: @version,
elixir: "~> 1.16",
start_permanent: Mix.env() == :prod,
package: package(),
description: @description,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
aliases: aliases(),
docs: [
main: "readme",
extras: ["README.md"]
]
]
end
def package do
[
maintainers: ["James Harton <james@harton.nz>"],
licenses: ["HL3-FULL"],
links: %{
"Source" => "https://harton.dev/james/scenic_driver_renderling",
"GitHub" => "https://github.com/jimsynz/scenic_driver_renderling",
"Changelog" => "https://docs.harton.nz/james/scenic_driver_renderling/changelog.html",
"Sponsor" => "https://github.com/sponsors/jimsynz"
}
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:nimble_options, ">= 0.0.0"},
{:rustler, "~> 0.32", runtime: false},
{:scenic, "~> 0.11"},
# Dev/text
{:credo, "~> 1.6", only: ~w[dev test]a, runtime: false},
{:dialyxir, "~> 1.4", only: ~w[dev test]a, runtime: false},
{:doctor, "~> 0.21", only: ~w[dev test]a, runtime: false},
{:ex_check, "~> 0.16", only: ~w[dev test]a, runtime: false},
{:ex_doc, "~> 0.34", only: ~w[dev test]a, runtime: false},
{:earmark, "~> 1.4", only: ~w[dev test]a, runtime: false},
{:git_ops, "~> 2.4", only: ~w[dev test]a, runtime: false}
]
end
defp elixirc_paths(env) when env in [:dev, :test], do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
def aliases do
[clean: ["clean", &clean_rustler_artifacts/1]]
end
def clean_rustler_artifacts(_) do
__DIR__
|> Path.join("priv/native/*")
|> Path.wildcard()
|> Enum.each(&File.rm!/1)
end
end