Ignore:
Timestamp:
Mar 31, 2008, 12:33:24 PM (16 years ago)
Author:
dai_9181
Message:

デプロイ時にcore.lib/cored.libのビルドもできるようにした。

Location:
trunk/ab5.0/abdev/BasicCompiler_Common/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Messenger.cpp

    r468 r472  
    256256    if(errorCode==200) sprintf(msg,"\"%s\" 未解決です (リンク エラー)。",tempKeyWord);
    257257    if(errorCode==201) sprintf(msg,"\"%s\" の読み込みに失敗。",tempKeyWord);
     258    if(errorCode==202) sprintf(msg,"\"%s\" は存在しません。",tempKeyWord);
     259    if(errorCode==203) sprintf(msg,"\"%s\" は存在しますが、読み込めません(古いバージョンのコンパイラでビルドされた可能性があります)。",tempKeyWord);
    258260
    259261    //原因不明
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Program.cpp

    r471 r472  
    2626    {
    2727        // 先頭に無名コマンドがきた場合、ソースファイル名として認識する
    28         Program::SetSourceFilePath( cmdLines[cmdLineIndex].GetParameter() );
     28        std::string tempParam = cmdLines[cmdLineIndex].GetParameter();
     29        Program::SetSourceFilePath( Jenga::Common::StringReplace( tempParam, "/", "\\" ) );
    2930
    3031        cmdLineIndex ++;
     
    4041        {
    4142            // 二番目にも無名コマンドがきた場合、ソースファイル名として認識する
    42             SetOutputFilePath( cmdLines[cmdLineIndex].GetParameter() );
     43            std::string tempParam = cmdLines[cmdLineIndex].GetParameter();
     44            SetOutputFilePath( Jenga::Common::StringReplace( tempParam, "/", "\\" ) );
    4345
    4446            cmdLineIndex ++;
     
    102104        {
    103105            //インクルード ディレクトリ
    104             includeDir = cmdLine.GetParameter();
     106            includeDir = cmdLines[cmdLineIndex].GetParameter();
     107
     108            // '/' があった場合は '\\' に置換
     109            Jenga::Common::StringReplace( includeDir, "/", "\\" );
    105110        }
    106111        else
     
    119124    return true;
    120125}
     126
     127int Program::GetExitCode() const
     128{
     129    if( !compiler.IsBuildSuccessful() )
     130    {
     131        // ビルドに失敗
     132        return 1;
     133    }
     134
     135    // ビルドに成功
     136    return 0;
     137}
Note: See TracChangeset for help on using the changeset viewer.