1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
void checkVersion()
{
string version = "version" + get_dext(SOURCES);
if (exists(version) &&
(
"VERSION" younger version || "YEARS" younger version ||
"AUTHOR" younger version
)
)
{
echo(OFF);
system("touch " + version);
echo(USE_ECHO);
}
}
void libraryPreamble()
{
#ifdef PRECOMP
list classes = makelist(O_SUBDIR, "*");
loadPrecompile(classes);
#endif
if (strlen(ICM_DEP)) // inspect gch and a files
system("icmake -d " ICM_DEP);
#ifdef PRECOMP
precompileHeaders(classes); // store .gch in class dirs
#endif
checkVersion(); // VERSION younger version.cc ?
}
|