mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 04:33:37 +00:00
rename example and readme titles (#781)
This commit is contained in:
parent
e21705bec6
commit
8d2d2426fe
4 changed files with 11 additions and 11 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -94,7 +94,7 @@ jobs:
|
|||
- name: Install Cargo APK
|
||||
run: cargo install cargo-apk
|
||||
- name: Build APK
|
||||
run: cargo apk build --example bevy_android
|
||||
run: cargo apk build --example android
|
||||
|
||||
clean:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
@ -321,8 +321,8 @@ path = "examples/wasm/assets_wasm.rs"
|
|||
required-features = ["bevy_winit"]
|
||||
|
||||
[[example]]
|
||||
name = "bevy_android"
|
||||
path = "examples/android/bevy_android.rs"
|
||||
name = "android"
|
||||
path = "examples/android/android.rs"
|
||||
crate-type = ["cdylib"]
|
||||
|
||||
[package.metadata.android]
|
||||
|
|
|
@ -120,14 +120,14 @@ Example | File | Description
|
|||
|
||||
## WASM
|
||||
|
||||
#### Pre-requirements
|
||||
#### Setup
|
||||
|
||||
```sh
|
||||
rustup target add wasm32-unknown-unknown
|
||||
cargo install wasm-bindgen-cli
|
||||
```
|
||||
|
||||
#### Build & run
|
||||
#### Build & Run
|
||||
|
||||
Following is an example for `headless_wasm`. For other examples in wasm/ directory,
|
||||
change the `headless_wasm` in the following commands **and edit** `examples/wasm/index.html`
|
||||
|
@ -146,14 +146,14 @@ basic-http-server examples/wasm
|
|||
|
||||
## iOS
|
||||
|
||||
#### Pre-requirements
|
||||
#### Setup
|
||||
|
||||
```sh
|
||||
rustup target add aarch64-apple-ios x86_64-apple-ios
|
||||
cargo install cargo-lipo
|
||||
```
|
||||
|
||||
#### Build & run
|
||||
#### Build & Run
|
||||
|
||||
Using bash:
|
||||
|
||||
|
@ -190,7 +190,7 @@ used for the `Makefile`.
|
|||
|
||||
## Android
|
||||
|
||||
#### Pre-requirements
|
||||
#### Setup
|
||||
|
||||
```sh
|
||||
rustup target add aarch64-linux-android armv7-linux-androideabi
|
||||
|
@ -201,12 +201,12 @@ The Android SDK must be installed, and the environment variable `ANDROID_SDK_ROO
|
|||
|
||||
When using `NDK (Side by side)`, the environment variable `ANDROID_NDK_ROOT` must also be set to one of the NDKs in `sdk\ndk\[NDK number]`.
|
||||
|
||||
#### Build & run
|
||||
#### Build & Run
|
||||
|
||||
To run on a device setup for Android development, run:
|
||||
|
||||
```sh
|
||||
cargo apk run --example bevy_android
|
||||
cargo apk run --example android
|
||||
```
|
||||
|
||||
:warning: At this time Bevy does not work in Android Emulator.
|
||||
|
|
|
@ -3,7 +3,7 @@ include!("../3d/3d_scene.rs");
|
|||
|
||||
#[cfg_attr(
|
||||
target_os = "android",
|
||||
ndk_glue::main(logger(level = "trace", tag = "bevy_android"), backtrace = "full")
|
||||
ndk_glue::main(logger(level = "trace", tag = "android"), backtrace = "full")
|
||||
)]
|
||||
pub fn android_main() {
|
||||
main();
|
Loading…
Reference in a new issue