Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Dub package #23
I've only tested this with Arch Linux X86_64 DMD 2.066.1 running the main.d example.
NOTE I have had to change some import paths to match the Derelict pulled in by DUB and some access to SDL_Color. The diffs have all the details.
I changed the extensions in the samples folder to be lower case so the example would run, what with *nix being case-sensitive and all that.
I've also added LICENSE file in prep for dub package registry. I just pulled it from the Dgame web page. I hope that's OK
If you prefer not to pull this because it changes too much just for DUB, feel free to cherry pick what's useful as you see fit.
To build the example with dub:
Dub will pull in the required Derelict packages.
To use Dgame as a library with dub it will need to be added to the local DUB registry. I think this is because it's not a registered DUB package. Something like the following untested set of steps should do it.
 The "-cexamlpe" dub target will produce a binary call "dgame-example".