3 # Process #################################################################
4 pName = "example_xml_xmlBasic"
5 pPath = pName.replace("_", "/") + "/"
7 # Anna modules ############################################################
8 pwd = str(Dir ('.').abspath);
11 modules = [ 'core', 'io', 'xml', 'app' ];
12 for module in modules:
13 anna_libs.append ("anna_" + module)
14 module = module.replace("_", ".")
15 anna_libpaths.append (pwd.replace (pPath, ("source/" + module + "/")))
17 anna_rlibs = list(anna_libs)
20 # Libraries ###############################################################
21 # To avoid other libraries accumulation (boost testing, i.e.):
22 localEnv = env.Clone()
24 anna_library = { 'LIBS' : anna_rlibs }
25 localEnv.MergeFlags (anna_library)
27 system_library = { 'LIBS' : [ 'xml2', 'rt' ] }
28 localEnv.MergeFlags (system_library)
30 localEnv.Append(LIBPATH = anna_libpaths)
32 # Linking #################################################################
33 result = localEnv.Program (pName, Glob ('*.cpp'))