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

Dub package #23

merged 4 commits into from Feb 21, 2015


None yet
2 participants

growlercab commented Feb 20, 2015

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:

  1. cd /your/Dgame/folder/
  2. dub build --compiler=dmd -cexample

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.

  1. cd /parent/dir/to/Dgame/folder/
  2. dub add-local Dgame 0.3.2
    (or whatever version number it should be)

[edit] The "-cexamlpe" dub target will produce a binary call "dgame-example".

growlercab added some commits Feb 20, 2015

Dgame dub build
Add dub.json file
Fix some compile errors with derelict imports and SDL_Color changes.
Add LICENSE file for dub package

This comment has been minimized.


Dgame commented Feb 21, 2015

Wow, that is really nice of you. Thank you! I will look over it today.


This comment has been minimized.


Dgame commented Feb 21, 2015

@growlercab Since I'm using the Derelict lib files inside of the app.d, how can I access them after dub has installed the needed derelict packages?


This comment has been minimized.


Dgame commented Feb 21, 2015

Forget it. It works now. I will merge this PR, do some adaptations and then I will publish Dgame on DUB.
Thank you for your effort.

Dgame added a commit that referenced this pull request Feb 21, 2015

@Dgame Dgame merged commit b9df34d into Dgame:master Feb 21, 2015


This comment has been minimized.


growlercab commented Feb 21, 2015

I'm glad it was useful! Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment