forked from larskanis/opengl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
57 lines (46 loc) · 1.75 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#-*-ruby-*-
#
# Copyright (C) 2006 John M. Gabriele <jmg3000@gmail.com>
# Copyright (C) Eric Hodel <drbrain@segment7.net>
#
# This program is distributed under the terms of the MIT license.
# See the included MIT-LICENSE file for the terms of this license.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
require 'hoe'
require 'rake/extensiontask'
hoe = Hoe.spec 'opengl' do
developer 'Eric Hodel', 'drbrain@segment7.net'
developer 'Lars Kanis', ''
developer 'Blaž Hrastnik', 'speed.the.bboy@gmail.com'
developer 'Alain Hoang', ''
developer 'Jan Dvorak', ''
developer 'Minh Thu Vo', ''
developer 'James Adam', ''
self.readme_file = 'README.rdoc'
self.history_file = 'History.rdoc'
self.extra_rdoc_files = FileList['*.rdoc']
extra_dev_deps << ['rake-compiler', '~> 0.7', '>= 0.7.9']
self.spec_extras = {
:extensions => %w[ext/opengl/extconf.rb],
:required_ruby_version => '>= 1.9.2',
}
end
Rake::ExtensionTask.new 'opengl', hoe.spec do |ext|
ext.lib_dir = 'lib/opengl'
ext.cross_compile = true
ext.cross_platform = ['i386-mingw32']
end
task :test => :compile
# defines columns in the HTML extension list
GLEXT_VERSIONS = %w[svn 0.60 0.50]
desc 'Generate supported extension list.'
task :gen_glext_list do
sh "./utils/extlistgen.rb", "doc/extensions.txt.in", "doc/extensions.txt", *GLEXT_VERSIONS
end