dgen.rb

dgen.rb is a Ruby script that generates the bindings in D code from the files generated by dstepgen.rb

What's needed to run the script?

You basically need two things: Ruby and gem. All other needed libraries are available through gem. If you run Mac OS X 10.5 (Leopard) then you should already have Ruby and gem.

  • Ruby
  • Gem
  • xml-simple

Usage

If you run the script with the "-h" option the help is displayed:

Usage: dgen.rb [options] <dstep files...>

Options:
    -o, --output DIRECTORY           Place the output files in this directory'
    -h, --help                       Show this message.
    -v, --version                    Show version.

Use the `-h' flag or for help.
-o
An existing directory to place all the generated D files in. Required option.


Examples:

Generate D bindings to the Foundation framework and place the output in bindings:

mkdir bindings
./dgen.rb -o bindings Foundation.dstep


License

Boost Software License