Sha256: 0c8e7660c5e89b3f573ecd632d5af65550abe6a48f37f2c2d1e99ac1fce8bad4

Contents?: true

Size: 1009 Bytes

Versions: 3

Compression:

Stored size: 1009 Bytes

Contents

#!/usr/bin/env ruby

ENV['ARCHFLAGS']='-arch '+`arch`.strip if RUBY_PLATFORM.include?("darwin")

require 'mkmf'

# Add the framework link for Mac OS X.
if RUBY_PLATFORM.include?("darwin")
   $LDFLAGS = $LDFLAGS + " -framework Firebird"
   $CFLAGS  = $CFLAGS + " -DOS_UNIX"
   firebird_include="/Library/Frameworks/Firebird.framework/Headers"
   firebird_lib="/Library/Frameworks/Firebird.framework/Libraries"
elsif RUBY_PLATFORM.include?("win32")
   $LDFLAGS = $LDFLAGS + " fbclient_ms.lib"
   $CFLAGS  = "-MT #{$CFLAGS}".gsub!(/-MD\s*/, '') + " -DOS_WIN32"
   dir_config("win32")
   dir_config("winsdk")
   dir_config("dotnet")
   firebird_include="../mswin32fb"
   firebird_lib="../mswin32fb"
elsif RUBY_PLATFORM.include?("linux")
   $LDFLAGS = $LDFLAGS + " -lfbclient -lpthread"
   $CFLAGS  = $CFLAGS + " -DOS_UNIX"
end

# Make sure the firebird stuff is included.
dir_config("firebird", firebird_include, firebird_lib)

# Generate the Makefile.
create_makefile("rubyfb_lib")

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rubyfb-0.5.4-x86-mswin32-60 ext/extconf.rb
rubyfb-0.5.4-x86-linux ext/extconf.rb
rubyfb-0.5.4 ext/extconf.rb