Top Level Namespace
Defined Under Namespace
Modules: DreamCheeky
Instance Method Summary collapse
Instance Method Details
#have_framework(fw, &b) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'ext/dream_cheeky/extconf.rb', line 8 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 |