forked from avalanche123/uvrb
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(build:windows) include pre-compiled binary
- Loading branch information
Stephen von Takach
committed
Nov 10, 2017
1 parent
70362de
commit a618ffe
Showing
3 changed files
with
28 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,28 @@ | ||
|
||
require 'fileutils' | ||
|
||
if ENV.has_key?('USE_GLOBAL_LIBUV') | ||
exit(0) | ||
exit(0) | ||
else | ||
require 'rubygems' | ||
require 'ffi' | ||
require 'rake/clean' | ||
require '../lib/libuv/ext/tasks' | ||
require 'rubygems' | ||
require 'ffi' | ||
require 'rake/clean' | ||
require '../lib/libuv/ext/tasks' | ||
|
||
Dir.chdir File.expand_path("../", __FILE__) | ||
Dir.chdir '..' | ||
Dir.chdir File.expand_path("../", __FILE__) | ||
Dir.chdir '..' | ||
|
||
task :default => :libuv | ||
task :default => :libuv | ||
|
||
desc "Compile libuv from submodule" | ||
task :libuv => ["ext/libuv/lib/libuv.#{FFI::Platform::LIBSUFFIX}"] | ||
if FFI::Platform.windows? | ||
task :libuv do | ||
FileUtils.mkdir('ext/libuv/lib') | ||
FileUtils.cp 'ext/libuv.dll', 'ext/libuv/lib/libuv.dll' | ||
end | ||
else | ||
desc "Compile libuv from submodule" | ||
task :libuv => ["ext/libuv/lib/libuv.#{FFI::Platform::LIBSUFFIX}"] | ||
|
||
CLOBBER.include("ext/libuv/lib/libuv.#{FFI::Platform::LIBSUFFIX}") | ||
CLOBBER.include("ext/libuv/lib/libuv.#{FFI::Platform::LIBSUFFIX}") | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters