Permalink
Browse files

Start supporting mswin64

mswin32 ->
mswin64

We need more works, maybe.
  • Loading branch information...
1 parent 97fa2c5 commit d67d833f9f4b59f5da27243e2bb252e7bbb51fe6 @kou kou committed Mar 19, 2013
@@ -56,7 +56,7 @@
rcairo_options = {}
rcairo_source_dir_names = ["rcairo"]
-if /mingw|cygwin|mswin32/ =~ RUBY_PLATFORM
+if /mingw|cygwin|mswin/ =~ RUBY_PLATFORM
rcairo_source_dir_names.unshift("rcairo.win32")
end
rcairo_source_dir_names.each do |rcairo_source_dir_name|
View
@@ -29,7 +29,7 @@
$ruby = arg_config("--ruby", $ruby)
rm = "rm -f"
-if /mswin32/ =~ RUBY_PLATFORM
+if /mswin/ =~ RUBY_PLATFORM
rm = "del"
end
@@ -100,7 +100,7 @@
#
def run_make_in_sub_dir(sub_dir, target)
- if /mswin32/ =~ RUBY_PLATFORM
+ if /mswin/ =~ RUBY_PLATFORM
" $(COMMAND) '#{sub_dir}' $(MAKE) #{target}"
else
" (cd '#{sub_dir}' && $(MAKE) #{target})"
View
@@ -44,7 +44,7 @@
rcairo_options = {}
rcairo_source_dir_names = ["rcairo"]
-if /mingw|cygwin|mswin32/ =~ RUBY_PLATFORM
+if /mingw|cygwin|mswin/ =~ RUBY_PLATFORM
rcairo_source_dir_names.unshift("rcairo.win32")
end
rcairo_source_dir_names.each do |rcairo_source_dir_name|
View
@@ -154,12 +154,12 @@ def add_depend_package_path(target_name, target_source_dir, target_build_dir)
end
case RUBY_PLATFORM
- when /cygwin|mingw|mswin32/
+ when /cygwin|mingw|mswin/
case RUBY_PLATFORM
when /cygwin|mingw/
$LDFLAGS << " -L#{target_build_dir}"
$libs << " -lruby-#{target_name}"
- when /mswin32/
+ when /mswin/
$DLDFLAGS << " /libpath:#{target_build_dir}"
$libs << " libruby-#{target_name}.lib"
end
@@ -257,7 +257,7 @@ def create_makefile_at_srcdir(pkg_name, srcdir, defs = nil)
end
def run_make_in_sub_dirs_command(command, sub_dirs)
- if /mswin32/ =~ RUBY_PLATFORM
+ if /mswin/ =~ RUBY_PLATFORM
sub_dirs.collect do |dir|
<<-EOM.chmop
@cd #{dir}
@@ -288,7 +288,7 @@ def create_top_makefile(sub_dirs=["src"])
#{run_make_in_sub_dirs_command("clean", sub_dirs)}
EOM
- if /mswin32/ =~ RUBY_PLATFORM
+ if /mswin/ =~ RUBY_PLATFORM
makefile.print(<<-EOM)
@if exist extconf.h del extconf.h
@if exist conftest.* del conftest.*
@@ -414,7 +414,7 @@ def check_cairo(options={})
end
unless rcairo_source_dir.nil?
- if /mingw|cygwin|mswin32/ =~ RUBY_PLATFORM
+ if /mingw|cygwin|mswin/ =~ RUBY_PLATFORM
options = {}
build_dir = "tmp/#{RUBY_PLATFORM}/cairo/#{RUBY_VERSION}"
if File.exist?(File.join(rcairo_source_dir, build_dir))
@@ -41,7 +41,7 @@
rcairo_options = {}
rcairo_source_dir_names = ["rcairo"]
-if /mingw|cygwin|mswin32/ =~ RUBY_PLATFORM
+if /mingw|cygwin|mswin/ =~ RUBY_PLATFORM
rcairo_source_dir_names.unshift("rcairo.win32")
end
rcairo_source_dir_names.each do |rcairo_source_dir_name|
View
@@ -44,7 +44,7 @@
rcairo_options = {}
rcairo_source_dir_names = ["rcairo"]
-if /mingw|cygwin|mswin32/ =~ RUBY_PLATFORM
+if /mingw|cygwin|mswin/ =~ RUBY_PLATFORM
rcairo_source_dir_names.unshift("rcairo.win32")
end
rcairo_source_dir_names.each do |rcairo_source_dir_name|
View
@@ -44,7 +44,7 @@
rcairo_options = {}
rcairo_source_dir_names = ["rcairo"]
-if /mingw|cygwin|mswin32/ =~ RUBY_PLATFORM
+if /mingw|cygwin|mswin/ =~ RUBY_PLATFORM
rcairo_source_dir_names.unshift("rcairo.win32")
end
rcairo_source_dir_names.each do |rcairo_source_dir_name|
@@ -41,7 +41,7 @@
rcairo_options = {}
rcairo_source_dir_names = ["rcairo"]
-if /mingw|cygwin|mswin32/ =~ RUBY_PLATFORM
+if /mingw|cygwin|mswin/ =~ RUBY_PLATFORM
rcairo_source_dir_names.unshift("rcairo.win32")
end
rcairo_source_dir_names.each do |rcairo_source_dir_name|
@@ -41,7 +41,7 @@
rcairo_options = {}
rcairo_source_dir_names = ["rcairo"]
-if /mingw|cygwin|mswin32/ =~ RUBY_PLATFORM
+if /mingw|cygwin|mswin/ =~ RUBY_PLATFORM
rcairo_source_dir_names.unshift("rcairo.win32")
end
rcairo_source_dir_names.each do |rcairo_source_dir_name|
@@ -44,7 +44,7 @@
rcairo_options = {}
rcairo_source_dir_names = ["rcairo"]
-if /mingw|cygwin|mswin32/ =~ RUBY_PLATFORM
+if /mingw|cygwin|mswin/ =~ RUBY_PLATFORM
rcairo_source_dir_names.unshift("rcairo.win32")
end
rcairo_source_dir_names.each do |rcairo_source_dir_name|
@@ -41,7 +41,7 @@
rcairo_options = {}
rcairo_source_dir_names = ["rcairo"]
-if /mingw|cygwin|mswin32/ =~ RUBY_PLATFORM
+if /mingw|cygwin|mswin/ =~ RUBY_PLATFORM
rcairo_source_dir_names.unshift("rcairo.win32")
end
rcairo_source_dir_names.each do |rcairo_source_dir_name|
@@ -41,7 +41,7 @@
rcairo_options = {}
rcairo_source_dir_names = ["rcairo"]
-if /mingw|cygwin|mswin32/ =~ RUBY_PLATFORM
+if /mingw|cygwin|mswin/ =~ RUBY_PLATFORM
rcairo_source_dir_names.unshift("rcairo.win32")
end
rcairo_source_dir_names.each do |rcairo_source_dir_name|

0 comments on commit d67d833

Please sign in to comment.