Compare commits

..

No commits in common. "e243d1a179450cdc96a7406ca19807b285567bd2" and "4a200fa059bd7213b99650355d94bf0df71660a2" have entirely different histories.

4 changed files with 437 additions and 576 deletions

994
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -70,11 +70,6 @@ cargo install cargo-apk
cargo target add aarch64-linux-android
```
***wgpu branch**: latest git version of cargo-apk may be required!*
```bash
cargo install --git https://github.com/rust-mobile/cargo-apk cargo-apk
```
**Build:**
`--no-default-features` is required for keyboard input!\

View file

@ -5,15 +5,13 @@ edition = "2021"
publish = false
[lib]
name = "kubimain"
crate-type = ["lib", "cdylib"]
[dependencies]
kubi-shared = { path = "../kubi-shared" }
kubi-logging = { path = "../kubi-logging" }
log = "0.4"
wgpu = "0.16"
winit = { version = "0.28", features = ["android-native-activity"] }
glium = { git = "https://github.com/glium/glium", rev = "5d50e7" }
glam = { version = "0.24", features = ["debug-glam-assert", "fast-math"] }
image = { version = "0.24", default_features = false, features = ["png"] }
strum = { version = "0.25", features = ["derive"] }
@ -27,11 +25,13 @@ gilrs = { version = "0.10", default_features = false, features = ["xinput"] }
uflow = "0.7"
postcard = { version = "1.0", features = ["alloc"] }
lz4_flex = { version = "0.11", default-features = false, features = ["std"] }
static_assertions = "1.1"
tinyset = "0.4"
serde_json = { version = "1.0", optional = true } #only used for `generate_visualizer_data`
[target.'cfg(target_os = "android")'.dependencies]
android-activity = { version = "0.4", features = ["native-activity"] }
ndk = "0.7"
ndk-glue = "0.7"
[target.'cfg(target_os = "windows")'.dependencies]
winapi = "0.3"
@ -42,7 +42,7 @@ raw-evt = [] #required for mouse input, but breaks keyboard on android
generate_visualizer_data = ["dep:serde_json", "shipyard/serde1"]
safe_lz4 = ["lz4_flex/safe-encode", "lz4_flex/safe-decode"]
parallel = ["shipyard/parallel"] # causes some serious issues!
nightly = ["hashbrown/nightly", "glam/core-simd", "lz4_flex/nightly", "kubi-shared/nightly"]
nightly = ["hashbrown/nightly", "glam/core-simd", "static_assertions/nightly", "lz4_flex/nightly", "kubi-shared/nightly"]
#part of wip android support
[package.metadata.android]

View file

@ -1,8 +1,8 @@
#![cfg_attr(
all(windows, not(debug_assertions)),
all(windows, not(debug_assertions)),
windows_subsystem = "windows"
)]
fn main() {
kubimain::kubi_main()
kubi::kubi_main();
}