Sha256: 5fcfa221444f0b16621526bb1b1964eb2deb1854c7b69ecef6dc111030110051

Contents?: true

Size: 815 Bytes

Versions: 16

Compression:

Stored size: 815 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
    result = true
    if not File.directory?('ext/libuv/build/gyp')
        result = system "svn", "export", "-r1824", "http://gyp.googlecode.com/svn/trunk", "ext/libuv/build/gyp"
    end
    raise 'unable to download gyp' unless result
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

16 entries across 16 versions & 1 rubygems

Version Path
libuv-1.2.0 lib/libuv/ext/tasks.rb
libuv-1.1.3 lib/libuv/ext/tasks.rb
libuv-1.1.2 lib/libuv/ext/tasks.rb
libuv-1.1.1 lib/libuv/ext/tasks.rb
libuv-1.1.0 lib/libuv/ext/tasks.rb
libuv-1.0.3 lib/libuv/ext/tasks.rb
libuv-1.0.2 lib/libuv/ext/tasks.rb
libuv-1.0.0 lib/libuv/ext/tasks.rb
libuv-0.12.4 lib/libuv/ext/tasks.rb
libuv-0.12.3 lib/libuv/ext/tasks.rb
libuv-0.12.2 lib/libuv/ext/tasks.rb
libuv-0.12.0 lib/libuv/ext/tasks.rb
libuv-0.11.21 lib/libuv/ext/tasks.rb
libuv-0.11.20 lib/libuv/ext/tasks.rb
libuv-0.11.19 lib/libuv/ext/tasks.rb
libuv-0.11.18 lib/libuv/ext/tasks.rb