This repository has been archived by the owner on Feb 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.toml
64 lines (49 loc) · 1.38 KB
/
Makefile.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
[config]
default_to_workspace = false
#
# Extension tasks
#
[tasks.cargo]
command = "cargo"
args = [ "build", "--bin", "stry", "--release", "${@}" ]
[tasks.cross]
condition = { env_set = [ "BUILD_TARGET" ] }
install_crate = { crate_name = "cross", binary = "cross", test_arg = "--help" }
command = "cross"
args = [ "build", "--bin", "stry", "--release", "--target", "${BUILD_TARGET}", "${@}" ]
#
# Utility Tasks
#
[tasks.bom]
command = "cargo"
args = [ "bom", ">", "bom.txt" ]
#
# Build Tasks
#
[tasks.build-aarch64]
description = "Build for AArch64 targets (Samsung S7)"
extend = "cross"
env = { BUILD_TARGET = "aarch64-unknown-linux-musl" }
[tasks.build-armv7]
description = "Build for ARMv7 targets (Raspberry Pi 3 B+)"
extend = "cross"
env = { BUILD_TARGET = "armv7-unknown-linux-musleabihf" }
[tasks.build-linux]
linux_alias = "build-linux-cargo"
alias = "build-linux-cross"
[tasks.build-linux-cargo]
condition = { platforms = [ "linux" ] }
description = "Build for Linux targets with Cargo"
extend = "cargo"
[tasks.build-linux-cross]
condition = { platforms = [ "mac", "windows" ] }
extend = "cross"
env = { BUILD_TARGET = "x86_64-unknown-linux-musl" }
[tasks.build-macosx]
condition = { platforms = [ "mac" ] }
description = "Build for MacOSX targets"
extend = "cargo"
[tasks.build-windows]
condition = { platforms = [ "windows" ] }
description = "Build for Windows targets"
extend = "cargo"