Sha256: ad4530d90cdc44a7f8c91b4774d83175c2a49d76c62f813b9d76721118f5c6e4

Contents?: true

Size: 623 Bytes

Versions: 3

Compression:

Stored size: 623 Bytes

Contents

require 'mkmf'

def barf message = 'dependencies not met'
  raise message
end

barf unless have_header('ruby.h')

pkg_config('xmlsec1')

$CFLAGS << " -fvisibility=hidden"

if $CFLAGS =~ /\-DXMLSEC_CRYPTO=\\\\\\"openssl\\\\\\"/
puts "Changing escaping: #{$CFLAGS}"
  $CFLAGS['-DXMLSEC_CRYPTO=\\\\\\"openssl\\\\\\"'] =
    '-DXMLSEC_CRYPTO=\\"openssl\\"'
end

if $CFLAGS =~ /\-DXMLSEC_CRYPTO="openssl"/
puts "Ensure we escaping: #{$CFLAGS}"
  $CFLAGS['-DXMLSEC_CRYPTO="openssl"'] =
  '-DXMLSEC_CRYPTO=\\"openssl\\"'
end

puts "Clfags: #{$CFLAGS}"
$libs = `xmlsec1-config  --libs`.strip
create_makefile('nokogiri_ext_xmlsec')

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nokogiri-xmlsec-me-harder-0.9.2 ext/nokogiri_ext_xmlsec/extconf.rb
nokogiri-xmlsec-me-harder-0.9.1 ext/nokogiri_ext_xmlsec/extconf.rb
nokogiri-xmlsec-me-harder-0.9.0 ext/nokogiri_ext_xmlsec/extconf.rb