Changeset 52


Ignore:
Timestamp:
Feb 3, 2018, 8:51:28 PM (7 years ago)
Author:
chronos
Message:
  • Modified: Use Build mode in lib subdirectory.
  • Added: 1.0.1 Windows installer.
Files:
1 added
7 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        44heaptrclog.trc
        55BigMetro.exe
         6*.dbg
  • trunk/BigMetro.lpi

    r50 r52  
    1818      <EnableI18N LFM="False"/>
    1919    </i18n>
    20     <BuildModes Count="4">
     20    <BuildModes Count="2">
    2121      <Item1 Name="Debug" Default="True"/>
    2222      <Item2 Name="Release">
     
    2929            <IncludeFiles Value="$(ProjOutDir)"/>
    3030            <OtherUnitFiles Value="Forms"/>
    31             <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/>
     31            <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)-$(BuildMode)"/>
    3232          </SearchPaths>
    3333          <Parsing>
     
    4949              <GenerateDebugInfo Value="False"/>
    5050            </Debugging>
     51            <LinkSmart Value="True"/>
    5152            <Options>
    5253              <Win32>
     
    5556            </Options>
    5657          </Linking>
     58          <Other>
     59            <CompilerMessages>
     60              <IgnoredMessages idx5024="True"/>
     61            </CompilerMessages>
     62          </Other>
    5763        </CompilerOptions>
    5864      </Item2>
    59       <Item3 Name="Windows 32-bit">
    60         <CompilerOptions>
    61           <Version Value="11"/>
    62           <Target>
    63             <Filename Value="lib/$(TargetCPU)-$(TargetOS)/BigMetro"/>
    64           </Target>
    65           <SearchPaths>
    66             <IncludeFiles Value="$(ProjOutDir)"/>
    67             <OtherUnitFiles Value="Forms"/>
    68             <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/>
    69           </SearchPaths>
    70           <Parsing>
    71             <SyntaxOptions>
    72               <SyntaxMode Value="Delphi"/>
    73               <CStyleOperator Value="False"/>
    74               <AllowLabel Value="False"/>
    75               <CPPInline Value="False"/>
    76             </SyntaxOptions>
    77           </Parsing>
    78           <CodeGeneration>
    79             <SmartLinkUnit Value="True"/>
    80             <TargetCPU Value="i386"/>
    81             <TargetOS Value="win32"/>
    82             <Optimizations>
    83               <OptimizationLevel Value="3"/>
    84             </Optimizations>
    85           </CodeGeneration>
    86           <Linking>
    87             <Debugging>
    88               <GenerateDebugInfo Value="False"/>
    89             </Debugging>
    90             <Options>
    91               <Win32>
    92                 <GraphicApplication Value="True"/>
    93               </Win32>
    94             </Options>
    95           </Linking>
    96         </CompilerOptions>
    97       </Item3>
    98       <Item4 Name="Windows 64-bit">
    99         <CompilerOptions>
    100           <Version Value="11"/>
    101           <Target>
    102             <Filename Value="lib/$(TargetCPU)-$(TargetOS)/BigMetro"/>
    103           </Target>
    104           <SearchPaths>
    105             <IncludeFiles Value="$(ProjOutDir)"/>
    106             <OtherUnitFiles Value="Forms"/>
    107             <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/>
    108           </SearchPaths>
    109           <Parsing>
    110             <SyntaxOptions>
    111               <SyntaxMode Value="Delphi"/>
    112               <CStyleOperator Value="False"/>
    113               <AllowLabel Value="False"/>
    114               <CPPInline Value="False"/>
    115             </SyntaxOptions>
    116           </Parsing>
    117           <CodeGeneration>
    118             <SmartLinkUnit Value="True"/>
    119             <TargetCPU Value="x86_64"/>
    120             <TargetOS Value="win64"/>
    121             <Optimizations>
    122               <OptimizationLevel Value="3"/>
    123             </Optimizations>
    124           </CodeGeneration>
    125           <Linking>
    126             <Debugging>
    127               <GenerateDebugInfo Value="False"/>
    128             </Debugging>
    129             <Options>
    130               <Win32>
    131                 <GraphicApplication Value="True"/>
    132               </Win32>
    133             </Options>
    134           </Linking>
    135         </CompilerOptions>
    136       </Item4>
    13765    </BuildModes>
    13866    <PublishOptions>
     
    194122      <IncludeFiles Value="$(ProjOutDir)"/>
    195123      <OtherUnitFiles Value="Forms"/>
    196       <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/>
     124      <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)-$(BuildMode)"/>
    197125    </SearchPaths>
    198126    <Parsing>
     
    216144      <Debugging>
    217145        <UseHeaptrc Value="True"/>
     146        <UseExternalDbgSyms Value="True"/>
    218147      </Debugging>
    219148      <Options>
  • trunk/Install/win

    • Property svn:ignore set to
      *.exe
  • trunk/Install/win/BigMetro.iss

    r47 r52  
    44#define MyAppName "BigMetro"
    55#define MyAppNameShort "BigMetro"
    6 #define MyAppVersion "1.0.0"
     6#define MyAppVersion "1.0.1"
    77#define MyAppPublisher "Chronosoft"
    88#define MyAppPublisherShort "Chronosoft"
     
    5353
    5454[Files]
    55 Source: "{#MyAppSubDir}\lib\x86_64-win64\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion; Check: Is64BitInstallMode
    56 Source: "{#MyAppSubDir}\lib\i386-win32\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion; Check: not Is64BitInstallMode
     55Source: "{#MyAppSubDir}\lib\x86_64-win64-Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion; Check: Is64BitInstallMode
     56Source: "{#MyAppSubDir}\lib\i386-win32-Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion; Check: not Is64BitInstallMode
    5757;Source: "{#MyAppSubDir}\Languages\*.po"; DestDir: "{app}\Languages"; Flags: ignoreversion
    5858
  • trunk/Install/win/build.bat

    r44 r52  
     1@echo off
     2
    13if not defined LAZDIR (
    24  set LAZDIR=C:\lazarus
    35)
    4 %LAZDIR%\lazbuild.exe --lazarusdir=%LAZDIR% --build-mode="Windows 32-bit" ..\..\BigMetro.lpi
    5 %LAZDIR%\lazbuild.exe --lazarusdir=%LAZDIR% --build-mode="Windows 64-bit" ..\..\BigMetro.lpi
     6SET PROJECTNAME=BigMetro
    67
    7 "c:\Program Files (x86)\Inno Setup 5\ISCC.exe" "BigMetro.iss"
     8SET MAIN_EXE=..\..\%PROJECTNAME%.exe
     9SET WIN32_EXE=..\..\lib\i386-win32-Release\%PROJECTNAME%.exe
     10SET WIN64_EXE=..\..\lib\x86_64-win64-Release\%PROJECTNAME%.exe
     11IF EXIST %MAIN_EXE% del %MAIN_EXE%
     12IF EXIST %WIN32_EXE% del %WIN32_EXE%
     13IF EXIST %WIN64_EXE% del %WIN64_EXE%
     14
     15%LAZDIR%\lazbuild.exe --lazarusdir=%LAZDIR% --build-mode="Release" --cpu=i386 --operating-system=Win32 ..\..\%PROJECTNAME%.lpi
     16copy %MAIN_EXE% %WIN32_EXE%
     17%LAZDIR%\lazbuild.exe --lazarusdir=%LAZDIR% --build-mode="Release" --cpu=x86_64 --operating-system=Win64 ..\..\%PROJECTNAME%.lpi
     18copy %MAIN_EXE% %WIN64_EXE%
     19
     20"c:\Program Files (x86)\Inno Setup 5\ISCC.exe" "%PROJECTNAME%.iss"
  • trunk/UEngine.pas

    r49 r52  
    13221322function TEngine.GetExistStationShapes: TStationShapeSet;
    13231323var
    1324   I: Integer;
    13251324  Station: TMapStation;
    13261325begin
     
    15301529procedure TEngine.ComputeShapeDistance;
    15311530var
    1532   I: Integer;
    15331531  S: TStationShape;
    15341532  Station: TMapStation;
     
    17731771  I: Integer;
    17741772  J: Integer;
    1775   Link1, Link2: TPoint;
     1773  //Link1, Link2: TPoint;
    17761774  NewPoint: TPoint;
    17771775  MetroLine: TMetroLine;
     
    17981796    with Track.Points[I] do
    17991797    if Assigned(Track.Points[I].LinkDown) and Assigned(Track.Points[I].LinkUp) then begin
     1798      {
    18001799      Link1 := (Track.Points[I].PositionDesigned + Track.Points[I].LinkDown.Shift) -
    18011800        (Track.Points[I - 1].PositionDesigned + Track.Points[I].LinkDown.Shift);
    18021801      if (I + 1) < Track.Points.Count then
    1803         Link2 := (Track.Points[I + 1].PositionDesigned + Track.Points[I].LinkUp.Shift) -
     1802      Link2 := (Track.Points[I + 1].PositionDesigned + Track.Points[I].LinkUp.Shift) -
    18041803          (Track.Points[I].PositionDesigned + Track.Points[I].LinkUp.Shift)
    18051804        else Link2 := Link1;
    18061805
    1807 {      if ArcTanPoint(Link1) = ArcTanPoint(Link2) then begin
     1806      if ArcTanPoint(Link1) = ArcTanPoint(Link2) then begin
    18081807        // Parallel lines
    18091808        NewPoint := Track.Points[I].PositionDesigned + Track.Points[I].LinkDown.Shift;
Note: See TracChangeset for help on using the changeset viewer.