[mapguide-commits] r10166 - in branches/4.0/MgDev/Bindings/src/Bindings/DotNet: Foundation Geometry MapGuideCommon PlatformBase Portable Web
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Sat Aug 9 09:38:39 PDT 2025
Author: jng
Date: 2025-08-09 09:38:38 -0700 (Sat, 09 Aug 2025)
New Revision: 10166
Modified:
branches/4.0/MgDev/Bindings/src/Bindings/DotNet/Foundation/FoundationApi.vcxproj
branches/4.0/MgDev/Bindings/src/Bindings/DotNet/Geometry/GeometryApi.vcxproj
branches/4.0/MgDev/Bindings/src/Bindings/DotNet/MapGuideCommon/MapGuideCommonApi.vcxproj
branches/4.0/MgDev/Bindings/src/Bindings/DotNet/PlatformBase/PlatformBaseApi.vcxproj
branches/4.0/MgDev/Bindings/src/Bindings/DotNet/Portable/PortableApi.vcxproj
branches/4.0/MgDev/Bindings/src/Bindings/DotNet/Web/WebApi.vcxproj
Log:
Bail on bindings pre-build if swig.exe is not found
Modified: branches/4.0/MgDev/Bindings/src/Bindings/DotNet/Foundation/FoundationApi.vcxproj
===================================================================
--- branches/4.0/MgDev/Bindings/src/Bindings/DotNet/Foundation/FoundationApi.vcxproj 2025-08-09 15:53:42 UTC (rev 10165)
+++ branches/4.0/MgDev/Bindings/src/Bindings/DotNet/Foundation/FoundationApi.vcxproj 2025-08-09 16:38:38 UTC (rev 10166)
@@ -56,7 +56,11 @@
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<PreBuildEvent>
- <Command>if exist "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Foundation\*.cs" del /Q "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Foundation\*.cs"
+ <Command>if not exist "$(SWIG_DIR)\swig.exe" (
+ echo "swig.exe not found. Ensure that the SWIG_DIR environment variable is set to the directory containing swig.exe"
+ exit /B 1
+)
+if exist "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Foundation\*.cs" del /Q "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Foundation\*.cs"
if exist "$(ProjectDir)FoundationApi_Properties.i" del /Q "$(ProjectDir)FoundationApi_Properties.i"
"..\..\..\IMake\$(Platform)\$(Configuration)\bin\IMake.exe" -p "$(ProjectDir)FoundationConstants.xml" -l C# -o "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Foundation\Constants.cs" -t
copy "$(ProjectDir)..\dotnetcore_split.i" "$(ProjectDir)language.i"
@@ -97,7 +101,11 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<PreBuildEvent>
- <Command>if exist "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Foundation\*.cs" del /Q "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Foundation\*.cs"
+ <Command>if not exist "$(SWIG_DIR)\swig.exe" (
+ echo "swig.exe not found. Ensure that the SWIG_DIR environment variable is set to the directory containing swig.exe"
+ exit /B 1
+)
+if exist "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Foundation\*.cs" del /Q "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Foundation\*.cs"
if exist "$(ProjectDir)FoundationApi_Properties.i" del /Q "$(ProjectDir)FoundationApi_Properties.i"
"..\..\..\IMake\$(Platform)\$(Configuration)\bin\IMake.exe" -p "$(ProjectDir)FoundationConstants.xml" -l C# -o "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Foundation\Constants.cs" -t
copy "$(ProjectDir)..\dotnetcore_split.i" "$(ProjectDir)language.i"
Modified: branches/4.0/MgDev/Bindings/src/Bindings/DotNet/Geometry/GeometryApi.vcxproj
===================================================================
--- branches/4.0/MgDev/Bindings/src/Bindings/DotNet/Geometry/GeometryApi.vcxproj 2025-08-09 15:53:42 UTC (rev 10165)
+++ branches/4.0/MgDev/Bindings/src/Bindings/DotNet/Geometry/GeometryApi.vcxproj 2025-08-09 16:38:38 UTC (rev 10166)
@@ -56,7 +56,11 @@
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<PreBuildEvent>
- <Command>if exist "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Geometry\*.cs" del /Q "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Geometry\*.cs"
+ <Command>if not exist "$(SWIG_DIR)\swig.exe" (
+ echo "swig.exe not found. Ensure that the SWIG_DIR environment variable is set to the directory containing swig.exe"
+ exit /B 1
+)
+if exist "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Geometry\*.cs" del /Q "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Geometry\*.cs"
if exist "$(ProjectDir)GeometryApi_Properties.i" del /Q "$(ProjectDir)GeometryApi_Properties.i"
"..\..\..\IMake\$(Platform)\$(Configuration)\bin\IMake.exe" -p "$(ProjectDir)GeometryConstants.xml" -l C# -o "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Geometry\Constants.cs" -t
copy "$(ProjectDir)..\dotnetcore_split.i" "$(ProjectDir)language.i"
@@ -93,7 +97,11 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<PreBuildEvent>
- <Command>if exist "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Geometry\*.cs" del /Q "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Geometry\*.cs"
+ <Command>if not exist "$(SWIG_DIR)\swig.exe" (
+ echo "swig.exe not found. Ensure that the SWIG_DIR environment variable is set to the directory containing swig.exe"
+ exit /B 1
+)
+if exist "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Geometry\*.cs" del /Q "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Geometry\*.cs"
if exist "$(ProjectDir)GeometryApi_Properties.i" del /Q "$(ProjectDir)GeometryApi_Properties.i"
"..\..\..\IMake\$(Platform)\$(Configuration)\bin\IMake.exe" -p "$(ProjectDir)GeometryConstants.xml" -l C# -o "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Geometry\Constants.cs" -t
copy "$(ProjectDir)..\dotnetcore_split.i" "$(ProjectDir)language.i"
Modified: branches/4.0/MgDev/Bindings/src/Bindings/DotNet/MapGuideCommon/MapGuideCommonApi.vcxproj
===================================================================
--- branches/4.0/MgDev/Bindings/src/Bindings/DotNet/MapGuideCommon/MapGuideCommonApi.vcxproj 2025-08-09 15:53:42 UTC (rev 10165)
+++ branches/4.0/MgDev/Bindings/src/Bindings/DotNet/MapGuideCommon/MapGuideCommonApi.vcxproj 2025-08-09 16:38:38 UTC (rev 10166)
@@ -56,7 +56,11 @@
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<PreBuildEvent>
- <Command>if exist "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.MapGuideCommon\*.cs" del /Q "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.MapGuideCommon\*.cs"
+ <Command>if not exist "$(SWIG_DIR)\swig.exe" (
+ echo "swig.exe not found. Ensure that the SWIG_DIR environment variable is set to the directory containing swig.exe"
+ exit /B 1
+)
+if exist "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.MapGuideCommon\*.cs" del /Q "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.MapGuideCommon\*.cs"
if exist "$(ProjectDir)MapGuideCommonApi_Properties.i" del /Q "$(ProjectDir)MapGuideCommonApi_Properties.i"
"..\..\..\IMake\$(Platform)\$(Configuration)\bin\IMake.exe" -p "$(ProjectDir)MapGuideCommonConstants.xml" -l C# -o "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.MapGuideCommon\Constants.cs" -t
copy "$(ProjectDir)..\dotnetcore_split.i" "$(ProjectDir)language.i"
@@ -94,7 +98,11 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<PreBuildEvent>
- <Command>if exist "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.MapGuideCommon\*.cs" del /Q "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.MapGuideCommon\*.cs"
+ <Command>if not exist "$(SWIG_DIR)\swig.exe" (
+ echo "swig.exe not found. Ensure that the SWIG_DIR environment variable is set to the directory containing swig.exe"
+ exit /B 1
+)
+if exist "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.MapGuideCommon\*.cs" del /Q "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.MapGuideCommon\*.cs"
if exist "$(ProjectDir)MapGuideCommonApi_Properties.i" del /Q "$(ProjectDir)MapGuideCommonApi_Properties.i"
"..\..\..\IMake\$(Platform)\$(Configuration)\bin\IMake.exe" -p "$(ProjectDir)MapGuideCommonConstants.xml" -l C# -o "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.MapGuideCommon\Constants.cs" -t
copy "$(ProjectDir)..\dotnetcore_split.i" "$(ProjectDir)language.i"
Modified: branches/4.0/MgDev/Bindings/src/Bindings/DotNet/PlatformBase/PlatformBaseApi.vcxproj
===================================================================
--- branches/4.0/MgDev/Bindings/src/Bindings/DotNet/PlatformBase/PlatformBaseApi.vcxproj 2025-08-09 15:53:42 UTC (rev 10165)
+++ branches/4.0/MgDev/Bindings/src/Bindings/DotNet/PlatformBase/PlatformBaseApi.vcxproj 2025-08-09 16:38:38 UTC (rev 10166)
@@ -56,7 +56,11 @@
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<PreBuildEvent>
- <Command>if exist "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.PlatformBase\*.cs" del /Q "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.PlatformBase\*.cs"
+ <Command>if not exist "$(SWIG_DIR)\swig.exe" (
+ echo "swig.exe not found. Ensure that the SWIG_DIR environment variable is set to the directory containing swig.exe"
+ exit /B 1
+)
+if exist "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.PlatformBase\*.cs" del /Q "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.PlatformBase\*.cs"
if exist "$(ProjectDir)PlatformBaseApi_Properties.i" del /Q "$(ProjectDir)PlatformBaseApi_Properties.i"
"..\..\..\IMake\$(Platform)\$(Configuration)\bin\IMake.exe" -p "$(ProjectDir)PlatformBaseConstants.xml" -l C# -o "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.PlatformBase\Constants.cs" -t
copy "$(ProjectDir)..\dotnetcore_split.i" "$(ProjectDir)language.i"
@@ -95,7 +99,11 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<PreBuildEvent>
- <Command>if exist "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.PlatformBase\*.cs" del /Q "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.PlatformBase\*.cs"
+ <Command>if not exist "$(SWIG_DIR)\swig.exe" (
+ echo "swig.exe not found. Ensure that the SWIG_DIR environment variable is set to the directory containing swig.exe"
+ exit /B 1
+)
+if exist "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.PlatformBase\*.cs" del /Q "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.PlatformBase\*.cs"
if exist "$(ProjectDir)PlatformBaseApi_Properties.i" del /Q "$(ProjectDir)PlatformBaseApi_Properties.i"
"..\..\..\IMake\$(Platform)\$(Configuration)\bin\IMake.exe" -p "$(ProjectDir)PlatformBaseConstants.xml" -l C# -o "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.PlatformBase\Constants.cs" -t
copy "$(ProjectDir)..\dotnetcore_split.i" "$(ProjectDir)language.i"
Modified: branches/4.0/MgDev/Bindings/src/Bindings/DotNet/Portable/PortableApi.vcxproj
===================================================================
--- branches/4.0/MgDev/Bindings/src/Bindings/DotNet/Portable/PortableApi.vcxproj 2025-08-09 15:53:42 UTC (rev 10165)
+++ branches/4.0/MgDev/Bindings/src/Bindings/DotNet/Portable/PortableApi.vcxproj 2025-08-09 16:38:38 UTC (rev 10166)
@@ -56,7 +56,11 @@
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<PreBuildEvent>
- <Command>if exist "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Portable\*.cs" del /Q "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Portable\*.cs"
+ <Command>if not exist "$(SWIG_DIR)\swig.exe" (
+ echo "swig.exe not found. Ensure that the SWIG_DIR environment variable is set to the directory containing swig.exe"
+ exit /B 1
+)
+if exist "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Portable\*.cs" del /Q "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Portable\*.cs"
if exist "$(ProjectDir)PortableApi_Properties.i" del /Q "$(ProjectDir)PortableApi_Properties.i"
"..\..\..\IMake\$(Platform)\$(Configuration)\bin\IMake.exe" -p "$(ProjectDir)PortableConstants.xml" -l C# -o "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Portable\Constants.cs" -t
copy "$(ProjectDir)..\dotnetcore_split.i" "$(ProjectDir)language.i"
@@ -94,7 +98,11 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<PreBuildEvent>
- <Command>if exist "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Portable\*.cs" del /Q "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Portable\*.cs"
+ <Command>if not exist "$(SWIG_DIR)\swig.exe" (
+ echo "swig.exe not found. Ensure that the SWIG_DIR environment variable is set to the directory containing swig.exe"
+ exit /B 1
+)
+if exist "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Portable\*.cs" del /Q "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Portable\*.cs"
if exist "$(ProjectDir)PortableApi_Properties.i" del /Q "$(ProjectDir)PortableApi_Properties.i"
"..\..\..\IMake\$(Platform)\$(Configuration)\bin\IMake.exe" -p "$(ProjectDir)PortableConstants.xml" -l C# -o "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Portable\Constants.cs" -t
copy "$(ProjectDir)..\dotnetcore_split.i" "$(ProjectDir)language.i"
Modified: branches/4.0/MgDev/Bindings/src/Bindings/DotNet/Web/WebApi.vcxproj
===================================================================
--- branches/4.0/MgDev/Bindings/src/Bindings/DotNet/Web/WebApi.vcxproj 2025-08-09 15:53:42 UTC (rev 10165)
+++ branches/4.0/MgDev/Bindings/src/Bindings/DotNet/Web/WebApi.vcxproj 2025-08-09 16:38:38 UTC (rev 10166)
@@ -56,7 +56,11 @@
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<PreBuildEvent>
- <Command>if exist "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Web\*.cs" del /Q "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Web\*.cs"
+ <Command>if not exist "$(SWIG_DIR)\swig.exe" (
+ echo "swig.exe not found. Ensure that the SWIG_DIR environment variable is set to the directory containing swig.exe"
+ exit /B 1
+)
+if exist "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Web\*.cs" del /Q "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Web\*.cs"
if exist "$(ProjectDir)WebApi_Properties.i" del /Q "$(ProjectDir)WebApi_Properties.i"
"..\..\..\IMake\$(Platform)\$(Configuration)\bin\IMake.exe" -p "$(ProjectDir)WebConstants.xml" -l C# -o "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Web\Constants.cs" -t
copy "$(ProjectDir)..\dotnetcore_split.i" "$(ProjectDir)language.i"
@@ -97,7 +101,11 @@
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<PreBuildEvent>
- <Command>if exist "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Web\*.cs" del /Q "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Web\*.cs"
+ <Command>if not exist "$(SWIG_DIR)\swig.exe" (
+ echo "swig.exe not found. Ensure that the SWIG_DIR environment variable is set to the directory containing swig.exe"
+ exit /B 1
+)
+if exist "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Web\*.cs" del /Q "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Web\*.cs"
if exist "$(ProjectDir)WebApi_Properties.i" del /Q "$(ProjectDir)WebApi_Properties.i"
"..\..\..\IMake\$(Platform)\$(Configuration)\bin\IMake.exe" -p "$(ProjectDir)WebConstants.xml" -l C# -o "$(ProjectDir)..\..\..\Managed\DotNet\OSGeo.MapGuide.Web\Constants.cs" -t
copy "$(ProjectDir)..\dotnetcore_split.i" "$(ProjectDir)language.i"
More information about the mapguide-commits
mailing list