aboutsummaryrefslogtreecommitdiffhomepage
path: root/Rakefile
diff options
context:
space:
mode:
authorGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2016-02-03 01:12:14 +0100
committerGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2016-02-03 01:27:46 +0100
commit89d8ed1b9138529dac0cc79ccc8525b42f3db3d3 (patch)
tree89a0e7caef6a477ed9e00696712aa0ee67a33beb /Rakefile
parent8696d577d680deec004c1cd0a8826a2e33a83c36 (diff)
parentac1ac3ab3db628f7643532b515f62d113dcb9700 (diff)
Merge branch 'master' of github.com:grpc/grpc into make-ruby-installable
Conflicts: BUILD Makefile binding.gyp build.yaml gRPC.podspec grpc.gemspec package.json src/python/grpcio/grpc_core_dependencies.py templates/Makefile.template tools/doxygen/Doxyfile.core.internal tools/run_tests/sources_and_headers.json vsprojects/vcxproj/gpr/gpr.vcxproj vsprojects/vcxproj/gpr/gpr.vcxproj.filters
Diffstat (limited to 'Rakefile')
-rwxr-xr-xRakefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/Rakefile b/Rakefile
index 64aaff5fe5..3a30920fea 100755
--- a/Rakefile
+++ b/Rakefile
@@ -70,14 +70,14 @@ end
desc 'Build the Windows gRPC DLLs for Ruby'
task 'dlls' do
grpc_config = ENV['GRPC_CONFIG'] || 'opt'
- V = ENV['V'] || '0'
+ verbose = ENV['V'] || '0'
env = 'CPPFLAGS="-D_WIN32_WINNT=0x600 -DUNICODE -D_UNICODE" '
env += 'LDFLAGS=-static '
env += 'SYSTEM=MINGW32 '
env += 'EMBED_ZLIB=true '
env += 'BUILDDIR=/tmp '
- env += 'V=#{V} '
+ env += "V=#{verbose} "
out = '/tmp/libs/opt/grpc-0.dll'
w64 = { cross: 'x86_64-w64-mingw32', out: 'grpc_c.64.ruby' }
@@ -93,9 +93,9 @@ end
desc 'Build the gem file under rake_compiler_dock'
task 'gem:windows' do
- V = ENV['V'] || '0'
+ verbose = ENV['V'] || '0'
- docker_for_windows "bundle && rake cross native gem RUBY_CC_VERSION=2.3.0:2.2.2:2.1.6:2.0.0 GRPC_CONFIG=#{grpc_config} V=#{V}"
+ docker_for_windows "bundle && rake cross native gem RUBY_CC_VERSION=2.3.0:2.2.2:2.1.6:2.0.0 V=#{verbose}"
end
# Define dependencies between the suites.
@@ -105,6 +105,8 @@ task 'suite:bidi' => 'suite:wrapper'
task 'suite:server' => 'suite:wrapper'
task 'suite:pb' => 'suite:server'
+task 'gem:windows' => 'dlls'
+
desc 'Compiles the gRPC extension then runs all the tests'
task all: ['suite:idiomatic', 'suite:bidi', 'suite:pb', 'suite:server']
task default: :all