Changeset 480 in dev


Ignore:
Timestamp:
Apr 6, 2008, 10:03:28 PM (16 years ago)
Author:
dai_9181
Message:

構成管理を大幅に改良。

Location:
trunk/ab5.0
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • trunk/ab5.0

    • Property svn:externals
      •  

        old new  
        44abdev/build/debug/system http://dev.activebasic.com/svnroot/ablib/trunk/ab5.0/system
        55abdev/build/debug/theme http://dev.activebasic.com/svnroot/ablib/trunk/ab5.0/theme
        6 abdev/build/release/ablib http://dev.activebasic.com/svnroot/ablib/trunk/ab5.0/ablib
        7 abdev/build/release/runtime http://dev.activebasic.com/svnroot/ablib/trunk/ab5.0/runtime
        8 abdev/build/release/system http://dev.activebasic.com/svnroot/ablib/trunk/ab5.0/system
        9 abdev/build/release/theme http://dev.activebasic.com/svnroot/ablib/trunk/ab5.0/theme
         6abdev/build/release http://dev.activebasic.com/svnroot/ablib/trunk/ab5.0
  • trunk/ab5.0/abdev/BasicCompiler64/BasicCompiler.vcproj

    r477 r480  
    240240            RelativePathToProject="..\jenga\projects\jenga\jenga.vcproj"
    241241        />
     242        <ProjectReference
     243            ReferencedProjectIdentifier="{87835C33-64C9-4BA5-9B39-608BA5394387}"
     244            RelativePathToProject=".\ab_common\ab_common.vcproj"
     245        />
    242246    </References>
    243247    <Files>
  • trunk/ab5.0/abdev/BasicCompiler_Common/BasicCompiler.cpp

    r477 r480  
    251251
    252252            hFile=CreateFile(
    253                 ( Jenga::Common::Environment::GetAppDir() + "\\pgm.tmp" ).c_str(),
     253                ( ActiveBasic::Common::Environment::GetAbdevRootPath() + "\\pgm.tmp" ).c_str(),
    254254                GENERIC_WRITE,0,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_TEMPORARY,NULL);
    255255            WriteFile(hFile,FileName,lstrlen(FileName),&dw,NULL);
     
    681681        {
    682682            // インクルードディレクトリを絶対パスに変更
    683             program.SetIncludeDir( Jenga::Common::Path::MakeFullPath( program.GetIncludeDir(), ActiveBasic::Common::Environment::GetAbdevRootPath() ) );
     683            program.SetIncludeDir( Jenga::Common::Path::MakeFullPathByCurrentDirectory( program.GetIncludeDir() ) );
    684684        }
    685685
    686686        // ソースファイル名を絶対パスに変換
    687         program.SetSourceFilePath( Jenga::Common::Path::MakeFullPath( program.GetSourceFilePath(), baseDirPath ) );
     687        program.SetSourceFilePath( Jenga::Common::Path::MakeFullPathByCurrentDirectory( program.GetSourceFilePath() ) );
    688688
    689689        // 出力ファイル名を絶対パスに変換
    690         program.SetOutputFilePath( Jenga::Common::Path::MakeFullPath( program.GetOutputFilePath(), baseDirPath ) );
     690        program.SetOutputFilePath( Jenga::Common::Path::MakeFullPathByCurrentDirectory( program.GetOutputFilePath() ) );
    691691
    692692        // モジュール名をセット
     
    707707        DWORD dwAccessBytes;
    708708        hFile=CreateFile(
    709             ( Jenga::Common::Environment::GetAppDir() + "\\pgm.tmp" ).c_str(),
     709            ( ActiveBasic::Common::Environment::GetAbdevRootPath() + "\\pgm.tmp" ).c_str(),
    710710            GENERIC_READ,FILE_SHARE_READ|FILE_SHARE_WRITE,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
    711711        if(hFile!=INVALID_HANDLE_VALUE){
  • trunk/ab5.0/abdev/BasicCompiler_Common/src/Messenger.cpp

    r472 r480  
    471471
    472472            hFile=CreateFile(
    473                 ( Jenga::Common::Environment::GetAppDir() + "\\pgm.tmp" ).c_str(),
     473                ( ActiveBasic::Common::Environment::GetAbdevRootPath() + "\\pgm.tmp" ).c_str(),
    474474                GENERIC_WRITE,0,NULL,CREATE_ALWAYS,FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_TEMPORARY,NULL);
    475475            WriteFile(hFile,FileName,lstrlen(FileName),&dw,NULL);
  • trunk/ab5.0/abdev/ProjectEditor/NonVolatile.cpp

    r475 r480  
    444444
    445445    //インクルードディレクトリ
    446     if(!GetStringValue("IncludeDir",szIncludeDir)) lstrcpy(szIncludeDir,"..\\Include\\");
     446    if(!GetStringValue("IncludeDir",szIncludeDir)) lstrcpy(szIncludeDir,".\\ablib\\src");
    447447
    448448    HeapDefaultFree(buffer);
     
    550550
    551551    //インクルードディレクトリ
    552     lstrcpy(szIncludeDir,"..\\Include\\");
     552    lstrcpy(szIncludeDir,".\\ablib\\src");
    553553
    554554    //ウィンドウ位置、サイズ
  • trunk/ab5.0/abdev/ProjectEditor/NonVolatile.h

    r80 r480  
    103103    //インクルードディレクトリ
    104104    char szIncludeDir[MAX_PATH];
     105    std::string GetIncludeDirFullPath()
     106    {
     107        return Jenga::Common::Path::MakeFullPath( szIncludeDir, ActiveBasic::Common::Environment::GetAbdevRootPath() );
     108    }
    105109
    106110    //////////////////////////////////////////////////////////////
  • trunk/ab5.0/abdev/ProjectEditor/ProjectEditor.cpp

    r477 r480  
    20792079
    20802080                    //インクルードディレクトリ
    2081                     sprintf(temp2," /include_dir:\"%s\"",pobj_nv->szIncludeDir);
     2081                    sprintf(temp2," /include_dir:\"%s\"",pobj_nv->GetIncludeDirFullPath().c_str());
    20822082                    lstrcat(temporary,temp2);
    20832083
     
    21292129
    21302130                    //インクルードディレクトリ
    2131                     sprintf(temp2," /include_dir:\"%s\"",pobj_nv->szIncludeDir);
     2131                    sprintf(temp2," /include_dir:\"%s\"",pobj_nv->GetIncludeDirFullPath().c_str());
    21322132                    lstrcat(temporary,temp2);
    21332133
     
    21602160
    21612161                    //インクルードディレクトリ
    2162                     sprintf(temp2," /include_dir:\"%s\"",pobj_nv->szIncludeDir);
     2162                    sprintf(temp2," /include_dir:\"%s\"",pobj_nv->GetIncludeDirFullPath().c_str());
    21632163                    lstrcat(temporary,temp2);
    21642164
     
    22242224
    22252225                    //インクルードディレクトリ
    2226                     sprintf(temp2," /include_dir:\"%s\"",pobj_nv->szIncludeDir);
     2226                    sprintf(temp2," /include_dir:\"%s\"",pobj_nv->GetIncludeDirFullPath().c_str());
    22272227                    lstrcat(temporary,temp2);
    22282228
     
    22632263
    22642264                    //インクルードディレクトリ
    2265                     sprintf(temp2," /include_dir:\"%s\"",pobj_nv->szIncludeDir);
     2265                    sprintf(temp2," /include_dir:\"%s\"",pobj_nv->GetIncludeDirFullPath().c_str());
    22662266                    lstrcat(temporary,temp2);
    22672267
  • trunk/ab5.0/abdev/ProjectEditor/ProjectEditor.vcproj

    r477 r480  
    5252                AdditionalIncludeDirectories="..\..\;..\..\cpplibs\boost;.\include"
    5353                PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;JPN;THETEXT;WINVER=0x0501;_WIN32_WINNT=0x0501"
    54                 StringPooling="true"
     54                StringPooling="false"
    5555                RuntimeLibrary="0"
    56                 EnableFunctionLevelLinking="true"
     56                EnableFunctionLevelLinking="false"
    5757                UsePrecompiledHeader="2"
    5858                PrecompiledHeaderFile="$(IntDir)\$(ProjectName).pch"
     
    6363                WarningLevel="3"
    6464                SuppressStartupBanner="true"
     65                DebugInformationFormat="3"
    6566            />
    6667            <Tool
     
    357358                WarningLevel="3"
    358359                SuppressStartupBanner="true"
    359                 DebugInformationFormat="4"
     360                DebugInformationFormat="3"
    360361            />
    361362            <Tool
  • trunk/ab5.0/abdev/ProjectEditor/SubOperation.cpp

    r477 r480  
    12601260    GetFullPath( temporary, pj_editor_Dir );
    12611261    pHeaderBuf = ReadBuffer_NonErrMsg( temporary );
    1262     if( !pHeaderBuf )
    1263     {
    1264         lstrcpy(temporary,".\\Include\\basic.sbp");
    1265         GetFullPath( temporary, pj_editor_Dir );
    1266         pHeaderBuf = ReadBuffer( temporary );
    1267         if( pHeaderBuf )
    1268         {
    1269             lstrcpy( pobj_nv->szIncludeDir, ".\\Include\\" );
    1270         }
    1271     }
    12721262
    12731263    if( !pHeaderBuf ){
  • trunk/ab5.0/abdev/ab_common/ab_common.vcproj

    r477 r480  
    1717    <Configurations>
    1818        <Configuration
    19             Name="Debug|Win32"
     19            Name="Debug(x86)|Win32"
    2020            OutputDirectory="$(SolutionDir)$(ConfigurationName)"
    2121            IntermediateDirectory="$(ConfigurationName)"
     
    4949                WarningLevel="3"
    5050                Detect64BitPortabilityProblems="true"
    51                 DebugInformationFormat="4"
     51                DebugInformationFormat="3"
    5252            />
    5353            <Tool
     
    8080        </Configuration>
    8181        <Configuration
    82             Name="Release|Win32"
     82            Name="Release(x86)|Win32"
     83            OutputDirectory="$(SolutionDir)$(ConfigurationName)"
     84            IntermediateDirectory="$(ConfigurationName)"
     85            ConfigurationType="4"
     86            CharacterSet="2"
     87            WholeProgramOptimization="1"
     88            >
     89            <Tool
     90                Name="VCPreBuildEventTool"
     91            />
     92            <Tool
     93                Name="VCCustomBuildTool"
     94            />
     95            <Tool
     96                Name="VCXMLDataGeneratorTool"
     97            />
     98            <Tool
     99                Name="VCWebServiceProxyGeneratorTool"
     100            />
     101            <Tool
     102                Name="VCMIDLTool"
     103            />
     104            <Tool
     105                Name="VCCLCompilerTool"
     106                AdditionalIncludeDirectories="..\..\;..\..\cpplibs\boost"
     107                PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
     108                RuntimeLibrary="0"
     109                UsePrecompiledHeader="2"
     110                WarningLevel="3"
     111                Detect64BitPortabilityProblems="true"
     112                DebugInformationFormat="3"
     113            />
     114            <Tool
     115                Name="VCManagedResourceCompilerTool"
     116            />
     117            <Tool
     118                Name="VCResourceCompilerTool"
     119            />
     120            <Tool
     121                Name="VCPreLinkEventTool"
     122            />
     123            <Tool
     124                Name="VCLibrarianTool"
     125            />
     126            <Tool
     127                Name="VCALinkTool"
     128            />
     129            <Tool
     130                Name="VCXDCMakeTool"
     131            />
     132            <Tool
     133                Name="VCBscMakeTool"
     134            />
     135            <Tool
     136                Name="VCFxCopTool"
     137            />
     138            <Tool
     139                Name="VCPostBuildEventTool"
     140            />
     141        </Configuration>
     142        <Configuration
     143            Name="Debug(x64)|Win32"
     144            OutputDirectory="$(SolutionDir)$(ConfigurationName)"
     145            IntermediateDirectory="$(ConfigurationName)"
     146            ConfigurationType="4"
     147            CharacterSet="2"
     148            >
     149            <Tool
     150                Name="VCPreBuildEventTool"
     151            />
     152            <Tool
     153                Name="VCCustomBuildTool"
     154            />
     155            <Tool
     156                Name="VCXMLDataGeneratorTool"
     157            />
     158            <Tool
     159                Name="VCWebServiceProxyGeneratorTool"
     160            />
     161            <Tool
     162                Name="VCMIDLTool"
     163            />
     164            <Tool
     165                Name="VCCLCompilerTool"
     166                Optimization="0"
     167                AdditionalIncludeDirectories="..\..\;..\..\cpplibs\boost"
     168                PreprocessorDefinitions="WIN32;_DEBUG;_LIB"
     169                MinimalRebuild="true"
     170                BasicRuntimeChecks="3"
     171                RuntimeLibrary="1"
     172                UsePrecompiledHeader="2"
     173                WarningLevel="3"
     174                Detect64BitPortabilityProblems="true"
     175                DebugInformationFormat="3"
     176            />
     177            <Tool
     178                Name="VCManagedResourceCompilerTool"
     179            />
     180            <Tool
     181                Name="VCResourceCompilerTool"
     182            />
     183            <Tool
     184                Name="VCPreLinkEventTool"
     185            />
     186            <Tool
     187                Name="VCLibrarianTool"
     188            />
     189            <Tool
     190                Name="VCALinkTool"
     191            />
     192            <Tool
     193                Name="VCXDCMakeTool"
     194            />
     195            <Tool
     196                Name="VCBscMakeTool"
     197            />
     198            <Tool
     199                Name="VCFxCopTool"
     200            />
     201            <Tool
     202                Name="VCPostBuildEventTool"
     203            />
     204        </Configuration>
     205        <Configuration
     206            Name="Release(x64)|Win32"
    83207            OutputDirectory="$(SolutionDir)$(ConfigurationName)"
    84208            IntermediateDirectory="$(ConfigurationName)"
     
    157281                >
    158282                <FileConfiguration
    159                     Name="Debug|Win32"
     283                    Name="Debug(x86)|Win32"
    160284                    >
    161285                    <Tool
     
    165289                </FileConfiguration>
    166290                <FileConfiguration
    167                     Name="Release|Win32"
     291                    Name="Release(x86)|Win32"
     292                    >
     293                    <Tool
     294                        Name="VCCLCompilerTool"
     295                        UsePrecompiledHeader="1"
     296                    />
     297                </FileConfiguration>
     298                <FileConfiguration
     299                    Name="Debug(x64)|Win32"
     300                    >
     301                    <Tool
     302                        Name="VCCLCompilerTool"
     303                        UsePrecompiledHeader="1"
     304                    />
     305                </FileConfiguration>
     306                <FileConfiguration
     307                    Name="Release(x64)|Win32"
    168308                    >
    169309                    <Tool
  • trunk/ab5.0/abdev/abcompiler32.sln

    r475 r480  
    4545        {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.TheText_Release|Win32.ActiveCfg = Release(x86)|Win32
    4646        {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.TheText_Release|Win32.Build.0 = Release(x86)|Win32
    47         {87835C33-64C9-4BA5-9B39-608BA5394387}.Debug|Win32.ActiveCfg = Debug|Win32
    48         {87835C33-64C9-4BA5-9B39-608BA5394387}.Debug|Win32.Build.0 = Debug|Win32
    49         {87835C33-64C9-4BA5-9B39-608BA5394387}.Release|Win32.ActiveCfg = Release|Win32
    50         {87835C33-64C9-4BA5-9B39-608BA5394387}.Release|Win32.Build.0 = Release|Win32
    51         {87835C33-64C9-4BA5-9B39-608BA5394387}.TheText_Debug|Win32.ActiveCfg = Debug|Win32
    52         {87835C33-64C9-4BA5-9B39-608BA5394387}.TheText_Debug|Win32.Build.0 = Debug|Win32
    53         {87835C33-64C9-4BA5-9B39-608BA5394387}.TheText_Release|Win32.ActiveCfg = Release|Win32
    54         {87835C33-64C9-4BA5-9B39-608BA5394387}.TheText_Release|Win32.Build.0 = Release|Win32
     47        {87835C33-64C9-4BA5-9B39-608BA5394387}.Debug|Win32.ActiveCfg = Debug(x86)|Win32
     48        {87835C33-64C9-4BA5-9B39-608BA5394387}.Debug|Win32.Build.0 = Debug(x86)|Win32
     49        {87835C33-64C9-4BA5-9B39-608BA5394387}.Release|Win32.ActiveCfg = Release(x86)|Win32
     50        {87835C33-64C9-4BA5-9B39-608BA5394387}.Release|Win32.Build.0 = Release(x86)|Win32
     51        {87835C33-64C9-4BA5-9B39-608BA5394387}.TheText_Debug|Win32.ActiveCfg = Debug(x86)|Win32
     52        {87835C33-64C9-4BA5-9B39-608BA5394387}.TheText_Debug|Win32.Build.0 = Debug(x86)|Win32
     53        {87835C33-64C9-4BA5-9B39-608BA5394387}.TheText_Release|Win32.ActiveCfg = Release(x86)|Win32
     54        {87835C33-64C9-4BA5-9B39-608BA5394387}.TheText_Release|Win32.Build.0 = Release(x86)|Win32
    5555    EndGlobalSection
    5656    GlobalSection(SolutionProperties) = preSolution
  • trunk/ab5.0/abdev/abcompiler64.sln

    r475 r480  
    55EndProject
    66Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "jenga", "..\jenga\projects\jenga\jenga.vcproj", "{F01805B6-65B4-4708-88F4-A5E07DEA9FBD}"
     7EndProject
     8Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ab_common", "ab_common\ab_common.vcproj", "{87835C33-64C9-4BA5-9B39-608BA5394387}"
    79EndProject
    810Global
     
    1618        {864B921B-423B-4F9E-9E6B-31B15968EDF9}.Release|Win32.ActiveCfg = Release|Win32
    1719        {864B921B-423B-4F9E-9E6B-31B15968EDF9}.Release|Win32.Build.0 = Release|Win32
    18         {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.Debug|Win32.ActiveCfg = Debug(amd64)|Win32
    19         {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.Debug|Win32.Build.0 = Debug(amd64)|Win32
    20         {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.Release|Win32.ActiveCfg = Release(amd64)|Win32
    21         {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.Release|Win32.Build.0 = Release(amd64)|Win32
     20        {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.Debug|Win32.ActiveCfg = Debug(x64)|Win32
     21        {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.Debug|Win32.Build.0 = Debug(x64)|Win32
     22        {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.Release|Win32.ActiveCfg = Release(x64)|Win32
     23        {F01805B6-65B4-4708-88F4-A5E07DEA9FBD}.Release|Win32.Build.0 = Release(x64)|Win32
     24        {87835C33-64C9-4BA5-9B39-608BA5394387}.Debug|Win32.ActiveCfg = Debug(x64)|Win32
     25        {87835C33-64C9-4BA5-9B39-608BA5394387}.Debug|Win32.Build.0 = Debug(x64)|Win32
     26        {87835C33-64C9-4BA5-9B39-608BA5394387}.Release|Win32.ActiveCfg = Release(x64)|Win32
     27        {87835C33-64C9-4BA5-9B39-608BA5394387}.Release|Win32.Build.0 = Release(x64)|Win32
    2228    EndGlobalSection
    2329    GlobalSection(SolutionProperties) = preSolution
  • trunk/ab5.0/jenga/include/common/Environment.h

    r477 r480  
    1717{
    1818public:
     19    static const std::string GetCurrentDir()
     20    {
     21        char temp[MAX_PATH];
     22        ::GetCurrentDirectory( MAX_PATH, temp );
     23        return temp;
     24    }
     25
    1926    static const std::string &GetAppDir()
    2027    {
  • trunk/ab5.0/jenga/include/common/Path.h

    r467 r480  
    6464
    6565    static std::string MakeFullPath( const std::string &relativePath, const std::string &baseDirPath );
     66    static std::string MakeFullPathByCurrentDirectory( const std::string &relativePath );
    6667};
    6768
  • trunk/ab5.0/jenga/projects/jenga/jenga.vcproj

    r474 r480  
    1616    <Configurations>
    1717        <Configuration
    18             Name="Debug(amd64)|Win32"
     18            Name="Debug(x64)|Win32"
    1919            OutputDirectory="$(SolutionDir)$(ConfigurationName)"
    2020            IntermediateDirectory="$(ConfigurationName)"
     
    8080        </Configuration>
    8181        <Configuration
    82             Name="Release(amd64)|Win32"
     82            Name="Release(x64)|Win32"
    8383            OutputDirectory="$(SolutionDir)$(ConfigurationName)"
    8484            IntermediateDirectory="$(ConfigurationName)"
  • trunk/ab5.0/jenga/src/common/Path.cpp

    r477 r480  
    11#include <boost/foreach.hpp>
     2#include <jenga/include/common/Environment.h>
    23#include <jenga/include/common/Path.h>
    34
     
    7778    return resultPath;
    7879}
     80std::string Jenga::Common::Path::MakeFullPathByCurrentDirectory( const std::string &relativePath )
     81{
     82    return MakeFullPath( relativePath, Jenga::Common::Environment::GetCurrentDir() );
     83}
Note: See TracChangeset for help on using the changeset viewer.