Sha256: 88b611f9976335f9322914c57e40b04b37e8e913390d4ba8e7cb048560031b47

Contents?: true

Size: 562 Bytes

Versions: 2

Compression:

Stored size: 562 Bytes

Contents

require 'mkmf'
require 'rbconfig'

$CFLAGS += " -Wall"
# make available table and column meta data api
$CFLAGS += " -DSQLITE_ENABLE_COLUMN_METADATA=1"  
$CFLAGS += " -DSQLITE_ENABLE_RTREE=1"
$CFLAGS += " -DSQLITE_OMIT_BUILTIN_TEST=1"

# we compile sqlite the same way that the installation of ruby is compiled.
if Config::CONFIG['configure_args'].include?( "--enable-pthread" ) then
  $CFLAGS += " -DSQLITE_THREADSAFE=1"
else
  $CFLAGS += " -DSQLITE_THREADSAFE=0"
end

# remove the -g if it exists
$CFLAGS = $CFLAGS.gsub(/-g/,'')

create_makefile('amalgalite3')

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
amalgalite-0.6.0-x86-mswin32-60 ext/extconf.rb
amalgalite-0.6.0 ext/extconf.rb