Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Perform proper Make of C extensions

Signed-off-by: Alex Coles <alex@alexbcoles.com>
  • Loading branch information...
commit 127f63d8d9eddbc6d59e6285fd53d1e66e636647 1 parent 670bfec
@myabc authored
Showing with 18 additions and 2 deletions.
  1. +5 −1 .gitignore
  2. +13 −1 ext/Rakefile
View
6 .gitignore
@@ -1,6 +1,10 @@
.DS_Store
.gitignore
Gemfile.lock
+ext/jrubytesting/Makefile
+ext/jrubytesting/*.bundle
+ext/jrubytesting/*.o
ext/java/**/*.class
-tmp/*
+lib/**/*.bundle
lib/**/*.jar
+tmp/*
View
14 ext/Rakefile
@@ -11,7 +11,19 @@ task :java_compile do
end
task :c_compile do
- ruby './jrubytesting/extconf.rb'
+ require 'rubygems/ext'
+
+ gem_dir = File.expand_path(File.dirname(__FILE__) + '../../')
+ extension_dir = File.join(gem_dir, File.dirname('ext/jrubytesting/extconf.rb'))
+ dest_path = File.join(gem_dir, 'lib/jrubytesting')
+
+ puts 'Extensiondir' << extension_dir.to_s
+ puts 'gem dir' << File.expand_path(gem_dir.to_s)
+
+ Dir.chdir(extension_dir) do
+ results = Gem::Ext::ExtConfBuilder.build('extconf.rb', gem_dir, dest_path, [])
+ say results.join("\n") if Gem.configuration.really_verbose
+ end
end
def is_jruby?
Please sign in to comment.
Something went wrong with that request. Please try again.