File: extconf.rb

package info (click to toggle)
libbuffy-bindings 0.11%2Bnmu1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,420 kB
  • ctags: 141
  • sloc: sh: 10,221; ruby: 168; python: 162; perl: 131; makefile: 119
file content (16 lines) | stat: -rw-r--r-- 299 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'mkmf'

$objs = [ "buffy_wrap.o" ]
$cleanfiles = [ "buffy_wrap.cc" ]
$libs = `pkg-config --libs "libbuffy >= 1.4"`.chomp()

create_makefile('Buffy')

open("Makefile", "a") { |mf|
	mf.puts <<EOM
buffy_wrap.cc: ../buffy.i
	swig -ruby -c++ -I/usr/include -o $@ $<

LDSHARED = g++ -shared
EOM
}