Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 1.5.1
Fetching contributors…

Cannot retrieve contributors at this time

file 23 lines (21 sloc) 0.938 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
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
Something went wrong with that request. Please try again.