protobuf/ruby/Rakefile
Chris Fallin 91473dcebf Rename protobuf Ruby module to google/protobuf and rework its build
system. The Ruby module build now uses an amalgamated distribution of
upb, and successfully builds a Ruby gem called 'google-protobuf' with
module 'google/protobuf'.
2014-12-12 15:58:26 -08:00

22 lines
444 B
Ruby

require "rake/extensiontask"
require "rake/testtask"
spec = Gem::Specification.load("google-protobuf.gemspec")
Rake::ExtensionTask.new("protobuf_c", spec) do |ext|
ext.ext_dir = "ext/google/protobuf_c"
ext.lib_dir = "lib/google"
end
Rake::TestTask.new(:test => :build) do |t|
t.test_files = FileList["tests/*.rb"]
end
Gem::PackageTask.new(spec) do |pkg|
end
task :build => [:clean, :compile]
task :default => [:build]
# vim:sw=2:et