Sha256: 6c3a943c7f1d2e3681d6bc365dd7dd6a1e9876ef9d764d81553b57abeb33a0b3
Contents?: true
Size: 1.02 KB
Versions: 3
Compression:
Stored size: 1.02 KB
Contents
# ENV["RC_ARCHS"] = `uname -m`.chomp if `uname -sr` =~ /^Darwin/ # # require 'mkmf' # # SWIG_WRAP = "sqlite3_api_wrap.c" # # dir_config( "sqlite3", "/usr/local" ) # # if have_header( "sqlite3.h" ) && have_library( "sqlite3", "sqlite3_open" ) # create_makefile( "sqlite3_c" ) # end if RUBY_PLATFORM =~ /darwin/ ENV["RC_ARCHS"] = `uname -m`.chomp if `uname -sr` =~ /^Darwin/ # On PowerPC the defaults are fine ENV["RC_ARCHS"] = '' if `uname -m` =~ /^Power Macintosh/ end # Loads mkmf which is used to make makefiles for Ruby extensions require 'mkmf' # Give it a name extension_name = 'do_sqlite3_ext' dir_config("sqlite3") # NOTE: use GCC flags unless Visual C compiler is used $CFLAGS << ' -Wall ' unless RUBY_PLATFORM =~ /mswin/ if RUBY_VERSION < '1.8.6' $CFLAGS << ' -DRUBY_LESS_THAN_186' end # Do the work # create_makefile(extension_name) if have_header( "sqlite3.h" ) && have_library( "sqlite3", "sqlite3_open" ) have_func("sqlite3_prepare_v2") have_func("sqlite3_open_v2") create_makefile(extension_name) end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
do_sqlite3-0.9.12-x86-mswin32-60 | ext/do_sqlite3_ext/extconf.rb |
do_sqlite3-0.9.12-x86-mingw32 | ext/do_sqlite3_ext/extconf.rb |
do_sqlite3-0.9.12 | ext/do_sqlite3_ext/extconf.rb |