Sha256: 06c18fed9496c8b7d403a9e927e266997307d69c39350ad81aa1268266fb81ec

Contents?: true

Size: 1.14 KB

Versions: 1

Compression:

Stored size: 1.14 KB

Contents

require 'rubygems'
gem 'hoe', '>= 2.1.0'
require 'hoe'
require 'fileutils'
begin
  require './lib/v8' 
rescue LoadError
  #it will fail to load if we don't have the extensions compiled yet
end

gem 'rake-compiler', '>= 0.4.1'
require "rake/extensiontask"


Hoe.plugin :newgem

# Generate all the Rake tasks
# Run 'rake -T' to see list of generated tasks (from gem root directory)
$hoe = Hoe.spec 'therubyracer' do
  developer 'Charles Lowell', 'cowboyd@thefrontside.net'
  developer 'Bill Robertson', 'billrobertson42@gmail.com'
  self.rubyforge_name = self.name
  self.spec_extras = { :extensions => ["ext/v8/extconf.rb"] }
  self.clean_globs << "lib/v8/*.{o,so,bundle,a,log,dll}"
end

Rake::ExtensionTask.new("v8", $hoe.spec) do |ext|
  ext.lib_dir = "lib/v8"
  ext.source_pattern = "*.{cpp,h}"
  ext.config_options << "--with-v8-include=#{ENV['V8_HOME']}/include"
  ext.config_options << "--with-v8-lib=#{ENV['V8_HOME']}"
end

require 'newgem/tasks'
Dir['tasks/**/*.rake'].each { |t| load t }

# TODO - want other tests/tasks run by default? Add them to the list
# remove_task :default
# task :default => [:spec, :features]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
therubyracer-0.4.6 Rakefile