Browse Source

Move examples to ctru-rs/examples and delete old Xargo related files

pull/10/head
AzureMarker 3 years ago
parent
commit
0cdc957a6b
No known key found for this signature in database
GPG Key ID: 47A133F3BF9D03D3
  1. 0
      ctru-rs/examples/buttons.rs
  2. 0
      ctru-rs/examples/hello-both-screens.rs
  3. 0
      ctru-rs/examples/hello-world.rs
  4. 0
      ctru-rs/examples/software-keyboard.rs
  5. 18
      examples/.cargo/config
  6. 19
      examples/3ds.json
  7. 11
      examples/Cargo.toml
  8. 7
      examples/Xargo.toml

0
examples/src/bin/buttons.rs → ctru-rs/examples/buttons.rs

0
examples/src/bin/hello-both-screens.rs → ctru-rs/examples/hello-both-screens.rs

0
examples/src/bin/hello-world.rs → ctru-rs/examples/hello-world.rs

0
examples/src/bin/software-keyboard.rs → ctru-rs/examples/software-keyboard.rs

18
examples/.cargo/config

@ -1,18 +0,0 @@ @@ -1,18 +0,0 @@
[build]
target = "3ds"
[target.3ds]
linker = "arm-none-eabi-gcc"
rustflags = [
"-Clink-arg=-specs=3dsx.specs",
"-Clink-arg=-mfloat-abi=hard",
"-Clink-arg=-march=armv6k",
"-Clink-arg=-mtune=mpcore",
"-Clink-arg=-mfpu=vfp",
"-Clink-arg=-mtp=soft",
"-Clink-arg=-z",
"-Clink-arg=muldefs",
"-Clink-arg=-lgcc",
"-Clink-arg=-lsysbase",
"-Clink-arg=-lc"
]

19
examples/3ds.json

@ -1,19 +0,0 @@ @@ -1,19 +0,0 @@
{
"data-layout": "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64",
"llvm-target": "arm-none-eabihf",
"linker": "arm-none-eabi-gcc",
"ar": "arm-none-eabi-ar",
"target-endian": "little",
"target-pointer-width": "32",
"target-c-int-width": "32",
"target-family": "unix",
"arch": "arm",
"os": "horizon",
"env": "newlib",
"cpu": "mpcore",
"features": "+vfp2",
"relocation-model": "static",
"executables": true,
"exe-suffix": ".elf",
"linker-flavor": "gcc"
}

11
examples/Cargo.toml

@ -1,11 +0,0 @@ @@ -1,11 +0,0 @@
[package]
name = "examples"
version = "0.1.0"
[dependencies]
ctru-rs = { path = "../ctru-rs" }
[profile.dev]
[profile.release]
lto = true

7
examples/Xargo.toml

@ -1,7 +0,0 @@ @@ -1,7 +0,0 @@
[dependencies.alloc]
[dependencies.panic_abort]
[dependencies.panic_unwind]
[dependencies.std]
path = "../ctr-std"
stage = 1
Loading…
Cancel
Save