Sha256: fe3c5ed55b9a22896331ab9d255de3e893a8e778b56899ab4d86299d01c00606

Contents?: true

Size: 553 Bytes

Versions: 4

Compression:

Stored size: 553 Bytes

Contents

require 'mkmf'

# mongrel and http-parser both define http_parser_(init|execute), so we
# rename functions in http-parser before using them.
vendor_dir = File.expand_path('../vendor/http-parser/', __FILE__)
src_dir = File.expand_path('../', __FILE__)
%w[ http_parser.c http_parser.h ].each do |file|
  File.open(File.join(src_dir, "ryah_#{file}"), 'w'){ |f|
    f.write File.read(File.join(vendor_dir, file)).gsub('http_parser', 'ryah_http_parser')
  }
end

$CFLAGS << " -I#{src_dir}"

dir_config("ruby_http_parser")
create_makefile("ruby_http_parser")

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
http_parser.rb-0.5.0 ext/ruby_http_parser/extconf.rb
http_parser.rb-0.5.0-x86-mswin32-60 ext/ruby_http_parser/extconf.rb
http_parser.rb-0.5.0-x86-mingw32 ext/ruby_http_parser/extconf.rb
http_parser.rb-0.5.0-java ext/ruby_http_parser/extconf.rb