Sha256: 8ccf848139f4e7fa25079d329024b1db3573c7f6cd38cfad94f56d1ea95d16c5

Contents?: true

Size: 1011 Bytes

Versions: 3

Compression:

Stored size: 1011 Bytes

Contents

require 'mkmf'
generate_sources_path = File.join(File.dirname(__FILE__), 'generate')
$LOAD_PATH.unshift generate_sources_path
require 'generate_reason'
require 'generate_const'
require 'generate_structs'

include_path = ''
if RUBY_PLATFORM =~ /win|mingw/i
  include_path = 'C:\Program Files\IBM\WebSphere MQ\tools\c\include'
  dir_config('mqm', include_path, '.')
else
  include_path = '/opt/mqm/inc'
  lib64_path   = '/opt/mqm/lib64'
  lib_path     = File.directory?(lib64_path) ? lib64_path : '/opt/mqm/lib'
  dir_config('mqm', include_path, lib_path)
end

have_header('cmqc.h')

# Check for WebSphere MQ Server library
unless (RUBY_PLATFORM =~ /win/i) || (RUBY_PLATFORM =~ /solaris/i) || (RUBY_PLATFORM =~ /linux/i)
  have_library('mqm')
end

# Generate Source Files
GenerateReason.generate(include_path+'/')
GenerateConst.generate(include_path+'/', File.dirname(__FILE__) + '/../lib/wmq')
GenerateStructs.new(include_path+'/', generate_sources_path).generate

# Generate Makefile
create_makefile('wmq/wmq')

Version data entries

3 entries across 3 versions & 3 rubygems

Version Path
ferocia-rubywmq-2.0.2 ext/extconf.rb
ekaranto-rubywmq-2.0.2 ext/extconf.rb
rubywmq-2.0.2 ext/extconf.rb