Sha256: 53cd516e1a29624a6925154032477061244e49d6faaa557a358ff8a6cb0ad2a5

Contents?: true

Size: 1013 Bytes

Versions: 1

Compression:

Stored size: 1013 Bytes

Contents

file 'ext/libuv/uv.xcodeproj' => 'ext/libuv/build/gyp' do
    target_arch = 'ia32'if FFI::Platform.ia32?
    target_arch = 'x64' if FFI::Platform.x64?

    abort "Don't know how to build on #{FFI::Platform::ARCH} (yet)" unless target_arch

    Dir.chdir("ext/libuv") do |path|
        system "./gyp_uv.py -f xcode -Dtarget_arch=#{target_arch} -Dlibrary=shared_library -Dcomponent=shared_library"
    end
end

file "ext/libuv/build/Release/libuv.#{FFI::Platform::LIBSUFFIX}" => 'ext/libuv/uv.xcodeproj' do
    Dir.chdir("ext/libuv") do |path|
        system 'xcodebuild -project uv.xcodeproj -configuration Release -target libuv'
    end
end

file "ext/libuv.#{FFI::Platform::LIBSUFFIX}" => "ext/libuv/build/Release/libuv.#{FFI::Platform::LIBSUFFIX}" do
    File.symlink("libuv/build/Release/libuv.#{FFI::Platform::LIBSUFFIX}", "ext/libuv.#{FFI::Platform::LIBSUFFIX}")
end

CLEAN.include('ext/libuv/uv.xcodeproj')
CLOBBER.include("ext/libuv/build/Release/libuv.#{FFI::Platform::LIBSUFFIX}")

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
libuv-0.11.4 lib/libuv/ext/tasks/mac.rb