diff options
| author | Reckordp <[email protected]> | 2020-04-03 20:34:00 +0700 |
|---|---|---|
| committer | Reckordp <[email protected]> | 2020-04-03 20:34:00 +0700 |
| commit | 707933aa8e7cbaa7d179c450bcdcfd8adc7c0146 (patch) | |
| tree | 92016e0a1b4f88b5d940825a07af53753f9d52a4 /mrbgems/mruby-io/mrbgem.rake | |
| parent | 068b16a352bc19a403ac24fe9d2d9b69cabe2e0b (diff) | |
| download | mruby-707933aa8e7cbaa7d179c450bcdcfd8adc7c0146.tar.gz mruby-707933aa8e7cbaa7d179c450bcdcfd8adc7c0146.zip | |
Helper for link window's library
Diffstat (limited to 'mrbgems/mruby-io/mrbgem.rake')
| -rw-r--r-- | mrbgems/mruby-io/mrbgem.rake | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/mrbgems/mruby-io/mrbgem.rake b/mrbgems/mruby-io/mrbgem.rake index 80835df9c..a556ad163 100644 --- a/mrbgems/mruby-io/mrbgem.rake +++ b/mrbgems/mruby-io/mrbgem.rake @@ -5,26 +5,10 @@ MRuby::Gem::Specification.new('mruby-io') do |spec| spec.cc.include_paths << "#{build.root}/src" - case RUBY_PLATFORM - when /mingw|mswin|msys/ - really_for_window = true - - if build.kind_of?(MRuby::CrossBuild) - if %w(x86_64-w64-mingw32 i686-w64-mingw32).include?(build.host_target) - really_for_window = true - else - really_for_window = false - end - end - - if really_for_window - spec.linker.libraries += ['Ws2_32'] - #spec.cc.include_paths += ["C:/Windows/system/include"] - spec.linker.library_paths += ["C:/Windows/system"] - end - end - if build.kind_of?(MRuby::CrossBuild) && %w(x86_64-w64-mingw32 i686-w64-mingw32).include?(build.host_target) - spec.linker.libraries += ['ws2_32'] + if for_windows? + spec.linker.libraries += ['Ws2_32'] + #spec.cc.include_paths += ["C:/Windows/system/include"] + spec.linker.library_paths += ["C:/Windows/system"] end spec.add_test_dependency 'mruby-time', core: 'mruby-time' end |
