class Object

Constants

LIBFREEGLUT_SOURCE_URI
LIBFREEGLUT_VERSION

Public Instance Methods

have_framework(fw, &b) click to toggle source
# File ext/glut/extconf.rb, line 3
def have_framework(fw, &b)
  checking_for fw do
    src = cpp_include("#{fw}/#{fw}.h") << "\n" "int main(void){return 0;}"
    if try_link(src, opt = "-ObjC -framework #{fw}", &b)
      $defs.push(format("-DHAVE_FRAMEWORK_%s", fw.tr_cpp))
      $LDFLAGS << " " << opt
      true
    else
      false
    end
  end
end