forked from Arrivalist/ruby-odbc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
32 lines (26 loc) · 941 Bytes
/
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
#!/usr/bin/env rake
require 'rubygems'
require 'hoe'
require 'rake/extensiontask'
hoe = Hoe.spec 'ruby-odbc' do |ext|
developer('Christian Werner', 'chw @nospam@ ch-werner.de')
self.readme_file = 'README.rdoc'
self.history_file = 'ChangeLog'
self.extra_rdoc_files << self.readme_file
self.extra_rdoc_files += %w[ ext/init.c ext/odbc.c ]
self.local_rdoc_dir = 'generated_docs'
spec_extras[:extensions] = %w[ ext/extconf.rb ext/utf8/extconf.rb ]
end
ENV['RUBY_CC_VERSION'] ||= '1.8.7:1.9.2'
Rake::ExtensionTask.new('odbc_ext', hoe.spec) do |ext|
ext.ext_dir = 'ext'
ext.cross_compile = true
ext.cross_platform = 'i386-mingw32'
ext.cross_config_options << '--enable-win32-cross-compilation'
end
Rake::ExtensionTask.new('odbc_utf8_ext', hoe.spec) do |ext|
ext.ext_dir = 'ext/utf8'
ext.cross_compile = true
ext.cross_platform = 'i386-mingw32'
ext.cross_config_options << '--enable-win32-cross-compilation'
end