Top Level Namespace

Defined Under Namespace

Modules: FileDialog

Instance Method Summary collapse

Instance Method Details

#add_cflags(str) ⇒ Object



22
23
24
# File 'ext/filedialog/extconf.rb', line 22

def add_cflags(str)
  $CFLAGS += " " + str
end

#add_include(str) ⇒ Object



26
27
28
# File 'ext/filedialog/extconf.rb', line 26

def add_include(str)
  $CFLAGS += " -I" + str
end

#add_libs(str) ⇒ Object Also known as: add_static_lib



30
31
32
# File 'ext/filedialog/extconf.rb', line 30

def add_libs(str)
  $LOCAL_LIBS += " " + str
end

#add_pkg(package) ⇒ Object



39
40
41
42
# File 'ext/filedialog/extconf.rb', line 39

def add_pkg(package)
  add_cflags(pkg_config(package, "--cflags"))
  add_libs(pkg_config(package, "--libs"))
end

#pkg_config(*args) ⇒ Object



35
36
37
# File 'ext/filedialog/extconf.rb', line 35

def pkg_config(*args)
  IO.popen(["pkg-config", *args], &read).chomp
end