Sha256: e84564bed18d3162600c727283dd1bf0d267098b985496bb677d7ddf1f05e1cb

Contents?: true

Size: 757 Bytes

Versions: 1

Compression:

Stored size: 757 Bytes

Contents

require "bundler/gem_tasks"
require "rspec/core/rake_task"
require "rake/extensiontask"

RSpec::Core::RakeTask.new(:spec)

task :default => :spec

spec = Gem::Specification.load("expressir.gemspec")

# add your default gem packing task
Gem::PackageTask.new(spec) do |pkg|
end

ext = Rake::ExtensionTask.new("express_parser", spec) do |ext|
  ext.ext_dir = "ext/express-parser"
end

# workaround for:
#  Don't know how to build task 'tmp/RUBY_PLATFORM/stage/ext/express-parser/antlr4-upstream' (see --tasks)
antlr_dir = File.join ext.ext_dir, 'antlr4-upstream'
stage_dir = File.join ext.tmp_dir, RUBY_PLATFORM, 'stage'
antrl4_out_dir = File.join stage_dir, antlr_dir
file antrl4_out_dir do |t|
  FileUtils.ln_s File.expand_path(antlr_dir), antrl4_out_dir
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
expressir-0.2.4 Rakefile