Skip to content

Commit

Permalink
Build: added MONO script
Browse files Browse the repository at this point in the history
  • Loading branch information
radioman committed Apr 29, 2015
1 parent 3e707cf commit 7bc9040
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 21 deletions.
29 changes: 29 additions & 0 deletions Build/Build Demos MONO.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

rem set msbuildexe=%WINDIR%\Microsoft.NET\Framework\v2.0.50727\msbuild.exe
rem set msbuildexe=%WINDIR%\Microsoft.NET\Framework\v3.5\msbuild.exe
set msbuildexe=%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe

set builddir2=Release-MONOv2.0
mkdir .\%builddir2%
del /q /s .\%builddir2%\*.*

set builddir4=Release-MONOv4.0
mkdir .\%builddir4%
del /q /s .\%builddir4%\*.*

%msbuildexe% /fl /flp:LogFile=build-mono.log;errorsonly /nologo /p:WarningLevel=0;Optimize=True;OutputPath="..\Build\%builddir2%";Platform=AnyCPU;DefineConstants="MONO;SQLite";TargetFrameworkVersion=v2.0 /clp:Verbosity=m; /t:Rebuild /p:Configuration=Release ..\Demo.WindowsForms\Demo.WindowsForms.csproj

%msbuildexe% /fl /flp:LogFile=build-mono.log;Append;errorsonly /nologo /p:WarningLevel=0;Optimize=True;OutputPath="..\Build\%builddir4%";Platform=AnyCPU;DefineConstants="MONO;SQLite";TargetFrameworkVersion=v4.0 /clp:Verbosity=m; /t:Rebuild /p:Configuration=Release ..\Demo.WindowsForms\Demo.WindowsForms.csproj

del /q /s .\%builddir2%\*.application
del /q /s .\%builddir2%\*.exe.manifest

del /q /s .\%builddir4%\*.application
del /q /s .\%builddir4%\*.exe.manifest

copy /b ..\Info\License.txt .\%builddir2%\License.txt
copy /b ..\Info\License.txt .\%builddir4%\License.txt

if "%1"=="nopause" goto end
pause
:end
3 changes: 3 additions & 0 deletions Build/Build Demos NET2.bat
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ del /q /s .\%builddir2%\*.exe.manifest
del /q /s .\%builddir3%\*.application
del /q /s .\%builddir3%\*.exe.manifest

copy /b ..\Info\License.txt .\%builddir2%\License.txt
copy /b ..\Info\License.txt .\%builddir3%\License.txt

if "%1"=="nopause" goto end
pause
:end
2 changes: 2 additions & 0 deletions Build/Build Demos NET4.bat
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ del /q /s .\%builddir%\*.*
del /q /s .\%builddir%\*.application
del /q /s .\%builddir%\*.exe.manifest

copy /b ..\Info\License.txt .\%builddir%\License.txt

if "%1"=="nopause" goto end
pause
:end
19 changes: 13 additions & 6 deletions Build/release-mono.bat
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@

"C:\Program Files\7-Zip\7z.exe" a GMap.NET.WindowsForms.Mono.tar Release-NETv2.0\Demo.WindowsForms.exe
"C:\Program Files\7-Zip\7z.exe" a GMap.NET.WindowsForms.Mono.tar Release-NETv2.0\GMap.NET.Core.dll
"C:\Program Files\7-Zip\7z.exe" a GMap.NET.WindowsForms.Mono.tar Release-NETv2.0\GMap.NET.Core.xml
"C:\Program Files\7-Zip\7z.exe" a GMap.NET.WindowsForms.Mono.tar Release-NETv2.0\GMap.NET.WindowsForms.dll
"C:\Program Files\7-Zip\7z.exe" a GMap.NET.WindowsForms.Mono.tar Release-NETv2.0\GMap.NET.WindowsForms.xml
"C:\Program Files\7-Zip\7z.exe" a GMap.NET.WindowsForms.Mono.tar Release-NETv2.0\License.txt
"C:\Program Files\7-Zip\7z.exe" a GMap.NET.WindowsForms.Mono.tar Release-MONOv2.0\Demo.WindowsForms.exe
"C:\Program Files\7-Zip\7z.exe" a GMap.NET.WindowsForms.Mono.tar Release-MONOv2.0\GMap.NET.Core.dll
"C:\Program Files\7-Zip\7z.exe" a GMap.NET.WindowsForms.Mono.tar Release-MONOv2.0\GMap.NET.Core.xml
"C:\Program Files\7-Zip\7z.exe" a GMap.NET.WindowsForms.Mono.tar Release-MONOv2.0\GMap.NET.WindowsForms.dll
"C:\Program Files\7-Zip\7z.exe" a GMap.NET.WindowsForms.Mono.tar Release-MONOv2.0\GMap.NET.WindowsForms.xml
"C:\Program Files\7-Zip\7z.exe" a GMap.NET.WindowsForms.Mono.tar Release-MONOv2.0\License.txt

