forked from acrazing/dpdm
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile.toml
41 lines (33 loc) · 1.26 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
[tasks.dev]
script = [
"cargo build",
"./target/debug/dpdm ./example/index.js -T --exit-code circular:1 --no-tree"
]
# script = ["cargo build", "./target/debug/dpdm ./example/index.js"]
[tasks.dev-perf]
script = [
"cargo build",
"samply record ./target/debug/dpdm ./example/index.js -T --exit-code circular:1 --no-tree --no-warning",
]
[tasks.build-for-mac-arm64]
script = ["cross build --target aarch64-apple-darwin --release"]
[tasks.build-for-mac-x86]
script = ["cross build --target x86_64-apple-darwin --release"]
[tasks.build-for-linux-x86]
script = ["cross build --target x86_64-unknown-linux-musl --release"]
[tasks.build-for-linux-arm]
script = ["cross build --target aarch64-unknown-linux-musl --release"]
[tasks.build-for-windows-x86_64]
script = ["cross build --target x86_64-pc-windows-gnu --release"]
[tasks.build-all]
script = [
"pnpm build",
"cross build --target aarch64-apple-darwin --release",
"cross build --target x86_64-apple-darwin --release",
"cross build --target x86_64-unknown-linux-musl --release",
"cross build --target aarch64-unknown-linux-musl --release",
"cross build --target x86_64-pc-windows-gnu --release",
]
[tasks.pre-dev]
# 手动执行下边的命令
script = ["cargo install cargo-make", "cargo install --locked samply"]