| Age | Commit message (Collapse) | Author |
|
In order to make it easier to build `picow` on systems _without_
PICO-8 support (which what this project targets...), we added a
system for producing a `system.tar.gz` tarball that contains the
generated system source required for building PICO-w (namely, the
`pico8.wasm` transpiled to C, and the `sysroot` with the embedded
data files needed by the application).
I also moved away from `a b c: ...` style recipes, as they run
multiple times in parallelized builds. I made it compatible with
older `make`s, and it will hopefully generally work.
|
|
This is a mouthful! We now generate `sysroot.c` **and** its
corresponding header file `sysroot.h`. We also made a few
modifications to the Makefile to better support out builds:
- We now output to `build/` - this plays nicer with tooling
as that is the typical directory created by CMake, and
helps with things like `compile_commands.json` being
automagically picked up by `clangd`.
- We now have a recipe for building a `compile_commands.json`
file, so that `clangd` can provide LSP support out-of-the
box. It works by creating a small wrapper `ccj` compiler
that adds the required `-MJ <path>` option to clang. This
is an adhoc solution to avoid pulling in additional build
dependencies to the project, and works well enough :)
|
|
We now embed the PICO-w sysroot files (the WASM blob,
data pod and boot rom) into the final `picow` binary in
order to simplify distribution. This commit adds a new
`generate-sysroot` tool to achieve it.
|
|
- `argv` size specifier
- WASM -> Wasm
|
|
We now support loading cart roms from .p8.png file :tada:!
|
|
Add a tool for extracting the PICO-8 data.pod file that is exported
with the cart. This includes (on inspecting the binary) the boot
sequence cart among some other things.
It is written as a quick and dirty C program (since we will have to
practice our C anyway).
|