"C:\Program Files\7-Zip\7z.exe" a GMap.NET.WindowsForms.Mono.tar Release-MONOv4.0\Demo.WindowsForms.exe
"C:\Program Files\7-Zip\7z.exe" a GMap.NET.WindowsForms.Mono.tar Release-MONOv4.0\GMap.NET.Core.dll
"C:\Program Files\7-Zip\7z.exe" a GMap.NET.WindowsForms.Mono.tar Release-MONOv4.0\GMap.NET.Core.xml
"C:\Program Files\7-Zip\7z.exe" a GMap.NET.WindowsForms.Mono.tar Release-MONOv4.0\GMap.NET.WindowsForms.dll
"C:\Program Files\7-Zip\7z.exe" a GMap.NET.WindowsForms.Mono.tar Release-MONOv4.0\GMap.NET.WindowsForms.xml
"C:\Program Files\7-Zip\7z.exe" a GMap.NET.WindowsForms.Mono.tar Release-MONOv4.0\License.txt

"C:\Program Files\7-Zip\7z.exe" t GMap.NET.WindowsForms.Mono.tar

Expand Down
24 changes: 12 additions & 12 deletions Demo.WindowsForms/Demo.WindowsForms.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@
</FileUpgradeFlags>
<OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation />
<IsWebBootstrapper>false</IsWebBootstrapper>
<TargetFrameworkProfile />
<NoWin32Manifest>False</NoWin32Manifest>
<DelaySign>False</DelaySign>
<AssemblyOriginatorKeyMode>File</AssemblyOriginatorKeyMode>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
<NoStdLib>False</NoStdLib>
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
<WarningLevel>4</WarningLevel>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
Expand All @@ -31,19 +42,8 @@
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
<NoWin32Manifest>False</NoWin32Manifest>
<DelaySign>False</DelaySign>
<AssemblyOriginatorKeyMode>File</AssemblyOriginatorKeyMode>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
<AllowUnsafeBlocks>False</AllowUnsafeBlocks>
<NoStdLib>False</NoStdLib>
<TreatWarningsAsErrors>False</TreatWarningsAsErrors>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>True</SignAssembly>
Expand Down Expand Up @@ -131,7 +131,7 @@
<TargetFrameworkVersionNumber>5.0</TargetFrameworkVersionNumber>
</PropertyGroup>
<Choose>
<When Condition=" '$(TargetFrameworkVersionNumber)' >= '4.0' ">
<When Condition=" '$(TargetFrameworkVersionNumber)' &gt;= '4.0' ">
<ItemGroup>
<Reference Include="Mono.Data.Sqlite">
<HintPath>..\References\Windows\NET4\Mono.Data.Sqlite.dll</HintPath>
Expand Down
8 changes: 5 additions & 3 deletions GMap.NET.Core/GMap.NET.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
<TargetFrameworkVersionNumber>5.0</TargetFrameworkVersionNumber>
</PropertyGroup>
<Choose>
<When Condition=" '$(TargetFrameworkVersionNumber)' >= '4.0' ">
<When Condition=" '$(TargetFrameworkVersionNumber)' &gt;= '4.0' ">
<ItemGroup>
<Reference Include="Mono.Data.Sqlite">
<HintPath>..\References\Windows\NET4\Mono.Data.Sqlite.dll</HintPath>
Expand Down Expand Up @@ -139,23 +139,25 @@
<Reference Include="Mono.Security">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\References\Windows\Npgsql\Mono.Security.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="MySql.Data">
<HintPath>..\References\Windows\MySql.Data.dll</HintPath>
<SpecificVersion>False</SpecificVersion>
<Private>True</Private>
<Private>False</Private>
</Reference>
<Reference Include="Npgsql">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\References\Windows\Npgsql\Npgsql.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data">
<Private>False</Private>
</Reference>
<Reference Include="System.Data.SqlServerCe">
<SpecificVersion>False</SpecificVersion>
<Private>True</Private>
<Private>False</Private>
</Reference>
<Reference Include="System.EnterpriseServices" />
<Reference Include="System.Web.Services" />
Expand Down

0 comments on commit 7bc9040

Please sign in to comment.