-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.toml
37 lines (31 loc) · 1.02 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
[tasks.clippy]
command = "cargo"
args = ["clippy", "--workspace", "--features", "sqlite", "--all-targets", "--tests", "--", "-D", "warnings"]
[tasks.build-sqlite3]
command = "makers"
cwd = "./sqlite3"
[tasks.build-android]
command = "cargo"
args = ["ndk", "--target", "aarch64-linux-android", "build", "--features", "sqlite", "--release"]
install_crate = true
dependencies = ["build-sqlite3"]
[tasks.build-ios]
command = "cargo"
args = ["build", "--features", "sqlite", "--target", "aarch64-apple-ios", "--release"]
[tasks.build-all]
dependencies = ["build-android", "build-ios"]
[tasks.tarball]
cwd = "./target"
script = '''
temp_dir=libssi_man
mkdir -p "${temp_dir}/android" "${temp_dir}/ios"
cp aarch64-linux-android/release/libssi_man.a "${temp_dir}/android"
cp aarch64-apple-ios/release/libssi_man.a "${temp_dir}/ios"
cp -r include "${temp_dir}/"
tar -czvf "libssi_man.tar.gz" -C "$temp_dir" .
rm -rf "{temp_dir}"
'''
[tasks.nextest]
command = "cargo"
args = ["nextest", "run", "--features", "sqlite", "--nocapture"]
install_crate = true