91473dcebf
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'.
22 lines
444 B
Ruby
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
|