Sha256: 3b500c6a775ca0205d64f77baff62f96561e56aade35e46454d55dc4d407fe20
Contents?: true
Size: 1.11 KB
Versions: 6
Compression:
Stored size: 1.11 KB
Contents
#!/usr/bin/env ruby require 'mkmf' require 'fileutils' require 'pathname' require 'rbconfig' include Config versionfile = Pathname.new( __FILE__ ).dirname + 'VERSION' version = versionfile.read.chomp # Thanks to Daniel Berger for helping me out with this. :) if CONFIG['host_os'].match( 'mswin' ) $CFLAGS << ' -I.' << ' -W3' << ' -Zi' else $CFLAGS << ' -I.' << ' -Wall' end $CPPFLAGS << %Q{ -DVERSION=\\"#{version}\\"} # Add my own debugging hooks if building for me if ENV['DEBUGGING_BUILD'] $CFLAGS << ' -ggdb' << ' -DDEBUG' end def fail( *messages ) $stderr.puts( *messages ) exit( 1 ) end # Stuff from configure.sh have_func( "srand" ) || have_func( "srandom" ) have_func( "random" ) || have_func( "rand" ) unless have_func( "strcasecmp" ) || have_func( "stricmp" ) fail( "This extension requires either strcasecmp() or stricmp()" ) end unless have_func( "strncasecmp" ) || have_func( "strnicmp" ) fail( "This extensions requires either strncasecmp() or strnicmp()" ) end have_header( 'mkdio.h' ) or fail( "missing mkdio.h" ) create_makefile( 'bluecloth_ext' ) FileUtils.rm_rf( 'conftest.dSYM' ) # MacOS X cleanup
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
bluecloth-2.0.0 | ext/extconf.rb |
bluecloth-2.0.1 | ext/extconf.rb |
bluecloth-2.0.2 | ext/extconf.rb |
bluecloth-2.0.3 | ext/extconf.rb |
bluecloth-2.0.4 | ext/extconf.rb |
bluecloth-2.0.5 | ext/extconf.rb |