Module: Ruby::Ois

Defined in:
lib/ruby-ois.rb,
lib/ruby-ois/version.rb

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.get_deps_lib_pathObject



9
10
11
# File 'lib/ruby-ois.rb', line 9

def self.get_deps_lib_path
  "#{get_top_path}/deps/lib"
end

.get_inc_flagsObject



17
18
19
# File 'lib/ruby-ois.rb', line 17

def self.get_inc_flags
  "-I#{get_top_path}/deps/include/OIS "
end

.get_lib_flagsObject



21
22
23
24
25
26
27
# File 'lib/ruby-ois.rb', line 21

def self.get_lib_flags
  if (/mingw/ =~ RUBY_PLATFORM)
    return "-L#{get_top_path}/deps/lib/release -lOIS"
  else
    return "-L#{get_top_path}/deps/lib -lOIS"
  end
end

.get_lib_pathObject



13
14
15
# File 'lib/ruby-ois.rb', line 13

def self.get_lib_path
  File.dirname(File.expand_path(__FILE__))
end

.get_top_pathObject



5
6
7
# File 'lib/ruby-ois.rb', line 5

def self.get_top_path
  File.dirname(File.dirname(File.expand_path(__FILE__)))
end