Ignore:
Timestamp:
May 16, 2008, 9:40:59 PM (16 years ago)
Author:
dai_9181
Message:

静的リンクライブラリプロジェクトの作成(IDE側)に対応。

Location:
trunk/ab5.0/abdev/BasicCompiler_Common
Files:
4 edited

Legend:

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

    r527 r608  
    639639        lstrcat(tempOutputFileName,temporary);
    640640        lstrcat(tempOutputFileName,temp2);
    641         if( compiler.IsStaticLibrary() )
     641        if( compiler.IsSll() )
    642642        {
    643643            if( program.IsDebugRun() || compiler.IsDebug() )
  • trunk/ab5.0/abdev/BasicCompiler_Common/Subroutine.cpp

    r603 r608  
    397397    }
    398398
    399     if( !compiler.IsStaticLibrary() )
     399    if( !compiler.IsSll() )
    400400    {
    401401        //_System_TypeBase_InitializeUserTypesは最後のほうでコンパイル
  • trunk/ab5.0/abdev/BasicCompiler_Common/include/Compiler.h

    r537 r608  
    33class Compiler
    44{
    5 public:
    6     // ターゲット
    7     enum TargetModuleType
    8     {
    9         Exe,
    10         Dll,
    11         StaticLibrary,
    12     };
    13 
    14 private:
    155    // ビルド成功のフラグ
    166    bool isBuildSuccessful;
     
    2010
    2111    // モジュール タイプ
    22     TargetModuleType targetModuleType;
     12    ActiveBasic::Common::TargetModuleType::EnumType targetModuleType;
    2313
    2414    // デバッグ ビルドかどうか
     
    4434        : isBuildSuccessful( false )
    4535        , pObjectModule( new ObjectModule )
    46         , targetModuleType( Exe )
     36        , targetModuleType( ActiveBasic::Common::TargetModuleType::Exe )
    4737        , isDebug( false )
    4838        , isUnicode( false )
     
    124114    bool IsExe() const
    125115    {
    126         if( targetModuleType == Exe )
     116        if( targetModuleType == ActiveBasic::Common::TargetModuleType::Exe )
    127117        {
    128118            return true;
     
    132122    bool IsDll() const
    133123    {
    134         if( targetModuleType == Dll )
     124        if( targetModuleType == ActiveBasic::Common::TargetModuleType::Dll )
    135125        {
    136126            return true;
     
    138128        return false;
    139129    }
    140     bool IsStaticLibrary() const
    141     {
    142         if( targetModuleType == StaticLibrary )
     130
     131    // スタティック リンク ライブラリをビルドする?
     132    bool IsSll() const
     133    {
     134        if( targetModuleType == ActiveBasic::Common::TargetModuleType::Sll )
    143135        {
    144136            return true;
     
    146138        return false;
    147139    }
    148     void SetTargetModuleType( TargetModuleType targetModuleType )
     140
     141    void SetTargetModuleType( ActiveBasic::Common::TargetModuleType::EnumType targetModuleType )
    149142    {
    150143        this->targetModuleType = targetModuleType;
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Program.cpp

    r519 r608  
    9292        {
    9393            // DLLとしてビルド
    94             compiler.SetTargetModuleType( Compiler::Dll );
     94            compiler.SetTargetModuleType( ActiveBasic::Common::TargetModuleType::Dll );
    9595        }
    9696        else if( cmdLine.GetCommand() == "static_library" )
    9797        {
    9898            // 静的リンクライブラリとしてビルド
    99             compiler.SetTargetModuleType( Compiler::StaticLibrary );
     99            compiler.SetTargetModuleType( ActiveBasic::Common::TargetModuleType::Sll );
    100100        }
    101101        else if( cmdLine.GetCommand() == "unicode" )
     
    118118            // '/' があった場合は '\\' に置換
    119119            Jenga::Common::StringReplace( includeDir, "/", "\\" );
     120        }
     121        else if( cmdLine.GetCommand() == "?" || cmdLine.GetCommand() == "help" )
     122        {
     123            std::cout << "TODO: ActiveBasic command line help." << std::endl;
    120124        }
    121125        else
Note: See TracChangeset for help on using the changeset viewer.