Sha256: f4cba0497741d20d806dafbb3d3e8cd8d0e97bf26b672656592ce71a5c0f4e7a

Contents?: true

Size: 762 Bytes

Versions: 16

Compression:

Stored size: 762 Bytes

Contents

# frozen_string_literal: true

file "ext/libuv/Release/libuv.#{FFI::Platform::LIBSUFFIX}" do
    target_arch = 'ia32'
    target_arch = 'x64' if FFI::Platform.x64?

    Dir.chdir("ext/libuv") do |path|
        system 'git', 'clone', 'https://chromium.googlesource.com/external/gyp', 'build/gyp'
        system 'vcbuild.bat', 'shared', 'release', target_arch
    end
end

file "ext/libuv/lib/libuv.#{FFI::Platform::LIBSUFFIX}" => "ext/libuv/Release/libuv.#{FFI::Platform::LIBSUFFIX}" do
    FileUtils.mkdir('ext/libuv/lib') unless File.directory?('ext/libuv/lib')
    FileUtils.cp("ext/libuv/Release/libuv.#{FFI::Platform::LIBSUFFIX}", "ext/libuv/lib/libuv.#{FFI::Platform::LIBSUFFIX}")
end

CLOBBER.include("ext/libuv/Release/libuv.#{FFI::Platform::LIBSUFFIX}")

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
libuv-3.2.3 lib/libuv/ext/tasks/win.rb
libuv-3.2.2 lib/libuv/ext/tasks/win.rb
libuv-3.2.1 lib/libuv/ext/tasks/win.rb
libuv-3.2.0 lib/libuv/ext/tasks/win.rb
libuv-3.1.9 lib/libuv/ext/tasks/win.rb
libuv-3.1.8 lib/libuv/ext/tasks/win.rb
libuv-3.1.7 lib/libuv/ext/tasks/win.rb
libuv-3.1.6 lib/libuv/ext/tasks/win.rb
libuv-3.1.5 lib/libuv/ext/tasks/win.rb
libuv-3.1.4 lib/libuv/ext/tasks/win.rb
libuv-3.1.3 lib/libuv/ext/tasks/win.rb
libuv-3.1.2 lib/libuv/ext/tasks/win.rb
libuv-3.1.1 lib/libuv/ext/tasks/win.rb
libuv-3.1.0 lib/libuv/ext/tasks/win.rb
libuv-3.0.1 lib/libuv/ext/tasks/win.rb
libuv-3.0.0 lib/libuv/ext/tasks/win.rb