Mercurial > projects > dstep
comparison scripts/dstepgen.rb @ 16:19885b43130e
Huge update, the bridge actually works now
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sun, 03 Jan 2010 22:06:11 +0100 |
parents | 07194b026fa4 |
children | b9de51448c6b |
comparison
equal
deleted
inserted
replaced
15:7ff919f595d5 | 16:19885b43130e |
---|---|
31 require "rubygems" | 31 require "rubygems" |
32 gem "builder", "~> 2.0" | 32 gem "builder", "~> 2.0" |
33 require "builder" | 33 require "builder" |
34 require "tmpdir" | 34 require "tmpdir" |
35 require "optparse" | 35 require "optparse" |
36 require "stringio" | |
36 include Builder | 37 include Builder |
37 | 38 |
38 $KCODE = "UTF8" | 39 $KCODE = "UTF8" |
39 | 40 |
40 # Extensions that adds support for member access syntax | 41 # Extensions that adds support for member access syntax |
1823 | 1824 |
1824 opts.on("-s", "--option OPTION", "Pass OPTION to the compiler") do |opt| | 1825 opts.on("-s", "--option OPTION", "Pass OPTION to the compiler") do |opt| |
1825 dstep_gen.options << opt | 1826 dstep_gen.options << opt |
1826 end | 1827 end |
1827 | 1828 |
1828 opts.on("-e", "--extra", "Included extra headers headers") do |opt| | 1829 opts.on("-e", "--extra", "Included extra headers") do |opt| |
1829 dstep_gen.extra = true | 1830 dstep_gen.extra = true |
1830 end | 1831 end |
1831 | 1832 |
1832 opts.on("-x", "--exclude HEADER", "Exlude the given header file") do |opt| | 1833 opts.on("-x", "--exclude HEADER", "Exlude the given header file") do |opt| |
1833 dstep_gen.exclude << opt | 1834 dstep_gen.exclude << opt |