Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (21 sloc) 0.938 kb
load File.join(File.dirname(File.expand_path(__FILE__)), 'Rakefile')
ENV['RUBY_CC_VERSION'] = '1.8.7:1.9.2'
require "rake/extensiontask"
load('sequel_pg.gemspec')
Rake::ExtensionTask.new('sequel_pg', SEQUEL_PG_GEMSPEC) do |ext|
ext.name = 'sequel_pg'
ext.ext_dir = 'ext/sequel_pg'
ext.cross_compile = true
ext.cross_platform = %w[i386-mingw32 i386-mswin32-60]
STATIC_BUILDDIR = Pathname("../ruby-pg/build/builds").expand_path
STATIC_POSTGRESQL_BUILDDIR = STATIC_BUILDDIR + "postgresql-9.1.1"
STATIC_POSTGRES_LIBDIR = STATIC_POSTGRESQL_BUILDDIR + 'src/interfaces/libpq'
STATIC_POSTGRES_INCDIR = STATIC_POSTGRESQL_BUILDDIR + 'src/include'
# configure options only for cross compile
ext.cross_config_options += [
"--with-pg-include=#{STATIC_POSTGRES_LIBDIR}",
"--with-opt-include=#{STATIC_POSTGRES_INCDIR}",
"--with-pg-lib=#{STATIC_POSTGRES_LIBDIR}",
"--enable-static-build",
]
end
Jump to Line
Something went wrong with that request. Please try again.