Browse Source

renamed winapi to win32

mattias 9 months ago
parent
commit
b1da3401b8
2 changed files with 9 additions and 9 deletions
  1. 8 8
      src/fresnel.lpk
  2. 1 1
      src/win32/fresnel.win32.pas

+ 8 - 8
src/fresnel.lpk

@@ -7,13 +7,13 @@
     <CompilerOptions>
       <Version Value="11"/>
       <SearchPaths>
-        <OtherUnitFiles Value="skia/skia4delphi;winapi"/>
+        <OtherUnitFiles Value="skia/skia4delphi;win32"/>
         <UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/>
       </SearchPaths>
       <Conditionals Value="// FresnelBackend
 if FresnelBackend+&apos;&apos;=&apos;&apos; then begin
   if (TargetOS=&apos;win32&apos;) or (TargetOS=&apos;win64&apos;) then
-    FresnelBackend := &apos;winapi&apos;
+    FresnelBackend := &apos;win32&apos;
   else if TargetOS=&apos;darwin&apos; then
     FresnelBackend := &apos;cocoa&apos;
   else
@@ -32,9 +32,9 @@ if FresnelBackend=&apos;gtk3&apos; then begin
 end else if FresnelBackend=&apos;cocoa&apos; then begin
   CustomOptions := &apos;-dFresnelCocoa&apos;;
   UnitPath := &apos;cocoa&apos;;
-end else if FresnelBackend=&apos;winapi&apos; then begin
-  CustomOptions := &apos;-dFresnelWinapi&apos;;
-  UnitPath := &apos;winapi&apos;;
+end else if FresnelBackend=&apos;win32&apos; then begin
+  CustomOptions := &apos;-dFresnelWin32&apos;;
+  UnitPath := &apos;win32&apos;;
 end;
 if FresnelRenderer=&apos;skia&apos; then begin
   CustomOptions += &apos; -dFresnelSkia&apos;;
@@ -55,7 +55,7 @@ end;"/>
           <Values Count="3">
             <Item1 Value="gtk3"/>
             <Item2 Value="cocoa"/>
-            <Item3 Value="winapi"/>
+            <Item3 Value="win32"/>
           </Values>
           <ValueDescriptions Count="3"/>
         </Item1>
@@ -112,9 +112,9 @@ The skia backend requires the sk4d library, e.g. sk4d.dll for Windows. A version
         <UnitName Value="Fresnel.App"/>
       </Item>
       <Item>
-        <Filename Value="winapi/fresnel.winapi.pas"/>
+        <Filename Value="win32/fresnel.win32.pas"/>
         <AddToUsesPkgSection Value="False"/>
-        <UnitName Value="Fresnel.WinApi"/>
+        <UnitName Value="Fresnel.Win32"/>
       </Item>
     </Files>
     <RequiredPkgs>

+ 1 - 1
src/winapi/fresnel.winapi.pas → src/win32/fresnel.win32.pas

@@ -1,4 +1,4 @@
-unit Fresnel.WinApi;
+unit Fresnel.Win32;
 
 {$mode objfpc}{$H+}
 {$IF FPC_FULLVERSION>30300}