Sha256: 89f49e07287c773a6c056b39c2d0237e9e7ef0ef8663ed82b6ef5e54da381cb8

Contents?: true

Size: 1.16 KB

Versions: 48

Compression:

Stored size: 1.16 KB

Contents

# use rake-compiler for building the extension
require 'rake/extensiontask'

# NOTE: version used by cross compilation of Windows native extension
# It do not affect compilation under other operating systems
# The version indicated is the minimum DLL suggested for correct functionality
BINARY_VERSION = "3.7.11"
URL_VERSION    = "3071100"

# build sqlite3_native C extension
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"

  # clean binary folders always
  CLEAN.include("#{ext.lib_dir}/?.?")

  # automatically add build options to avoid need of manual input
  if RUBY_PLATFORM =~ /mswin|mingw/ then
    # define target for extension (supporting fat binaries)
    RUBY_VERSION =~ /(\d+\.\d+)/
    ext.lib_dir = "lib/sqlite3/#{$1}"
    ext.config_options << "--enable-local"
  else
    ext.cross_compile = true
    ext.cross_platform = ['i386-mswin32-60', 'i386-mingw32']
    ext.cross_config_options << "--enable-local"
  end
end

# ensure things are compiled prior testing
task :test => [:compile]

# vim: syntax=ruby

Version data entries

48 entries across 44 versions & 10 rubygems

Version Path
active_mailer-0.0.10 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.7/tasks/native.rake
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/sqlite3-1.3.7/tasks/native.rake
challah-1.0.0 vendor/bundle/gems/sqlite3-1.3.7/tasks/native.rake
swipe-rails-0.0.5 vendor/bundle/gems/sqlite3-1.3.7/tasks/native.rake
active_mailer-0.0.9 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.7/tasks/native.rake
active_mailer-0.0.8 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.7/tasks/native.rake
active_mailer-0.0.7 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.7/tasks/native.rake
active_mailer-0.0.6 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.7/tasks/native.rake
challah-1.0.0.beta3 vendor/bundle/gems/sqlite3-1.3.7/tasks/native.rake
challah-1.0.0.beta2 vendor/bundle/gems/sqlite3-1.3.7/tasks/native.rake
challah-1.0.0.beta vendor/bundle/gems/sqlite3-1.3.6/tasks/native.rake
challah-1.0.0.beta vendor/bundle/gems/sqlite3-1.3.7/tasks/native.rake
active_mailer-0.0.5 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.7/tasks/native.rake
active_mailer-0.0.4 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.7/tasks/native.rake
active_mailer-0.0.3 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.7/tasks/native.rake
challah-0.9.1.beta.3 vendor/bundle/gems/sqlite3-1.3.6/tasks/native.rake
devise_sociable-0.1.0 vendor/bundle/gems/sqlite3-1.3.7/tasks/native.rake
sqlite3-1.3.7-x86-mswin32-60 tasks/native.rake
sqlite3-1.3.7-x86-mingw32 tasks/native.rake
sqlite3-1.3.7 tasks/native.rake