Update Vendored sqlite3-ruby
This commit is contained in:
parent
9874650e4b
commit
a71e64a172
26 changed files with 6501 additions and 4335 deletions
|
@ -1,16 +1,10 @@
|
|||
require 'mkmf'
|
||||
|
||||
SWIG_WRAP = "sqlite3_api_wrap.c"
|
||||
|
||||
dir_config( "sqlite3", "/usr/local" )
|
||||
dir_config( "sqlite3" )
|
||||
|
||||
have_library( "rt", "fdatasync" )
|
||||
|
||||
if have_header( "sqlite3.h" ) && have_library( "sqlite3", "sqlite3_open" )
|
||||
if !File.exists?( SWIG_WRAP ) || with_config( "swig", false )
|
||||
puts "creating #{SWIG_WRAP}"
|
||||
system "swig -ruby sqlite3_api.i" or raise "could not build wrapper via swig (perhaps swig is not installed?)"
|
||||
end
|
||||
|
||||
if have_header( "sqlite3.h" ) && have_library( "sqlite3", "sqlite3_open" ) then
|
||||
$CFLAGS << " -fno-strict-aliasing" unless RUBY_PLATFORM =~ /mswin/
|
||||
create_makefile( "sqlite3_api" )
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue