current version
[opsoft_test.git] / silentbob / scripts / build_bob.bob
blob2246cd56ec7dce897b8f217d039ebf3745e4f7f8
1 #!/bin/bash
3 top_srcdir=../
4 echo "#!/bin/sh -v" >./build_bob.sh
6 export LIBS="-L./"
7 export INCLUDE="-I${top_srcdir}/include -I${top_srcdir}/gclib/include"
9 bob ${top_srcdir}/gclib/src/*.cxx ${top_srcdir}/gclib/src/*.c --scons-env --scons-shared gclib >./SConstruct
10 bob ${top_srcdir}/gclib/src/*.cxx ${top_srcdir}/gclib/src/*.c --aap-env --aap-shared gclib >./main.aap
11 bob ${top_srcdir}/gclib/src/*.cxx ${top_srcdir}/gclib/src/*.c -cc --cc-env --cc-script --cc-shared libgclib.so >./build_bob.sh
12 export LIBS="-L./ -lsblib -lgclib -ldl"
14 # Scons. libsblib
15 bob ${top_srcdir}/sblib/*.cxx --scons-env --scons-shared sblib >>./SConstruct
16 echo "" >>./SConstruct
17 echo "" >>./SConstruct
19 # Scons. silent_bob
20 bob ${top_srcdir}/src/*.cxx --scons-env --scons-program silent_bob >>./SConstruct
22 # AAP. libsblib
23 bob ${top_srcdir}/sblib/*.cxx --aap-env --aap-shared sblib >>./main.aap
24 echo "" >>./main.aap
25 echo "" >>./main.aap
27 # AAP. silent_bob
28 bob ${top_srcdir}/src/*.cxx --aap-env --aap-program silent_bob >>./main.aap
30 # Bash. libsblib
31 bob ${top_srcdir}/sblib/*.cxx -cc --cc-env --cc-script --cc-shared libsblib.so >>./build_bob.sh
32 echo "" >>./build_bob.sh
34 # Bash. silent_bob
35 bob ${top_srcdir}/src/*.cxx -cc --cc-env --cc-script --cc-program silent_bob >>./build_bob.sh
36 chmod a+x ./build_bob.sh
48 # Plugins.
49 bob ${top_srcdir}/plugins/plugin_perl.cxx \
50 -cc --cc-env --cc-script --cc-shared "libplugin_perl.so" >>./build_bob.sh
51 bob --scons-env --scons-shared "plugin_perl" \
52 ${top_srcdir}/plugins/plugin_perl.cxx >>./SConstruct
53 bob --aap-env --aap-shared "plugin_perl" \
54 ${top_srcdir}/plugins/plugin_perl.cxx >>./main.aap
56 bob -cc --cc-script --cc-shared "libplugin_perlpackages.so" \
57 ${top_srcdir}/plugins/plugin_perlpackages.cxx >>./build_bob.sh
58 bob --scons-shared "plugin_perlpackages" \
59 ${top_srcdir}/plugins/plugin_perlpackages.cxx >>./SConstruct
60 bob --aap-shared "plugin_perlpackages" \
61 ${top_srcdir}/plugins/plugin_perlpackages.cxx >>./main.aap
63 bob -cc --cc-script --cc-shared "libplugin_cache.so" ${top_srcdir}/plugins/plugin_cache.cxx >>./build_bob.sh
64 bob --scons-shared "plugin_cache" ${top_srcdir}/plugins/plugin_cache.cxx >>./SConstruct
65 bob --aap-shared "plugin_cache" ${top_srcdir}/plugins/plugin_cache.cxx >>./main.aap
67 bob -cc --cc-script --cc-shared "libplugin_editor.so" ${top_srcdir}/plugins/plugin_editor.cxx >>./build_bob.sh
68 bob --scons-shared "plugin_editor" ${top_srcdir}/plugins/plugin_editor.cxx >>./SConstruct
69 bob --aap-shared "plugin_editor" ${top_srcdir}/plugins/plugin_editor.cxx >>./main.aap
71 bob -cc --cc-script --cc-shared "libplugin_grep.so" ${top_srcdir}/plugins/plugin_grep.cxx >>./build_bob.sh
72 bob --scons-shared "plugin_grep" ${top_srcdir}/plugins/plugin_grep.cxx >>./SConstruct
73 bob --aap-shared "plugin_grep" ${top_srcdir}/plugins/plugin_grep.cxx >>./main.aap
75 bob -cc --cc-script --cc-shared "libplugin_compile.so" ${top_srcdir}/plugins/plugin_compile.cxx >>./build_bob.sh
76 bob --scons-shared "plugin_compile" ${top_srcdir}/plugins/plugin_compile.cxx >>./SConstruct
77 bob --aap-shared "plugin_compile" ${top_srcdir}/plugins/plugin_compile.cxx >>./main.aap
79 bob -cc --cc-script --cc-shared "libplugin_aap.so" ${top_srcdir}/plugins/plugin_aap.cxx >>./build_bob.sh
80 bob --scons-shared "plugin_aap" ${top_srcdir}/plugins/plugin_aap.cxx >>./SConstruct
81 bob --aap-shared "plugin_aap" ${top_srcdir}/plugins/plugin_aap.cxx >>./main.aap
83 bob -cc --cc-script --cc-shared "libplugin_python.so" ${top_srcdir}/plugins/plugin_python.cxx >>./build_bob.sh
84 bob --scons-shared "plugin_python" ${top_srcdir}/plugins/plugin_python.cxx >>./SConstruct
85 bob --aap-shared "plugin_python" ${top_srcdir}/plugins/plugin_python.cxx >>./main.aap
87 bob -cc --cc-script --cc-shared "libplugin_scons.so" ${top_srcdir}/plugins/plugin_scons.cxx >>./build_bob.sh
88 bob --scons-shared "plugin_scons" ${top_srcdir}/plugins/plugin_scons.cxx >>./SConstruct
89 bob --aap-shared "plugin_scons" ${top_srcdir}/plugins/plugin_scons.cxx >>./main.aap
91 bob -cc --cc-script --cc-shared "libplugin_foreach.so" ${top_srcdir}/plugins/plugin_foreach.cxx >>./build_bob.sh
92 bob --scons-shared "plugin_foreach" ${top_srcdir}/plugins/plugin_foreach.cxx >>./SConstruct
93 bob --aap-shared "plugin_foreach" ${top_srcdir}/plugins/plugin_foreach.cxx >>./main.aap
95 bob -cc --cc-script --cc-shared "libplugin_make.so" ${top_srcdir}/plugins/plugin_make.cxx >>./build_bob.sh
96 bob --scons-shared "plugin_make" ${top_srcdir}/plugins/plugin_make.cxx >>./SConstruct
97 bob --aap-shared "plugin_make" ${top_srcdir}/plugins/plugin_make.cxx >>./main.aap
99 bob -cc --cc-script --cc-shared "libplugin_xml_project.so" ${top_srcdir}/plugins/plugin_xml_project.cxx >>./build_bob.sh
100 bob --scons-shared "plugin_xml_project" ${top_srcdir}/plugins/plugin_xml_project.cxx >>./SConstruct
101 bob --aap-shared "plugin_xml_project" ${top_srcdir}/plugins/plugin_xml_project.cxx >>./main.aap
103 bob -cc --cc-script --cc-shared "libplugin_csharp.so" ${top_srcdir}/plugins/plugin_csharp.cxx >>./build_bob.sh
104 bob --scons-shared "plugin_csharp" ${top_srcdir}/plugins/plugin_csharp.cxx >>./SConstruct
105 bob --aap-shared "plugin_csharp" ${top_srcdir}/plugins/plugin_csharp.cxx >>./main.aap