summaryrefslogtreecommitdiffhomepage
path: root/tasks
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-07-08 23:41:55 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2013-07-08 23:41:55 -0700
commit6ed8b21264d5cb0e55488541824c356fd4aa28b9 (patch)
treefc95651ffe2957add7d92655a7656ccf2004222b /tasks
parentf774e3f9290058e8577e988096dfa0549d13bbeb (diff)
parente47e8a25120be53fd55d808210344aaea32c0a25 (diff)
downloadmruby-6ed8b21264d5cb0e55488541824c356fd4aa28b9.tar.gz
mruby-6ed8b21264d5cb0e55488541824c356fd4aa28b9.zip
Merge pull request #1356 from CaptainJet/master
Fix matching the host platform on the androideabi toolchain on windows.
Diffstat (limited to 'tasks')
-rw-r--r--tasks/toolchains/androideabi.rake13
1 files changed, 7 insertions, 6 deletions
diff --git a/tasks/toolchains/androideabi.rake b/tasks/toolchains/androideabi.rake
index a69fd1a9d..51897667e 100644
--- a/tasks/toolchains/androideabi.rake
+++ b/tasks/toolchains/androideabi.rake
@@ -41,20 +41,21 @@ MRuby::Toolchain.new(:androideabi) do |conf|
end
if ANDROID_STANDALONE_TOOLCHAIN == nil then
- if RUBY_PLATFORM.include?('darwin') then
+ case RUBY_PLATFORM
+ when /cygwin|mswin|mingw|bccwin|wince|emx/i
+ HOST_PLATFORM = 'windows'
+ when /darwin/i
HOST_PLATFORM = 'darwin-x86'
- elsif RUBY_PLATFORM.include?('linux') then
+ when /linux/i
HOST_PLATFORM = 'linux-x86'
- elsif RUBY_PLATFORM.include?('win') then
- HOST_PLATFORM = 'windows'
else
- # Unknown host platform.
+ # Unknown host platform
end
ANDROID_TARGET_PLATFORM = ENV['ANDROID_TARGET_PLATFORM'] || DEFAULT_ANDROID_TARGET_PLATFORM
path_to_toolchain = ANDROID_NDK_HOME + '/toolchains/'
- path_to_sysroot = ANDROID_NDK_HOME + '/platforms/' + ANDROID_TARGET_PLATFORM
+ path_to_sysroot = ANDROID_NDK_HOME + '/platforms/' + ANDROID_TARGET_PLATFORM
if ANDROID_TOOLCHAIN.downcase == 'gcc' then
case ANDROID_TARGET_ARCH.downcase
when 'arch-arm', 'arm' then