6 Adds another BuildInfo to the end of this one.
8 void BuildInfo::add(const BuildInfo &bi)
10 cflags.insert(cflags.end(), bi.cflags.begin(), bi.cflags.end());
11 defines.insert(defines.end(), bi.defines.begin(), bi.defines.end());
12 incpath.insert(incpath.end(), bi.incpath.begin(), bi.incpath.end());
13 ldflags.insert(ldflags.end(), bi.ldflags.begin(), bi.ldflags.end());
14 libpath.insert(libpath.end(), bi.libpath.begin(), bi.libpath.end());
15 libs.insert(libs.end(), bi.libs.begin(), bi.libs.end());
19 Makes sure there are no duplicate entries in the lists.
21 void BuildInfo::unique()
32 Removes any duplicate entries from a list, leaving only the first one. The
33 order of other elements is preserved. O(n²) efficiency.
35 void BuildInfo::unique(StringList &l)
38 for(StringList::iterator i=l.begin(); i!=l.end(); ++i)
39 if(find(l2.begin(), l2.end(), *i)==l2.end())
44 BuildInfo::Loader::Loader(BuildInfo &bi):
47 add("cflag", &Loader::cflag);
48 add("incpath", &Loader::incpath);
49 add("define", &Loader::define);
50 add("ldflag", &Loader::ldflag);
51 add("libpath", &Loader::libpath);
52 add("library", &Loader::library);