Sha256: f039d3efbe9daee735aff1b77d52650cb57db59ac1f3914754c65aceb98d249b

Contents?: true

Size: 1.37 KB

Versions: 25

Compression:

Stored size: 1.37 KB

Contents

CLEAN.include [
  'tmp',
  '**/*.{o,obj,class,pdb,lib,def,exp,log,rbc}',
  'ext/redcloth_scan/**/redcloth_*.rb',
  'ext/redcloth_scan/Makefile',  'ext/redcloth_scan/extconf.rb',
]
CLOBBER.include [
  'pkg',
  '**/*.{c,java}',
  'lib/**/*.{bundle,so,o,obj,pdb,lib,def,exp,jar}',
  'lib/redcloth_scan.rb',
]

# Load the Gem specification for the current platform (Ruby or JRuby).
def gemspec(platform = RUBY_PLATFORM[/java/] || 'ruby')
  Gem::Specification.load(File.expand_path('../../redcloth.gemspec', __FILE__))
end

require 'rake/extensiontask'
require 'rake/javaextensiontask'
require File.dirname(__FILE__) + '/ragel_extension_task'

if defined?(JRUBY_VERSION)
  Rake::JavaRagelExtensionTask.new('redcloth_scan', gemspec)
else
  extconf = "ext/redcloth_scan/extconf.rb"
  file extconf do
    FileUtils.mkdir(File.dirname(extconf)) unless File.directory?(File.dirname(extconf))
    File.open(extconf, "w") do |io|
      io.write(<<-EOF)
require 'mkmf'
CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags']
$CFLAGS << ' -O0 -Wall ' if CONFIG['CC'] =~ /gcc/
dir_config("redcloth_scan")
have_library("c", "main")
create_makefile("redcloth_scan")
      EOF
    end
  end

  Rake::RagelExtensionTask.new("redcloth_scan", gemspec) do |ext|
    if ENV['RUBY_CC_VERSION']
      ext.cross_compile = true
      ext.cross_platform = ['i386-mingw32', 'i386-mswin32-60']
    end
  end
end

Version data entries

25 entries across 25 versions & 6 rubygems

Version Path
parity-RedCloth-4.2.13 tasks/compile.rake
parity-RedCloth-4.2.12 tasks/compile.rake
parity-RedCloth-4.2.11 tasks/compile.rake
parity-RedCloth-4.2.10 tasks/compile.rake
parity-RedCloth-4.2.9 tasks/compile.rake
YSRedCloth-4.2.18 tasks/compile.rake
assplecake-RedCloth-4.2.10 tasks/compile.rake
YSRedCloth-4.2.17 tasks/compile.rake
YSRedCloth-4.2.16 tasks/compile.rake
gv-RedCloth-4.2.9 tasks/compile.rake
YSRedCloth-4.2.15 tasks/compile.rake
YSRedCloth-4.2.14 tasks/compile.rake
YSRedCloth-4.2.13 tasks/compile.rake
YSRedCloth-4.2.12 tasks/compile.rake
YSRedCloth-4.2.11 tasks/compile.rake
YSRedCloth-4.2.10 tasks/compile.rake
YSRedCloth-4.2.9 tasks/compile.rake
radiant-1.0.0 ruby-debug/ruby/1.8/gems/RedCloth-4.2.9/tasks/compile.rake
assplecake-RedCloth-4.2.9 tasks/compile.rake
RedCloth-4.2.9 tasks/compile.rake