Permalink
Browse files

Updated dependency on rake-compiler to 0.7.0

  • Loading branch information...
1 parent 6d24c36 commit bd2d25986d800e793f74a4e89e72845e7ee5fc27 @luislavena luislavena committed Apr 3, 2010
Showing with 4 additions and 2 deletions.
  1. +1 −1 tasks/gem.rake
  2. +3 −1 tasks/native.rake
View
@@ -21,7 +21,7 @@ HOE = Hoe.spec 'sqlite3-ruby' do
spec_extras[:required_rubygems_version] = '>= 1.3.5'
spec_extras[:extensions] = ["ext/sqlite3/extconf.rb"]
- extra_dev_deps << ['rake-compiler', "~> 0.6.0"]
+ extra_dev_deps << ['rake-compiler', "~> 0.7.0"]
clean_globs.push('**/test.db')
end
View
@@ -6,6 +6,9 @@ Rake::ExtensionTask.new('sqlite3_native', HOE.spec) do |ext|
# where to locate the extension
ext.ext_dir = 'ext/sqlite3'
+ # where native extension will be copied (matches makefile)
+ ext.lib_dir = "lib/sqlite3"
+
# reference to the sqlite3 library
sqlite3_lib = File.expand_path(File.join(File.dirname(__FILE__), '..', 'vendor', 'sqlite3'))
@@ -16,7 +19,6 @@ Rake::ExtensionTask.new('sqlite3_native', HOE.spec) do |ext|
ext.lib_dir = "lib/sqlite3/#{$1}"
ext.config_options << "--with-sqlite3-dir=#{sqlite3_lib}"
else
- ext.lib_dir = "lib/sqlite3"
ext.cross_compile = true
ext.cross_platform = ['i386-mswin32', 'i386-mingw32']
ext.cross_config_options << "--with-sqlite3-dir=#{sqlite3_lib}"

0 comments on commit bd2d259

Please sign in to comment.