Sha256: a201bc0f6c4f63311ffed9005611b579886dd96c627165baff657f9d994e4a19

Contents?: true

Size: 906 Bytes

Versions: 7

Compression:

Stored size: 906 Bytes

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/

# Do the work
# create_makefile(extension_name)
if have_header( "sqlite3.h" ) && have_library( "sqlite3", "sqlite3_open" )
  create_makefile(extension_name)
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
do_sqlite3-0.9.2 ext/extconf.rb
do_sqlite3-0.9.4 ext/extconf.rb
do_sqlite3-0.9.3 ext/extconf.rb
do_sqlite3-0.9.5 ext/extconf.rb
do_sqlite3-0.9.6-x86-mswin32-60 ext/extconf.rb
do_sqlite3-0.9.6 ext/extconf.rb
do_sqlite3-0.9.7 ext/extconf.rb