-/**
-Removes any duplicate entries from a list, leaving only the first one. The
-order of other elements is preserved. O(n²) efficiency.
-*/
-void BuildInfo::unique(StringList &l)
+
+BuildInfo::Loader::Loader(BuildInfo &bi):
+ DataFile::ObjectLoader<BuildInfo>(bi)
+{
+ add("debug", &BuildInfo::debug);
+ add("define", &Loader::define);
+ add("incpath", &Loader::incpath);
+ add("libpath", &Loader::libpath);
+ add("library", &Loader::library);
+ add("libmode", &BuildInfo::libmode);
+ add("libmode", &Loader::libmode_for_lib);
+ add("optimize", &BuildInfo::optimize);
+ add("strip", &BuildInfo::strip);
+ add("threads", &BuildInfo::threads);
+ add("warning_level", &BuildInfo::warning_level);
+ add("fatal_warnings", &BuildInfo::fatal_warnings);
+}
+
+void BuildInfo::Loader::incpath(const string &s)