3 # (c) Oleg Puchinin 2008
4 # graycardinalster2gmail.com
5 # Please download and install http://sf.net/projects/rubymake to run this script.
7 require "ruby_build.rb"
11 def initialize(package_name
)
15 @debug_env[:ldflags] = "-L./ -ldl"
16 @release_env[:ldflags] = "-L./ -ldl"
17 @debug_env[:include] = "-Iinclude -Igclib/include"
18 @release_env[:include] = "-Iinclude -Igclib/include"
21 @debug_env[:ldflags] = "-L./ -ldl -lsblib"
22 @release_env[:ldflags] = "-L./ -ldl -lsblib"
28 @url = "http://op.oaoontk.ru/silentbob.tar.bz2"
33 files
= Dir
["sblib/*.cxx"] + Dir
["gclib/src/*.cxx"]
34 build_shared("libsblib.so", files
)
38 files
= Dir
["src/*.cxx"]
39 build_binary("silent_bob", files
)
43 l
= %w(plugin_cache plugin_editor plugin_grep plugin_perl
44 plugin_perlpackages plugin_python plugin_ruby plugin_ruby_newclass
)
46 files
= ["plugins/#{one}.cxx"]
47 build_shared("lib#{one}.so", files
)
52 system ("./install.sh")
56 system ("./uninstall.sh")
61 m
= Main
.new
"SilentBob"