Sha256: 81747d367d1a82d903eabec682f1c8c6ceec11fb719c3b0b58fe8d8825a75325

Contents?: true

Size: 518 Bytes

Versions: 1

Compression:

Stored size: 518 Bytes

Contents

require "bundler/gem_tasks"
require "rspec/core/rake_task"

RSpec::Core::RakeTask.new(:spec)

task :default => [:build, :spec]

desc 'Compile the extension from source ready for packaging'
task :build_from_source do
  cargo_dir = File.expand_path('../../../libpasta/libpasta-capi/', __FILE__)
  pb_loc = File.expand_path('../../../pasta-bindings/', __FILE__)
  Dir.chdir(pb_loc) do
    sh "USE_STATIC=1 STATIC_LIBPASTA=#{cargo_dir}/target/release/libpasta.a make ruby"
  end
  cp "#{pb_loc}/ruby/pasta.so", "lib/"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
libpasta-0.1.0.pre.rc1-x86_64-linux Rakefile