aboutsummaryrefslogtreecommitdiffhomepage
path: root/ruby/Rakefile
blob: ae7d8059e38aff24658e88a2665b09d30f333ec7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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