Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: third_party/protobuf/ruby/Rakefile

Issue 1842653006: Update //third_party/protobuf to version 3. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 require "rubygems"
2 require "rubygems/package_task"
3 require "rake/extensiontask" unless RUBY_PLATFORM == "java"
4 require "rake/testtask"
5
6 spec = Gem::Specification.load("google-protobuf.gemspec")
7
8 if RUBY_PLATFORM == "java"
9 if `which mvn` == ''
10 raise ArgumentError, "maven needs to be installed"
11 end
12 task :clean do
13 system("mvn clean")
14 end
15
16 task :compile do
17 system("mvn package")
18 end
19 else
20 Rake::ExtensionTask.new("protobuf_c", spec) do |ext|
21 ext.ext_dir = "ext/google/protobuf_c"
22 ext.lib_dir = "lib/google"
23 end
24 end
25
26 Gem::PackageTask.new(spec) do |pkg|
27 end
28
29 Rake::TestTask.new(:test => :build) do |t|
30 t.test_files = FileList["tests/*.rb"]
31 end
32
33 task :build => [:clean, :compile]
34 task :default => [:build]
35
36 # vim:sw=2:et
OLDNEW
« no previous file with comments | « third_party/protobuf/ruby/README.md ('k') | third_party/protobuf/ruby/ext/google/protobuf_c/defs.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698