Sha256: 20f85f8778fad9e7f0b7dd14d50c36bc89405ecdc01f918788b463bad6910f97

Contents?: true

Size: 556 Bytes

Versions: 17

Compression:

Stored size: 556 Bytes

Contents

# encoding: UTF-8
ENV['RC_ARCHS'] = '' if RUBY_PLATFORM =~ /darwin/

require 'mkmf'
require 'rbconfig'

def define(macro, value = nil)
  $defs.push("-D #{[macro.upcase, value].compact.join('=')}")
end

$CFLAGS  << " #{ENV["CFLAGS"]}"
$LDFLAGS << " #{ENV["LDFLAGS"]}"
$LIBS    << " #{ENV["LIBS"]}"

$CFLAGS << ' -std=c99 -Wall -funroll-loops -Wextra '
$CFLAGS << ' -O0 -ggdb3 -pedantic ' if ENV['DEBUG']

# have_library('yajl', 'yajl_parse', 'yajl/yajl_parse.h')

define("READ_BUFSIZE", "8192")

create_header("yaji_config.h")
create_makefile("parser_ext")

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
yaji-0.3.6 ext/yaji/extconf.rb
yaji-0.3.6-x64-mingw32 ext/yaji/extconf.rb
yaji-0.3.6-x86-mingw32 ext/yaji/extconf.rb
yaji-0.3.5 ext/yaji/extconf.rb
yaji-0.3.5-x64-mingw32 ext/yaji/extconf.rb
yaji-0.3.5-x86-mingw32 ext/yaji/extconf.rb
yaji-0.3.4 ext/yaji/extconf.rb
yaji-0.3.4-x86-mingw32 ext/yaji/extconf.rb
yaji-0.3.3 ext/yaji/extconf.rb
yaji-0.3.3-x86-mingw32 ext/yaji/extconf.rb
yaji-0.3.2-x86-mingw32 ext/yaji/extconf.rb
yaji-0.3.2 ext/yaji/extconf.rb
yaji-0.3.1 ext/yaji/extconf.rb
yaji-0.3.0-x86-mingw32 ext/yaji/extconf.rb
yaji-0.3.0 ext/yaji/extconf.rb
yaji-0.2.3-x86-mingw32 ext/yaji/extconf.rb
yaji-0.2.3 ext/yaji/extconf.rb