3 # Process #################################################################
4 #pName = "example_<module>_<process>"
5 bnames = Dir('..').abspath.rsplit('/', 2)
6 pName = "example_" + bnames[-2] + "_" + bnames[-1]
7 pPath = pName.replace("_", "/") + "/"
9 # Anna modules ############################################################
10 pwd = str(Dir ('.').abspath);
13 anna_libs.append ("xml2")
14 modules = [ 'xml', 'core', 'io' ];
15 for module in modules:
16 anna_libs.append ("anna_" + module)
17 module = module.replace("_", ".")
18 anna_libpaths.append (pwd.replace (pPath, ("source/" + module + "/")))
20 anna_rlibs = list(anna_libs)
23 # Libraries ###############################################################
24 # To avoid other libraries accumulation:
25 localEnv = env.Clone()
27 anna_library = { 'LIBS' : anna_rlibs }
28 localEnv.MergeFlags (anna_library)
30 system_library = { 'LIBS' : [ 'xml2', 'rt' ] }
31 localEnv.MergeFlags (system_library)
33 localEnv.Append(LIBPATH = anna_libpaths)
35 # Linking #################################################################
36 result = localEnv.Program (pName, Glob ('*.cpp'))