Skip to content

Commit

Permalink
add backend
Browse files Browse the repository at this point in the history
  • Loading branch information
lazytiger committed Dec 21, 2023
1 parent 6670b02 commit 6f78fd9
Show file tree
Hide file tree
Showing 83 changed files with 9,673 additions and 0 deletions.
42 changes: 42 additions & 0 deletions mobile2/backend/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
[build]
target = "x86_64-pc-windows-msvc"

[target.aarch64-linux-android]
linker = 'C:\Program Files\Android\android-ndk-r25c\toolchains/llvm/prebuilt/windows-x86_64\bin\aarch64-linux-android24-clang.cmd'
rustflags = [
"-L",
'D:\github.com\lazytiger\trojan-rs\mobile2\backend2\.cargo',
"-Clink-arg=-landroid",
"-Clink-arg=-llog",
"-Clink-arg=-lOpenSLES",
]

[target.armv7-linux-androideabi]
linker = 'C:\Program Files\Android\android-ndk-r25c\toolchains/llvm/prebuilt/windows-x86_64\bin\armv7a-linux-androideabi24-clang.cmd'
rustflags = [
"-L",
'D:\github.com\lazytiger\trojan-rs\mobile2\backend2\.cargo',
"-Clink-arg=-landroid",
"-Clink-arg=-llog",
"-Clink-arg=-lOpenSLES",
]

[target.i686-linux-android]
linker = 'C:\Program Files\Android\android-ndk-r25c\toolchains/llvm/prebuilt/windows-x86_64\bin\i686-linux-android24-clang.cmd'
rustflags = [
"-L",
'D:\github.com\lazytiger\trojan-rs\mobile2\backend2\.cargo',
"-Clink-arg=-landroid",
"-Clink-arg=-llog",
"-Clink-arg=-lOpenSLES",
]

[target.x86_64-linux-android]
linker = 'C:\Program Files\Android\android-ndk-r25c\toolchains/llvm/prebuilt/windows-x86_64\bin\x86_64-linux-android24-clang.cmd'
rustflags = [
"-L",
'D:\github.com\lazytiger\trojan-rs\mobile2\backend2\.cargo',
"-Clink-arg=-landroid",
"-Clink-arg=-llog",
"-Clink-arg=-lOpenSLES",
]
4 changes: 4 additions & 0 deletions mobile2/backend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Rust target/ **/*.rs.bk # cargo-mobile2 .cargo/ /gen # macOS .DS_Store
/target
/gen/android/app/build
/assets
Loading

0 comments on commit 6f78fd9

Please sign in to comment.