rules_blender
Overview
Bazel rules for Krita
Setup
bazel_dep(name = "rules_krita", version = "{version}")
rules_krita
Rules
krita_export
load("@rules_krita//krita:defs.bzl", "krita_export")
krita_export(name, data, out, args, kra_file)
A Bazel rule for exporting images from a .kra file.
ATTRIBUTES
| Name | Description | Type | Mandatory | Default |
|---|---|---|---|---|
| name | A unique name for this target. | Name | required | |
| data | Additional files associated with the .kra file. | List of labels | optional | [] |
| out | The file to export. | Label; nonconfigurable | optional | None |
| args | Any additional arguments to provide tot he export script | Dictionary: String -> String | optional | {} |
| kra_file | The .kra file to export from. | Label | required |
krita_toolchain
load("@rules_krita//krita:defs.bzl", "krita_toolchain")
krita_toolchain(name, krita, kritarunner, pykrita)
Define a toolchain for Krita rules.
ATTRIBUTES
| Name | Description | Type | Mandatory | Default |
|---|---|---|---|---|
| name | A unique name for this target. | Name | required | |
| krita | The path to a krita binary. | Label | required | |
| kritarunner | The path to a kritarunner binary. | Label | required | |
| pykrita | The label to a Krita Python API target. | Label | required |
Krita bzlmod extensions
Module Extensions
krita
krita = use_extension("@rules_krita//krita:extensions.bzl", "krita")
krita.toolchain(name, urls, version)
Bzlmod extensions for Krita
TAG CLASSES
toolchain
An extension for defining a krita_toolchain from a download archive.
Attributes
| Name | Description | Type | Mandatory | Default |
|---|---|---|---|---|
| name | The name of the toolchain. | Name | required | |
| urls | Url templates to use for downloading Krita. | List of strings | optional | ["https://download.kde.org/Attic/krita/{semver}/{artifact}"] |
| version | The version of Krita to download. | String | optional | "5.2.6" |