Rakefile 444 B

123456789101112131415161718192021
  1. require "rake/extensiontask"
  2. require "rake/testtask"
  3. spec = Gem::Specification.load("google-protobuf.gemspec")
  4. Rake::ExtensionTask.new("protobuf_c", spec) do |ext|
  5. ext.ext_dir = "ext/google/protobuf_c"
  6. ext.lib_dir = "lib/google"
  7. end
  8. Rake::TestTask.new(:test => :build) do |t|
  9. t.test_files = FileList["tests/*.rb"]
  10. end
  11. Gem::PackageTask.new(spec) do |pkg|
  12. end
  13. task :build => [:clean, :compile]
  14. task :default => [:build]
  15. # vim:sw=2:et