class BuildRecipeCMake

Public Instance Methods

configure_defaults() click to toggle source
# File ext/fox16_c/extconf.rb, line 105
def configure_defaults
  [
    "-DENABLE_STATIC=0",
    "-DENABLE_SHARED=1",
    "-DCMAKE_SYSTEM_NAME=Windows",
    "-DCMAKE_C_COMPILER=#{host}-gcc",
    "-DCMAKE_CXX_COMPILER=#{host}-g++",
    "-DCMAKE_SYSTEM_PROCESSOR=#{system_processor}",
  ]
end
make_cmd() click to toggle source
# File ext/fox16_c/extconf.rb, line 116
def make_cmd
  ENV["MAKE"] || "make"
end
system_processor() click to toggle source
# File ext/fox16_c/extconf.rb, line 97
def system_processor
  case host
  when /x86_64/ then "amd64"
  when /i686/ then "x86"
  else raise "unknown host #{host}"
  end
end