1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
# :build
# :install
# :release
require "bundler/gem_tasks"
# :clean
# :clobber
# :compile
# :compile:serialport
require "rake/extensiontask"
CLOBBER << FileList["doc"]
CLOBBER << FileList["pkg"]
GEMSPEC = eval File.read File.expand_path("../serialport.gemspec", __FILE__)
Rake::ExtensionTask.new "serialport", GEMSPEC do |ext|
ext.lib_dir = File.join(*['lib', ENV['FAT_DIR']].compact)
ext.ext_dir = "ext/native"
end
# add your default gem packing task
Gem::PackageTask.new(GEMSPEC) do |pkg|
end
task :default => [:clean, :clobber, :compile, :test]
|