2024-07-09 14:58:07 +02:00
|
|
|
|
# Configuration file for the build system dependencies
|
2020-06-07 05:29:53 +02:00
|
|
|
|
|
2022-11-12 00:23:08 +01:00
|
|
|
|
# Don't check for Rust/Cargo if you will be using Podman
|
|
|
|
|
ifneq ($(PODMAN_BUILD),1)
|
|
|
|
|
|
2025-02-18 23:23:42 +01:00
|
|
|
|
# don’t check for Rust and Cargo if building on a Nix system
|
|
|
|
|
ifneq ($(NIX_SHELL_BUILD),1)
|
|
|
|
|
|
2020-06-07 05:35:35 +02:00
|
|
|
|
ifeq ($(shell which rustup),)
|
|
|
|
|
$(error rustup not found, install from "https://rustup.rs/")
|
|
|
|
|
endif
|
|
|
|
|
|
2025-02-18 23:23:42 +01:00
|
|
|
|
endif
|
|
|
|
|
|
2023-12-14 15:32:54 +01:00
|
|
|
|
ifeq ($(shell which cbindgen),)
|
|
|
|
|
$(error cbindgen not found, install from crates.io or from your package manager)
|
|
|
|
|
endif
|
|
|
|
|
|
2020-06-07 05:35:35 +02:00
|
|
|
|
ifeq ($(shell which nasm),)
|
|
|
|
|
$(error nasm not found, install from your package manager)
|
|
|
|
|
endif
|
|
|
|
|
|
2024-01-12 21:04:29 +01:00
|
|
|
|
ifeq ($(shell which just),)
|
2024-09-06 11:40:41 +02:00
|
|
|
|
$(error 'just' not found, install from crates.io or from your package manager)
|
2024-01-12 21:04:29 +01:00
|
|
|
|
endif
|
|
|
|
|
|
2025-02-18 23:23:42 +01:00
|
|
|
|
ifneq ($(NIX_SHELL_BUILD),1)
|
2020-06-07 05:32:28 +02:00
|
|
|
|
CARGO_CONFIG_VERSION=0.1.1
|
2020-06-19 04:14:38 +02:00
|
|
|
|
ifeq ($(shell env -u RUSTUP_TOOLCHAIN cargo install --list | grep '^cargo-config v$(CARGO_CONFIG_VERSION):$$'),)
|
2020-06-07 05:32:28 +02:00
|
|
|
|
$(error cargo-config $(CARGO_CONFIG_VERSION) not found, run "cargo install --force --version $(CARGO_CONFIG_VERSION) cargo-config")
|
|
|
|
|
endif
|
2025-02-18 23:23:42 +01:00
|
|
|
|
endif
|
2022-11-12 00:23:08 +01:00
|
|
|
|
|
|
|
|
|
endif
|