Skip to content

Commit 6298ac5

Browse files
committed
created generic Build Modes
- it allow compilation over other OS without make changes - also changed the binary destination to /bin
1 parent 3db2664 commit 6298ac5

File tree

1 file changed

+45
-13
lines changed

1 file changed

+45
-13
lines changed

AWSCustomRuntime.lpi

Lines changed: 45 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,33 @@
1414
<UseAppBundle Value="False"/>
1515
<ResourceType Value="res"/>
1616
</General>
17-
<BuildModes Count="1">
18-
<Item1 Name="Linux" Default="True"/>
17+
<BuildModes Count="2">
18+
<Item1 Name="Debug" Default="True"/>
19+
<Item2 Name="Release">
20+
<CompilerOptions>
21+
<Version Value="11"/>
22+
<Target>
23+
<Filename Value="bin/$(TargetCPU)-$(TargetOS)/AWSCustomRuntime"/>
24+
</Target>
25+
<SearchPaths>
26+
<IncludeFiles Value="$(ProjOutDir)"/>
27+
<UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/>
28+
</SearchPaths>
29+
<CodeGeneration>
30+
<SmartLinkUnit Value="True"/>
31+
<TargetCPU Value="x86_64"/>
32+
<Optimizations>
33+
<OptimizationLevel Value="3"/>
34+
</Optimizations>
35+
</CodeGeneration>
36+
<Linking>
37+
<Debugging>
38+
<GenerateDebugInfo Value="False"/>
39+
</Debugging>
40+
<LinkSmart Value="True"/>
41+
</Linking>
42+
</CompilerOptions>
43+
</Item2>
1944
</BuildModes>
2045
<PublishOptions>
2146
<Version Value="2"/>
@@ -25,36 +50,43 @@
2550
<FormatVersion Value="2"/>
2651
<Modes Count="0"/>
2752
</RunParams>
28-
<Units Count="2">
53+
<Units Count="1">
2954
<Unit0>
3055
<Filename Value="AWSCustomRuntime.pas"/>
3156
<IsPartOfProject Value="True"/>
3257
</Unit0>
33-
<Unit1>
34-
<Filename Value=".gitignore.txt"/>
35-
<IsPartOfProject Value="True"/>
36-
</Unit1>
3758
</Units>
3859
</ProjectOptions>
3960
<CompilerOptions>
4061
<Version Value="11"/>
4162
<Target>
42-
<Filename Value="AWSCustomRuntime"/>
63+
<Filename Value="bin/$(TargetCPU)-$(TargetOS)/AWSCustomRuntime"/>
4364
</Target>
4465
<SearchPaths>
4566
<IncludeFiles Value="$(ProjOutDir)"/>
4667
<UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/>
4768
</SearchPaths>
69+
<Parsing>
70+
<SyntaxOptions>
71+
<IncludeAssertionCode Value="True"/>
72+
</SyntaxOptions>
73+
</Parsing>
4874
<CodeGeneration>
75+
<Checks>
76+
<IOChecks Value="True"/>
77+
<RangeChecks Value="True"/>
78+
<OverflowChecks Value="True"/>
79+
<StackChecks Value="True"/>
80+
</Checks>
81+
<VerifyObjMethodCallValidity Value="True"/>
4982
<TargetCPU Value="x86_64"/>
50-
<TargetOS Value="linux"/>
51-
<Optimizations>
52-
<OptimizationLevel Value="2"/>
53-
</Optimizations>
5483
</CodeGeneration>
5584
<Linking>
5685
<Debugging>
57-
<GenerateDebugInfo Value="False"/>
86+
<DebugInfoType Value="dsDwarf2Set"/>
87+
<UseHeaptrc Value="True"/>
88+
<TrashVariables Value="True"/>
89+
<UseExternalDbgSyms Value="True"/>
5890
</Debugging>
5991
</Linking>
6092
</CompilerOptions>

0 commit comments

Comments
 (0)