File: Rakefile

package info (click to toggle)
ruby-http-parser 1.2.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 280 kB
  • sloc: ansic: 2,137; ruby: 672; makefile: 12
file content (7 lines) | stat: -rw-r--r-- 327 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
require 'ffi-compiler/compile_task'

FFI::Compiler::CompileTask.new('http-parser-ext') do |t|
  t.cflags << ENV['CPPFLAGS'] ? ENV['CPPFLAGS'] : RbConfig::CONFIG["CPPFLAGS"]
  t.cflags << ENV['CFLAGS'] ? ENV['CFLAGS'] : RbConfig::CONFIG["CFLAGS"]
  t.ldflags << ENV['LDFLAGS'] ? ENV['LDFLAGS'] : RbConfig::CONFIG["LDFLAGS"]
end