-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
38 lines (31 loc) · 911 Bytes
/
justfile
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
targets := "aarch64-apple-ios aarch64-apple-ios-sim x86_64-apple-ios aarch64-linux-android armv7-linux-androideabi x86_64-linux-android i686-linux-android"
default:
@just --list
install-targets:
for target in {{targets}}; do \
rustup target add $target; \
done
clean:
cargo clean \
--manifest-path rust/Cargo.toml
kmp/gradlew --quiet \
--project-dir kmp/ \
clean
build:
@echo '🦀 Building rust'
for target in {{targets}}; do \
cargo build \
--target=$target \
--manifest-path rust/Cargo.toml; \
done
@echo
@echo '🐘 Building KMP'
kmp/gradlew --quiet \
--project-dir kmp/ \
assemble
# ~/.konan/kotlin-native-prebuilt-macos-aarch64-2.0.0/bin/cinterop
interop:
cinterop \
-def kmp/library/src/nativeInterop/cinterop/rust.def \
-output rust \
-verbose