@@ -5,13 +5,43 @@ bindings:
55 - -language kotlin \
66 - -out-dir wordbase-android/ app/ build/ generated/
77
8- build-aarch64 profile = " debug":
8+ android-lib rust_target android_target profile = " debug":
99 cross build \
10- - -target-dir target/ cross \
11- - -target aarch6 4 -linux-android \
10+ - -target-dir " target/cross/ {{ rust_target }} " \
11+ - -target " {{ rust_target }} " \
1212 - -package wordbase-sys \
1313 {{ if profile == " release" { " --release" } else { " " } }}
14- mkdir -p wordbase-android/ app/ build/ generated/ lib/ arm6 4 -v8a /
14+ mkdir -p " wordbase-android/app/build/generated/lib/{{ android_target }} /"
1515 cp \
16- target/ cross/ aarch64 -linux-android/ {{ profile }} / libwordbase.so \
17- wordbase-android/ app/ build/ generated/ lib/ arm64 -v8a/
16+ " target/cross/{{ rust_target }} /{{ rust_target }} /{{ profile }} /libwordbase.so" \
17+ " wordbase-android/app/build/generated/lib/{{ android_target }} /"
18+
19+ android-lib-armv7 profile = " debug": (android-lib " armv7-linux-androideabi" " armeabi-v7a" profile)
20+ android-lib-aarch64 profile = " debug": (android-lib " aarch64-linux-android" " arm64-v8a" profile)
21+ android-lib-x86 profile = " debug": (android-lib " i686-linux-android" " x86" profile)
22+ android-lib-x86_64 profile = " debug": (android-lib " x86_64-linux-android" " x86_64" profile)
23+ android-libs profile = " debug":
24+ echo ' \
25+ layout { \
26+ pane split_direction="vertical" { \
27+ pane split_direction="horizontal" { \
28+ pane name="armv7" command="just" { \
29+ args "android-lib-armv7" "{{ profile }} "; \
30+ }; \
31+ pane name="aarch64" command="just" { \
32+ args "android-lib-aarch64" "{{ profile }} "; \
33+ }; \
34+ }; \
35+ pane split_direction="horizontal" { \
36+ pane name="x86" command="just" { \
37+ args "android-lib-x86" "{{ profile }} "; \
38+ }; \
39+ pane name="x86_64" command="just" { \
40+ args "android-lib-x86_64" "{{ profile }} "; \
41+ }; \
42+ }; \
43+ }; \
44+ } \
45+ ' > / tmp/ wordbase-zellij-run.kdl
46+ - zellij delete-session wordbase
47+ zellij --new-session-with-layout / tmp/ wordbase-zellij-run.kdl
0 commit comments