Sha256: e759a8dcbfc34900b28f75c0a2bfa8668d762531678af3db8e7c1a756313a40b
Contents?: true
Size: 768 Bytes
Versions: 2
Compression:
Stored size: 768 Bytes
Contents
begin gem 'rake-compiler', '~>1.2' require 'rake/extensiontask' def gemspec @gemspec ||= Gem::Specification.load(File.expand_path('../do_sqlite3.gemspec', __dir__)) end Rake::ExtensionTask.new('do_sqlite3', gemspec) do |ext| sqlite3_lib = File.expand_path(File.join(File.dirname(__FILE__), '..', 'vendor', 'sqlite3')) ext.lib_dir = "lib/#{gemspec.name}" ext.cross_config_options << "--with-sqlite3-dir=#{sqlite3_lib}" ext.cross_config_options << "--with-sqlite3-include=#{sqlite3_lib}/include" ext.cross_config_options << "--with-sqlite3-lib=#{sqlite3_lib}/lib" # automatically add build options to avoid need of manual input end rescue LoadError warn 'To compile, install rake-compiler (gem install rake-compiler)' end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sbf-do_sqlite3-0.11.0 | tasks/compile.rake |
sbf-do_sqlite3-0.10.17 | tasks/compile.rake |