Changeset 116


Ignore:
Timestamp:
Feb 3, 2018, 2:31:35 PM (6 years ago)
Author:
chronos
Message:
  • Modified: Build also StdAI DLL during Windows installer preparation.
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/AI/AIProject.lpi

    r27 r116  
    22<CONFIG>
    33  <ProjectOptions>
    4     <Version Value="9"/>
     4    <Version Value="10"/>
    55    <PathDelim Value="\"/>
    66    <General>
     
    1919      <EnableI18N LFM="False"/>
    2020    </i18n>
    21     <VersionInfo>
    22       <StringTable ProductVersion=""/>
    23     </VersionInfo>
    24     <BuildModes Count="4">
     21    <BuildModes Count="2">
    2522      <Item1 Name="Debug" Default="True"/>
    2623      <Item2 Name="Release">
     
    3330          <SearchPaths>
    3431            <IncludeFiles Value="$(ProjOutDir)"/>
    35             <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
     32            <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)-$(BuildMode)"/>
    3633          </SearchPaths>
    3734          <Parsing>
     
    6057          </Linking>
    6158          <Other>
    62             <CustomOptions Value="-dBorland -dVer150 -dDelphi7 -dCompiler6_Up -dPUREPASCAL"/>
     59            <CompilerMessages>
     60              <IgnoredMessages idx5024="True"/>
     61            </CompilerMessages>
    6362          </Other>
    6463        </CompilerOptions>
    6564      </Item2>
    66       <Item3 Name="Windows 32-bit">
    67         <CompilerOptions>
    68           <Version Value="11"/>
    69           <PathDelim Value="\"/>
    70           <Target>
    71             <Filename Value="lib\$(TargetCPU)-$(TargetOS)\StdAI"/>
    72           </Target>
    73           <SearchPaths>
    74             <IncludeFiles Value="$(ProjOutDir)"/>
    75             <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
    76           </SearchPaths>
    77           <Parsing>
    78             <SyntaxOptions>
    79               <SyntaxMode Value="Delphi"/>
    80               <CStyleOperator Value="False"/>
    81               <AllowLabel Value="False"/>
    82               <CPPInline Value="False"/>
    83             </SyntaxOptions>
    84           </Parsing>
    85           <CodeGeneration>
    86             <TargetCPU Value="i386"/>
    87             <TargetOS Value="win32"/>
    88             <Optimizations>
    89               <OptimizationLevel Value="3"/>
    90             </Optimizations>
    91           </CodeGeneration>
    92           <Linking>
    93             <Debugging>
    94               <GenerateDebugInfo Value="False"/>
    95             </Debugging>
    96             <Options>
    97               <Win32>
    98                 <GraphicApplication Value="True"/>
    99               </Win32>
    100               <ExecutableType Value="Library"/>
    101             </Options>
    102           </Linking>
    103           <Other>
    104             <CustomOptions Value="-dBorland -dVer150 -dDelphi7 -dCompiler6_Up -dPUREPASCAL"/>
    105           </Other>
    106         </CompilerOptions>
    107       </Item3>
    108       <Item4 Name="Windows 64-bit">
    109         <CompilerOptions>
    110           <Version Value="11"/>
    111           <PathDelim Value="\"/>
    112           <Target>
    113             <Filename Value="lib\$(TargetCPU)-$(TargetOS)\StdAI"/>
    114           </Target>
    115           <SearchPaths>
    116             <IncludeFiles Value="$(ProjOutDir)"/>
    117             <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
    118           </SearchPaths>
    119           <Parsing>
    120             <SyntaxOptions>
    121               <SyntaxMode Value="Delphi"/>
    122               <CStyleOperator Value="False"/>
    123               <AllowLabel Value="False"/>
    124               <CPPInline Value="False"/>
    125             </SyntaxOptions>
    126           </Parsing>
    127           <CodeGeneration>
    128             <TargetCPU Value="x86_64"/>
    129             <TargetOS Value="win64"/>
    130             <Optimizations>
    131               <OptimizationLevel Value="3"/>
    132             </Optimizations>
    133           </CodeGeneration>
    134           <Linking>
    135             <Debugging>
    136               <GenerateDebugInfo Value="False"/>
    137             </Debugging>
    138             <Options>
    139               <Win32>
    140                 <GraphicApplication Value="True"/>
    141               </Win32>
    142               <ExecutableType Value="Library"/>
    143             </Options>
    144           </Linking>
    145           <Other>
    146             <CustomOptions Value="-dBorland -dVer150 -dDelphi7 -dCompiler6_Up -dPUREPASCAL"/>
    147           </Other>
    148         </CompilerOptions>
    149       </Item4>
    15065    </BuildModes>
    15166    <PublishOptions>
     
    201116    <SearchPaths>
    202117      <IncludeFiles Value="$(ProjOutDir)"/>
    203       <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
     118      <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)-$(BuildMode)"/>
    204119    </SearchPaths>
    205120    <Parsing>
     
    230145    </Linking>
    231146    <Other>
    232       <CustomOptions Value="-dBorland -dVer150 -dDelphi7 -dCompiler6_Up -dPUREPASCAL"/>
     147      <CompilerMessages>
     148        <IgnoredMessages idx5024="True"/>
     149      </CompilerMessages>
    233150    </Other>
    234151  </CompilerOptions>
  • trunk/Install/win/C-evo.iss

    r114 r116  
    7070Source: "{#MyAppSubDir}\Language.txt"; DestDir: "{app}"; Flags: ignoreversion
    7171Source: "{#MyAppSubDir}\Language2.txt"; DestDir: "{app}"; Flags: ignoreversion
    72 Source: "{#MyAppSubDir}\AI\lib\x86_64-win64\StdAI.dll"; DestDir: "{app}\AI"; DestName: "StdAI-win64.dll"; Flags: ignoreversion; Check: Is64BitInstallMode
    73 Source: "{#MyAppSubDir}\AI\lib\i386-win32\StdAI.dll"; DestDir: "{app}\AI"; DestName: "StdAI-win32.dll"; Flags: ignoreversion; Check: not Is64BitInstallMode
     72Source: "{#MyAppSubDir}\AI\lib\x86_64-win64-Release\StdAI.dll"; DestDir: "{app}\AI"; DestName: "StdAI-win64.dll"; Flags: ignoreversion; Check: Is64BitInstallMode
     73Source: "{#MyAppSubDir}\AI\lib\i386-win32-Release\StdAI.dll"; DestDir: "{app}\AI"; DestName: "StdAI-win32.dll"; Flags: ignoreversion; Check: not Is64BitInstallMode
    7474Source: "{#MyAppSubDir}\AI\StdAI.png"; DestDir: "{app}\AI"; Flags: ignoreversion;
    7575Source: "{#MyAppSubDir}\AI\StdAI.ai.txt"; DestDir: "{app}\AI"; Flags: ignoreversion;
  • trunk/Install/win/build.bat

    r101 r116  
    44  set LAZDIR=C:\lazarus
    55)
     6
     7rem Build AI
     8SET PROJECTNAME=AIProject
     9SET MAIN_DLL=..\..\AI\StdAI.dll
     10SET WIN32_DLL=..\..\AI\lib\i386-win32-Release\StdAI.dll
     11SET WIN64_DLL=..\..\AI\lib\x86_64-win64-Release\StdAI.dll
     12IF EXIST %MAIN_DLL% del %MAIN_DLL%
     13IF EXIST %WIN32_DLL% del %WIN32_DLL%
     14IF EXIST %WIN64_DLL% del %WIN64_DLL%
     15
     16%LAZDIR%\lazbuild.exe --lazarusdir=%LAZDIR% --build-mode="Release" --cpu=i386 --operating-system=Win32 ..\..\AI\%PROJECTNAME%.lpi
     17copy %MAIN_DLL% %WIN32_DLL%
     18%LAZDIR%\lazbuild.exe --lazarusdir=%LAZDIR% --build-mode="Release" --cpu=x86_64 --operating-system=Win64 ..\..\AI\%PROJECTNAME%.lpi
     19copy %MAIN_DLL% %WIN64_DLL%
     20
     21rem Build game
    622SET PROJECTNAME=Integrated
    7 
    823SET MAIN_EXE=..\..\c-evo.exe
    924SET WIN32_EXE=..\..\lib\i386-win32-Release\c-evo.exe
Note: See TracChangeset for help on using the changeset viewer.