Giter Site home page Giter Site logo

Comments (3)

ketsuban avatar ketsuban commented on August 25, 2024 1

This is the Makefile.toml I'm using right now.

[config]
skip_core_tasks = true

[env]
CARGO_MAKE_RUST_TARGET = "thumbv4-none-agb"

[tasks.default]
alias = "build"
workspace = false

[tasks.build]
command = "cargo"
args = ["xbuild", "--target", "${CARGO_MAKE_RUST_TARGET}.json"]
workspace = false

[tasks.release]
dependencies = ["release-step1", "release-step2", "release-step3"]
workspace = false

[tasks.release-step1]
command = "cargo"
args = ["xbuild", "--release", "--target", "${CARGO_MAKE_RUST_TARGET}.json"]

[tasks.release-step2]
command = "arm-none-eabi-objcopy"
args = ["-O", "binary", "target\\${CARGO_MAKE_RUST_TARGET}\\release\\finisterre", "target\\${CARGO_MAKE_RUST_TARGET}\\release\\finisterre.gba"]

[tasks.release-step3]
command = "gbafix"
args = ["target\\${CARGO_MAKE_RUST_TARGET}\\release\\finisterre.gba"]

[tasks.run]
dependencies = ["build"]
command = "C:\\mGBA\\mGBA.exe"
args = ["target\\${CARGO_MAKE_RUST_TARGET}\\debug\\finisterre"]
workspace = false

Caveats:

  • I don't have a step for crt0.s, which I could probably stand to add.
  • The run task is specific to my machine.
  • Because I have a Cargo workspace rather than a single crate I can't use the CARGO_MAKE_CRATE_FS_NAME variable; feel free to replace the hardcoded finisterre in your own code.

from gba.

Lokathor avatar Lokathor commented on August 25, 2024

Got a makefile into the lokathor branch, so normal builds can be done with cargo make now, including the full workflow of making the target directory, assembling, xbuild, objcopy, and gbafix.

at the moment it doesn't know how to get devkitpro automatically on its own, which would be the final big improvement for it.

from gba.

Lokathor avatar Lokathor commented on August 25, 2024

this is all in master now

from gba.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.