Sha256: 40a6ae9ee15bd4254e905d838d5d91998b06efd39b4251275a33267c542c53cd

Contents?: true

Size: 1.21 KB

Versions: 13

Compression:

Stored size: 1.21 KB

Contents

# To be used if the gem has extensions.
# If this task set is inclueded then you will need to also have
#
#   spec.add_development_dependency( 'rake-compiler', '~> 0.8.1' )
#
# in your top level rakefile
begin
  require 'rake/extensiontask'
  require 'rake/javaextensiontask'

  if RUBY_PLATFORM == "java" then

    Rake::JavaExtensionTask.new( This.name) do |ext|
      ext.ext_dir  = File.join( 'ext', This.name, "java" )
      ext.lib_dir  = File.join( 'lib', This.name )
      ext.gem_spec = This.java_gemspec
    end

  else

    Rake::ExtensionTask.new( This.name ) do |ext|
      ext.ext_dir   = File.join( 'ext', This.name, "c" )
      ext.lib_dir   = File.join( 'lib', This.name )
      ext.gem_spec  = This.ruby_gemspec

      ext.cross_compile  = true               # enable cross compilation (requires cross compile toolchain)
      ext.cross_platform = 'i386-mswin32'     # forces the Windows platform instead of the default one
                                              # configure options only for cross compile
    end
  end

  task :test_requirements => :compile
rescue LoadError
  This.task_warning( 'extension' )
end

CLOBBER << FileList["lib/**/*.{jar,so,bundle}"]
CLOBBER << FileList["lib/#{This.name}/{1.8,1.9,2.0}/"]

Version data entries

13 entries across 11 versions & 6 rubygems

Version Path
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/hitimes-1.2.2/tasks/extension.rake
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/hitimes-1.2.2/tasks/extension.rake
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/hitimes-1.2.2/tasks/extension.rake
scoot-0.0.4 .bundle/gems/ruby/2.2.0/gems/hitimes-1.2.2/tasks/extension.rake
vagrant-cloudstack-1.1.0 vendor/bundle/gems/hitimes-1.2.2/tasks/extension.rake
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/tasks/extension.rake
hitimes-1.2.2-java tasks/extension.rake
hitimes-1.2.2 tasks/extension.rake
amalgalite-1.3.0-x86-mswin32 tasks/extension.rake
amalgalite-1.3.0 tasks/extension.rake
hitimes-1.2.1-java tasks/extension.rake
hitimes-1.2.1-x86-mswin32 tasks/extension.rake
hitimes-1.2.1 tasks/extension.rake