Sha256: 6925ea90aa4da4b1b4ee7883c096967415b1c4c988400f310b6e803a9fa1eb14

Contents?: true

Size: 650 Bytes

Versions: 5

Compression:

Stored size: 650 Bytes

Contents

module FFI::Platform
  def self.ia32?
    ARCH == "i386"
  end

  def self.x64?
    ARCH == "x86_64"
  end
end

file 'ext/libuv/build' do
  system "git", "submodule", "update", "--init"
end

file 'ext/libuv/build/gyp' => 'ext/libuv/build' do
  system "svn", "export", "-r1214", "http://gyp.googlecode.com/svn/trunk", "ext/libuv/build/gyp"
end

CLEAN.include('ext/libuv/build/gyp')

if FFI::Platform.windows?
  require File.join File.expand_path("../", __FILE__), 'tasks/win'
elsif FFI::Platform.mac?
  require File.join File.expand_path("../", __FILE__), 'tasks/mac'
else # UNIX
  require File.join File.expand_path("../", __FILE__), 'tasks/unix'
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
uvrb-0.2.0 lib/uv/tasks.rb
uvrb-0.1.4 lib/uv/tasks.rb
uvrb-0.1.3 lib/uv/tasks.rb
uvrb-0.1.2 lib/uv/tasks.rb
uvrb-0.1.1 lib/uv/tasks.rb