Beispiel #1
0
bool FileStat::isOutputOld(OovStringRef const outputFn,
        OovStringRef const inputFn, OovStatus &status)
    {
    time_t outTime = 0;
    time_t inTime = 0;
    status = FileGetFileTime(outputFn, outTime);
    bool old = !status.ok();
    if(status.ok())
        {
        status = FileGetFileTime(inputFn, inTime);
        if(status.ok())
            {
            old = inTime > outTime;
            }
        else
            {
            old = true;
            }
        }
    else
        {
        status.clearError();
        }
    return old;
    }
Beispiel #2
0
OovStatusReturn ComponentTypesFile::read()
    {
    mCompTypesFile.setFilename(Project::getComponentTypesFilePath());
    mCompSourceListFile.setFilename(Project::getComponentSourceListFilePath());
    OovStatus status = mCompSourceListFile.readFile();
    // For new projects, the files are optional.
    /// @todo - should detect the difference between missing files and disk errors.
    if(status.needReport())
        {
        status.clearError();
        }
    status = mCompTypesFile.readFile();
    if(status.needReport())
        {
        status.clearError();
        }
    return status;
    }
Beispiel #3
0
void ProjectBuildArgs::setBuildConfig(OovStringRef buildMode, OovStringRef const buildConfig)
    {
    mBuildEnv.addCurrentFilterValue(OptFilterNameBuildMode, buildMode);
    mBuildEnv.addCurrentFilterValue(OptFilterNameBuildConfig, buildConfig);
    mBuildEnv.addCurrentFilterValue(OptFilterNamePlatform, OptionsDefaults::getPlatform());

    OovStatus status = mProjectPackages.read();
    if(status.needReport())
        {
        // These packages are optional.
        status.clearError();
        }
    status = mBuildPackages.read();
    if(status.needReport())
        {
        // These packages are optional.
        status.clearError();
        }
    }