8282 <OtherUnitFiles Value =" source;source\metadarkstyle\src" />
8383 <UnitOutputDirectory Value =" bin\lib\$(TargetCPU)-$(TargetOS)" />
8484 </SearchPaths >
85- <Conditionals Value =" // example for adding linker options on Mac OS X
86- //if TargetOS=' darwin' then
87- // LinkerOptions := ' -framework OpenGL' ;
88- if TargetOS=' darwin' then
89- CustomOptions := ' -WM10.15' ;
85+ <Conditionals Value =" if TargetOS=' darwin' then
86+ CustomOptions := CustomOptions + ' -WM10.15' ;
9087
91- // example for adding a unit and include path on Windows
92- //if SrcOS=' win' then begin
93- // UnitPath += ' ;win' ;
94- // IncPath += ' ;win' ;
95- //end;" />
88+ if TargetOS=' win64' then
89+ CustomOptions := CustomOptions + ' -WB -WR' ;" />
9690 <CodeGeneration >
9791 <SmartLinkUnit Value =" True" />
9892 <Optimizations >
@@ -118,8 +112,6 @@ if TargetOS='darwin' then
118112 <CompilerMessages >
119113 <IgnoredMessages idx6058 =" True" idx5071 =" True" idx5062 =" True" idx5024 =" True" idx4104 =" True" idx4046 =" True" idx3177 =" True" idx3175 =" True" />
120114 </CompilerMessages >
121- <CustomOptions Value =" -WB
122- -WR" />
123115 </Other >
124116 </CompilerOptions >
125117 </Item >
@@ -476,17 +468,11 @@ if TargetOS='darwin' then
476468 <OtherUnitFiles Value =" source;source\metadarkstyle\src" />
477469 <UnitOutputDirectory Value =" bin\lib\$(TargetCPU)-$(TargetOS)" />
478470 </SearchPaths >
479- <Conditionals Value =" // example for adding linker options on Mac OS X
480- //if TargetOS=' darwin' then
481- // LinkerOptions := ' -framework OpenGL' ;
482- if TargetOS=' darwin' then
483- CustomOptions := ' -WM10.15' ;
471+ <Conditionals Value =" if TargetOS=' darwin' then
472+ CustomOptions := CustomOptions + ' -WM10.15' ;
484473
485- // example for adding a unit and include path on Windows
486- //if SrcOS=' win' then begin
487- // UnitPath += ' ;win' ;
488- // IncPath += ' ;win' ;
489- //end;" />
474+ if TargetOS=' win64' then
475+ CustomOptions := CustomOptions + ' -WB -WR' ;" />
490476 <Linking >
491477 <Debugging >
492478 <DebugInfoType Value =" dsDwarf3" />
@@ -503,8 +489,6 @@ if TargetOS='darwin' then
503489 <CompilerMessages >
504490 <IgnoredMessages idx6058 =" True" idx5071 =" True" idx5062 =" True" idx5024 =" True" idx4104 =" True" idx4046 =" True" idx3177 =" True" idx3175 =" True" />
505491 </CompilerMessages >
506- <CustomOptions Value =" -WB
507- -WR" />
508492 </Other >
509493 </CompilerOptions >
510494 <Debugging >
0 commit comments