File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ gemspec name: 'concurrent-ruby-edge'
6
6
group :development do
7
7
gem 'rake' , '~> 10.4.2'
8
8
gem 'rake-compiler' , '~> 0.9.5'
9
+ gem 'rake-compiler-dock' , '~> 0.4.0'
9
10
gem 'gem-compiler' , '~> 0.3.0'
10
11
gem 'benchmark-ips' , '~> 2.2.0'
11
12
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ elsif Concurrent.allow_c_extensions?
70
70
}
71
71
platforms . each do |platform , prefix |
72
72
task "copy:#{ EXT_NAME } :#{ platform } :#{ ruby_version } " do |t |
73
- %w[ lib tmp/#{platform}/stage/lib ] . each do |dir |
73
+ [ " lib" , " tmp/#{ platform } /stage/lib/concurrent" ] . each do |dir |
74
74
so_file = "#{ dir } /#{ ruby_version [ /^\d +\. \d +/ ] } /#{ EXT_NAME } .so"
75
75
if File . exists? ( so_file )
76
76
sh "#{ prefix } -strip -S #{ so_file } "
87
87
task :clean do
88
88
rm_rf 'pkg/classes'
89
89
rm_rf 'tmp'
90
- rm_rf 'lib/concurrent/1.9'
91
- rm_rf 'lib/concurrent/2.0'
92
- rm_rf 'lib/concurrent/2.1'
90
+ rm_rf Dir . glob ( 'lib/concurrent/1.?' )
91
+ rm_rf Dir . glob ( 'lib/concurrent/2.?' )
93
92
rm_f Dir . glob ( './**/*.so' )
94
93
rm_f Dir . glob ( './**/*.bundle' )
95
94
rm_f Dir . glob ( './lib/*.jar' )
@@ -135,6 +134,15 @@ namespace :build do
135
134
sh 'mv *.gem pkg/'
136
135
end
137
136
end
137
+
138
+ desc "Build the windows binary gems per rake-compiler-dock"
139
+ task :windows do
140
+ require 'rake_compiler_dock'
141
+ RakeCompilerDock . sh <<-EOT
142
+ bundle --without="development testing" &&
143
+ rake cross native gem RUBY_CC_VERSION=1.9.3:2.0.0:2.1.6:2.2.2
144
+ EOT
145
+ end
138
146
end
139
147
140
148
if Concurrent . on_jruby?
You can’t perform that action at this time.
0 commit comments