Skip to content
pythoneer edited this page May 25, 2016 · 5 revisions

#[cfg(target_os = "redox")] for conditional compilation

git submodule update --init --recursive

filesystem/apps/pixelcannon/assets:
	mkdir filesystem/apps/pixelcannon/assets/
	cp -RL crates/pixelcannon/assets/* filesystem/apps/pixelcannon/assets/

filesystem/apps/pixelcannon/main.bin: crates/pixelcannon/src/main.rs crates/pixelcannon/src/*.rs $(BUILD)/libstd.rlib $(BUILD)/liborbclient.rlib $(BUILD)/liborbimage.rlib
	$(RUSTC) $(RUSTCFLAGS) -C lto --crate-type bin -o $@ $<
apps: filesystem/apps/calculator/main.bin \
        ...
      filesystem/apps/pixelcannon/main.bin \
      filesystem/apps/pixelcannon/assets \
        ...

http://chrishecker.com/Miscellaneous_Technical_Articles

Clone this wiki locally