Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Add a zig build #100

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

WIP: Add a zig build #100

wants to merge 1 commit into from

Conversation

myQwil
Copy link
Contributor

@myQwil myQwil commented Oct 9, 2024

Includes the commands player/run_player to build and run the player demo, and demo/run_demo to build and run the zig demo, a re-write of demo/basics.c.

For example, running the command:

zig build --release=fast -Dshared=false -Dym2612_emu=mame run_player -- "test.vgz"

will build and run the player demo, statically linked, in release-fast mode, and with MAME as the ym2612 emulator.

Zig's package manager will retrieve zlib and unrar libraries, which are then also built and statically linked.

WIP because it has only been tested on Linux.

zig build -h will display documentation for all project-specific options.

Includes the commands `player`/`run_player` to build and run the
player demo, and `demo`/`run_demo` to build and run the basics demo.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant