Skip to content

Commit

Permalink
Fix extension building tasks.
Browse files Browse the repository at this point in the history
  • Loading branch information
oggy committed Mar 14, 2011
1 parent d612b70 commit 9bf2789
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 18 deletions.
15 changes: 5 additions & 10 deletions .gitignore
Expand Up @@ -3,17 +3,12 @@ lib/looksee/mri.bundle
lib/looksee/rbx.bundle lib/looksee/rbx.bundle
lib/looksee/jruby.jar lib/looksee/jruby.jar


ext/mri/Makefile ext/Makefile
ext/mri/*.o
ext/mri/*.so
ext/mri/*.bundle
ext/mri/*.dll


ext/rbx/Makefile ext/*.o
ext/rbx/*.o ext/*.so
ext/rbx/*.so ext/*.bundle
ext/rbx/*.bundle ext/*.dll
ext/rbx/*.dll


ext/jruby/**/*.class ext/jruby/**/*.class


Expand Down
11 changes: 5 additions & 6 deletions Rakefile
@@ -1,10 +1,9 @@
require 'ritual' require 'ritual'


case (Object.const_defined?(:RUBY_ENGINE) ? RUBY_ENGINE : 'ruby') ruby_engine = (Object.const_defined?(:RUBY_ENGINE) ? RUBY_ENGINE : 'ruby')
when 'ruby' if ruby_engine == 'jruby'
extension :mri
when 'rbx'
extension :rbx
when 'jruby'
extension :jruby, :type => :jruby extension :jruby, :type => :jruby
else
name = ruby_engine == 'ruby' ? 'mri' : ruby_engine
extension :build_as => "ext/#{name}", :install_as => "lib/looksee/#{name}"
end end
4 changes: 2 additions & 2 deletions looksee.gemspec
Expand Up @@ -22,8 +22,8 @@ Gem::Specification.new do |s|
s.require_path = 'lib' s.require_path = 'lib'


s.specification_version = 3 s.specification_version = 3
s.add_development_dependency 'ritual', '>= 0.2.0' s.add_development_dependency 'ritual', '0.2.1'
s.add_development_dependency 'rspec', '>= 2.0.0' s.add_development_dependency 'rspec', '2.5.0'
s.add_development_dependency 'mocha' s.add_development_dependency 'mocha'
s.add_development_dependency 'wirble' s.add_development_dependency 'wirble'
end end

0 comments on commit 9bf2789

Please sign in to comment.