Skip to content

Commit a5c2576

Browse files
committed
Rename everything.
1 parent 371f6d4 commit a5c2576

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+51
-52
lines changed

.github/workflows/rust.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ jobs:
3636

3737
- name: Run tests
3838
run: |
39-
cd android-ndk-sys && cargo test --features test && cd ..
40-
cd android-ndk && cargo test --features rustdoc --doc && cd ..
41-
cargo test -p android-build-tools
39+
cd ndk-sys && cargo test --features test && cd ..
40+
cd ndk && cargo test --features rustdoc --doc && cd ..
41+
cargo test -p ndk-build
4242
cargo test -p cargo-apk
4343
4444
- name: Install cargo-apk
@@ -50,5 +50,5 @@ jobs:
5050
export NDK_HOME="$GITHUB_WORKSPACE/android-ndk-r20"
5151
export CC="$NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/clang"
5252
export AR="$NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ar"
53-
cargo check -p android-ndk --target ${{ matrix.rust-target }}
54-
cargo apk build -p android-examples --target ${{ matrix.rust-target }} --examples
53+
cargo check -p ndk --target ${{ matrix.rust-target }}
54+
cargo apk build -p ndk-examples --target ${{ matrix.rust-target }} --examples

Cargo.toml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[workspace]
22
members = [
3-
"android-build-tools",
4-
"android-examples",
5-
"android-glue",
6-
"android-ndk-sys",
7-
"android-ndk",
3+
"ndk",
4+
"ndk-build",
5+
"ndk-examples",
6+
"ndk-glue",
7+
"ndk-sys",
88
"cargo-apk",
99
]

README.md

+14-14

cargo-apk/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ homepage = "https://github.com/rust-windowing/android-ndk-rs"
1111
repository = "https://github.com/rust-windowing/android-ndk-rs"
1212

1313
[dependencies]
14-
android-build-tools = { path = "../android-build-tools" }
1514
cargo-subcommand = "0.4.3"
1615
env_logger = "0.7.1"
1716
exitfailure = "0.5.1"
1817
log = "0.4.8"
18+
ndk-build = { path = "../ndk-build" }
1919
serde = "1.0.104"
2020
toml = "0.5.6"

cargo-apk/src/apk.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
use crate::error::Error;
22
use crate::manifest::Manifest;
3-
use android_build_tools::apk::{Apk, ApkConfig};
4-
use android_build_tools::cargo::{cargo_apk, VersionCode};
5-
use android_build_tools::config::Config;
6-
use android_build_tools::error::NdkError;
7-
use android_build_tools::ndk::Ndk;
8-
use android_build_tools::target::Target;
93
use cargo_subcommand::{Artifact, CrateType, Profile, Subcommand};
4+
use ndk_build::apk::{Apk, ApkConfig};
5+
use ndk_build::cargo::{cargo_apk, VersionCode};
6+
use ndk_build::config::Config;
7+
use ndk_build::error::NdkError;
8+
use ndk_build::ndk::Ndk;
9+
use ndk_build::target::Target;
1010
use std::path::PathBuf;
1111
use std::process::Command;
1212

cargo-apk/src/error.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
use android_build_tools::error::NdkError;
21
use cargo_subcommand::Error as SubcommandError;
2+
use ndk_build::error::NdkError;
33
use std::fmt::{Display, Formatter, Result};
44
use std::io::Error as IoError;
55
use toml::de::Error as TomlError;

cargo-apk/src/manifest.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::error::Error;
2-
use android_build_tools::config::Metadata;
3-
use android_build_tools::target::Target;
2+
use ndk_build::config::Metadata;
3+
use ndk_build::target::Target;
44
use serde::Deserialize;
55
use std::path::Path;
66

android-build-tools/Cargo.toml renamed to ndk-build/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "android-build-tools"
2+
name = "ndk-build"
33
version = "0.1.0"
44
authors = ["David Craven <[email protected]>"]
55
edition = "2018"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

android-examples/Cargo.toml renamed to ndk-examples/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[package]
2-
name = "android-examples"
2+
name = "ndk-examples"
33
version = "0.1.0"
44
authors = ["David Craven <[email protected]>"]
55
edition = "2018"
66
publish = false
77

88
[target.'cfg(target_os = "android")'.dependencies]
9-
android-glue = { path = "../android-glue" }
9+
ndk-glue = { path = "../ndk-glue" }
1010

1111
[[example]]
1212
name = "hello_world"

android-examples/examples/hello_world.rs renamed to ndk-examples/examples/hello_world.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ pub unsafe extern "C" fn ANativeActivity_onCreate(
66
saved_state_size: usize,
77
) {
88
std::env::set_var("RUST_BACKTRACE", "1");
9-
android_glue::init(
9+
ndk_glue::init(
1010
activity as _,
1111
saved_state as _,
1212
saved_state_size as _,
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[package]
2-
name = "android-glue"
2+
name = "ndk-glue"
33
version = "0.1.0"
44
authors = ["David Craven <[email protected]>"]
55
edition = "2018"
66

77
[dependencies]
88
android_log-sys = "0.1.2"
9-
android-ndk-sys = { path = "../android-ndk-sys" }
10-
android-ndk = { path = "../android-ndk" }
9+
ndk = { path = "../ndk" }
10+
ndk-sys = { path = "../ndk-sys" }
1111
lazy_static = "1.4.0"
1212
libc = "0.2.66"
1313
log = "0.4.8"

android-glue/src/lib.rs renamed to ndk-glue/src/lib.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
use android_ndk::input_queue::InputQueue;
2-
use android_ndk::looper::ThreadLooper;
3-
use android_ndk::native_activity::NativeActivity;
4-
use android_ndk::native_window::NativeWindow;
5-
use android_ndk_sys::{AInputQueue, ANativeActivity, ANativeWindow, ARect, ALOOPER_EVENT_INPUT};
61
use lazy_static::lazy_static;
72
use log::Level;
3+
use ndk::input_queue::InputQueue;
4+
use ndk::looper::ThreadLooper;
5+
use ndk::native_activity::NativeActivity;
6+
use ndk::native_window::NativeWindow;
7+
use ndk_sys::{AInputQueue, ANativeActivity, ANativeWindow, ARect, ALOOPER_EVENT_INPUT};
88
use std::ffi::{CStr, CString};
99
use std::fs::File;
1010
use std::io::{BufRead, BufReader};
File renamed without changes.

android-ndk-sys/Cargo.toml renamed to ndk-sys/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
2-
name = "android-ndk-sys"
3-
version = "0.2.1"
2+
name = "ndk-sys"
3+
version = "0.1.0"
44
authors = ["Mark Barbone <[email protected]>"]
55
edition = "2018"
66
description = "FFI bindings for the Android NDK"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

android-ndk/Cargo.toml renamed to ndk/Cargo.toml

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "android-ndk"
2+
name = "ndk"
33
version = "0.1.0"
44
authors = ["Mark Barbone <[email protected]>"]
55
edition = "2018"
@@ -30,6 +30,5 @@ version = "0.0.10"
3030
optional = true
3131

3232
[dependencies.ffi]
33-
package = "android-ndk-sys"
34-
path = "../android-ndk-sys"
35-
version = "0.2"
33+
package = "ndk-sys"
34+
path = "../ndk-sys"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)