Sha256: 27195742459f072155ba6f42cb9a7abb8adef74841a3f00afda612480452819c
Contents?: true
Size: 710 Bytes
Versions: 4
Compression:
Stored size: 710 Bytes
Contents
require 'rbconfig' module Swt def self.jar_path File.expand_path(relative_jar_path, __FILE__) end def self.relative_jar_path case Config::CONFIG["host_os"] when /darwin/i if Config::CONFIG["host_cpu"] == "x86_64" '../../../vendor/swt_osx64' else '../../../vendor/swt_osx_3_7' end when /linux/i if %w(amd64 x84_64).include? Config::CONFIG["host_cpu"] '../../../vendor/swt_linux64' else '../../../vendor/swt_linux' end when /windows|mswin/i '../../../vendor/swt_win32' end end if File.exist?(jar_path + ".jar") require jar_path else raise "swt jar file required: #{jar_path}.jar" end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
swt-0.8-java | lib/swt/jar.rb |
swt-0.7-java | lib/swt/jar.rb |
swt-0.6-java | lib/swt/jar.rb |
swt-0.5-java | lib/swt/jar.rb |