File: librarypreamble

package info (click to toggle)
icmake 13.05.01-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,132 kB
  • sloc: cpp: 11,595; fortran: 883; makefile: 853; sh: 546; pascal: 342
file content (34 lines) | stat: -rw-r--r-- 746 bytes parent folder | download
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 ?
}