Skip to content
Newer
Older
100644 24 lines (21 sloc) 938 Bytes
f3714cc @jeremyevans Switch to using rake-compiler
authored
1 load File.join(File.dirname(File.expand_path(__FILE__)), 'Rakefile')
2
92fc705 @jeremyevans Build Windows version against PostgreSQL 9.1.1, ruby 1.8.7, and ruby …
authored
3 ENV['RUBY_CC_VERSION'] = '1.8.7:1.9.2'
f3714cc @jeremyevans Switch to using rake-compiler
authored
4 require "rake/extensiontask"
5 load('sequel_pg.gemspec')
6 Rake::ExtensionTask.new('sequel_pg', SEQUEL_PG_GEMSPEC) do |ext|
7 ext.name = 'sequel_pg'
8 ext.ext_dir = 'ext/sequel_pg'
9 ext.cross_compile = true
10 ext.cross_platform = %w[i386-mingw32 i386-mswin32-60]
11
92fc705 @jeremyevans Build Windows version against PostgreSQL 9.1.1, ruby 1.8.7, and ruby …
authored
12 STATIC_BUILDDIR = Pathname("../ruby-pg/build/builds").expand_path
13 STATIC_POSTGRESQL_BUILDDIR = STATIC_BUILDDIR + "postgresql-9.1.1"
f3714cc @jeremyevans Switch to using rake-compiler
authored
14 STATIC_POSTGRES_LIBDIR = STATIC_POSTGRESQL_BUILDDIR + 'src/interfaces/libpq'
15 STATIC_POSTGRES_INCDIR = STATIC_POSTGRESQL_BUILDDIR + 'src/include'
16 # configure options only for cross compile
17 ext.cross_config_options += [
92fc705 @jeremyevans Build Windows version against PostgreSQL 9.1.1, ruby 1.8.7, and ruby …
authored
18 "--with-pg-include=#{STATIC_POSTGRES_LIBDIR}",
19 "--with-opt-include=#{STATIC_POSTGRES_INCDIR}",
20 "--with-pg-lib=#{STATIC_POSTGRES_LIBDIR}",
21 "--enable-static-build",
22 ]
f3714cc @jeremyevans Switch to using rake-compiler
authored
23 end
Something went wrong with that request. Please try again.