4 # To change this template, choose Tools | Templates
5 # and open the template in the editor.
7 require "ruby_build.rb"
11 def initialize(package_name
)
14 @debug_env[:ldflags] = "-L./ -ldl"
15 @release_env[:ldflags] = "-L./ -ldl"
16 @debug_env[:include] = "-Iinclude -Igclib/include"
17 @release_env[:include] = "-Iinclude -Igclib/include"
20 @debug_env[:ldflags] = "-L./ -ldl -lsblib"
21 @release_env[:ldflags] = "-L./ -ldl -lsblib"
27 @url = "http://op.oaoontk.ru/silentbob.tar.bz2"
32 files
= Dir
["sblib/*.cxx"] + Dir
["gclib/src/*.cxx"]
33 files
<< "gclib/src/gclib_c.c"
34 build_shared("libsblib.so", files
)
38 files
= Dir
["src/*.cxx"]
39 build_binary("silent_bob", files
)
43 system ("./install.sh")
47 system ("./uninstall.sh")
52 m
= Main
.new
"SilentBob"