Skip to content

Commit

Permalink
Build: updated build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
radioman committed Jan 30, 2013
1 parent 3a656f2 commit 02ced88
Show file tree
Hide file tree
Showing 14 changed files with 106 additions and 45 deletions.
15 changes: 15 additions & 0 deletions Build/Build Demos NET-CF.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

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

set builddir3=Release-NETv3.5CF
mkdir .\%builddir3%
del /q /s .\%builddir3%\*.*

%msbuildexe3% /nologo /p:WarningLevel=0;Optimize=True;Platform=AnyCPU;TargetFrameworkVersion=v3.5 /clp:Verbosity=m; /t:Rebuild /p:Configuration=Release ..\Demo.WindowsMobile\Demo.WindowsMobile.csproj

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

pause
24 changes: 24 additions & 0 deletions Build/Build Demos NET2.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

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

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

set builddir3=Release-NETv3.5
mkdir .\%builddir3%
del /q /s .\%builddir3%\*.*

%msbuildexe3% /nologo /p:WarningLevel=0;Optimize=True;Platform=AnyCPU;TargetFrameworkVersion=v2.0 /clp:Verbosity=m; /t:Rebuild /p:Configuration=Release ..\Demo.WindowsForms\Demo.WindowsForms.csproj

%msbuildexe3% /nologo /p:WarningLevel=0;Optimize=True;Platform=AnyCPU;TargetFrameworkVersion=v3.5 /clp:Verbosity=m; /t:Rebuild /p:Configuration=Release ..\Demo.WindowsPresentation\Demo.WindowsPresentation.csproj

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

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

pause
17 changes: 17 additions & 0 deletions Build/Build Demos NET4.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

set TargetFrameworkVersion4=v4.0

set msbuildexe=%WINDIR%\Microsoft.NET\Framework\v4.0.30319\msbuild.exe

set builddir=Release-NET%TargetFrameworkVersion4%
mkdir .\%builddir%
del /q /s .\%builddir%\*.*

%msbuildexe% /nologo /p:WarningLevel=0;Optimize=True;Platform=AnyCPU;TargetFrameworkVersion=%TargetFrameworkVersion4% /clp:Verbosity=m; /t:Rebuild /p:Configuration=Release ..\Demo.WindowsForms\Demo.WindowsForms.csproj

%msbuildexe% /nologo /p:WarningLevel=0;Optimize=True;Platform=AnyCPU;TargetFrameworkVersion=%TargetFrameworkVersion4% /clp:Verbosity=m; /t:Rebuild /p:Configuration=Release ..\Demo.WindowsPresentation\Demo.WindowsPresentation.csproj

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

pause
21 changes: 0 additions & 21 deletions Build/Build Demos.bat

This file was deleted.

20 changes: 20 additions & 0 deletions Build/release-cf.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

cd .\Release-NETv3.5CF

"C:\Program Files\7-Zip\7z.exe" a ..\GMap.NET.WindowsMobile.zip GMap.NET.exe
"C:\Program Files\7-Zip\7z.exe" a ..\GMap.NET.WindowsMobile.zip GMap.NET.WindowsMobile.dll
"C:\Program Files\7-Zip\7z.exe" a ..\GMap.NET.WindowsMobile.zip System.Data.SQLite.dll
"C:\Program Files\7-Zip\7z.exe" a ..\GMap.NET.WindowsMobile.zip System.Data.SQLite.xml
"C:\Program Files\7-Zip\7z.exe" a ..\GMap.NET.WindowsMobile.zip SQLite.Interop.081.dll

"C:\Program Files\7-Zip\7z.exe" a ..\GMap.NET.WindowsMobile.zip OpenNETCF.Configuration.dll
"C:\Program Files\7-Zip\7z.exe" a ..\GMap.NET.WindowsMobile.zip OpenNETCF.Configuration.xml
"C:\Program Files\7-Zip\7z.exe" a ..\GMap.NET.WindowsMobile.zip OpenNETCF.dll
"C:\Program Files\7-Zip\7z.exe" a ..\GMap.NET.WindowsMobile.zip OpenNETCF.xml
"C:\Program Files\7-Zip\7z.exe" a ..\GMap.NET.WindowsMobile.zip System.Data.SqlClient.dll

"C:\Program Files\7-Zip\7z.exe" a ..\GMap.NET.WindowsMobile.zip ..\..\Info\License.txt

"C:\Program Files\7-Zip\7z.exe" t ..\GMap.NET.WindowsMobile.zip

pause
File renamed without changes.
6 changes: 4 additions & 2 deletions Build/release.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

cd .\Release
cd .\Release-NETv3.5

"C:\Program Files\7-Zip\7z.exe" a ..\GMap.NET.WindowsPresentation.zip Demo.WindowsPresentation.exe
"C:\Program Files\7-Zip\7z.exe" a ..\GMap.NET.WindowsPresentation.zip GMap.NET.Core.dll
Expand All @@ -12,6 +12,8 @@ cd .\Release

pause

cd ..\Release-NETv2.0

"C:\Program Files\7-Zip\7z.exe" a ..\GMap.NET.WindowsForms.zip Demo.WindowsForms.exe
"C:\Program Files\7-Zip\7z.exe" a ..\GMap.NET.WindowsForms.zip GMap.NET.Core.dll
"C:\Program Files\7-Zip\7z.exe" a ..\GMap.NET.WindowsForms.zip GMap.NET.Core.xml
Expand All @@ -21,4 +23,4 @@ pause

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

pause
pause
3 changes: 1 addition & 2 deletions Demo.WindowsForms/Demo.WindowsForms.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<CodeAnalysisFailOnMissingRules>false</CodeAnalysisFailOnMissingRules>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
<OutputPath>..\Build\Release\</OutputPath>
<OutputPath>..\Build\Release-NET$(TargetFrameworkVersion)\</OutputPath>
<DefineConstants>TRACE;MONO_disabled; SQLite</DefineConstants>
<CheckForOverflowUnderflow>true</CheckForOverflowUnderflow>
<Optimize>true</Optimize>
Expand Down Expand Up @@ -207,7 +207,6 @@
</Compile>
<Compile Include="Source\DemoStuff.cs" />
<Compile Include="Source\Map.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Source\Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
Expand Down
5 changes: 4 additions & 1 deletion Demo.WindowsMobile/Demo.WindowsMobile.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<OutputPath>..\Build\Release-NET$(TargetFrameworkVersion)CF\</OutputPath>
<DefineConstants>TRACE;PocketPC</DefineConstants>
<NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig>
Expand All @@ -51,6 +51,9 @@
<Compile Include="..\Demo.WindowsForms\Source\DemoStuff.cs">
<Link>Source\DemoStuff.cs</Link>
</Compile>
<Compile Include="..\GMap.NET.Core\Properties\VersionInfo.cs">
<Link>Properties\VersionInfo.cs</Link>
</Compile>
<Compile Include="Forms\Search.cs">
<SubType>UserControl</SubType>
</Compile>
Expand Down
9 changes: 2 additions & 7 deletions Demo.WindowsMobile/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,7 @@
// associated with an assembly.
[assembly: AssemblyTitle("Demo.WindowsMobile")]
[assembly: AssemblyDescription("Demo for GMap.NET.WindowsMobile")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Universe")]
[assembly: AssemblyProduct("Demo.WindowsMobile")]
[assembly: AssemblyCopyright("Copyright © Universe 2010")]
[assembly: AssemblyTrademark("[email protected]")]
[assembly: AssemblyCulture("")]
[assembly: AssemblyProduct("Demo.WindowsMobile")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
Expand All @@ -29,7 +24,7 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.0.0.0")]
//[assembly: AssemblyVersion("1.0.0.0")]

// Below attribute is to suppress FxCop warning "CA2232 : Microsoft.Usage : Add STAThreadAttribute to assembly"
// as Device app does not support STA thread.
Expand Down
2 changes: 1 addition & 1 deletion Demo.WindowsPresentation/Demo.WindowsPresentation.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|AnyCPU'">
<OutputPath>..\Build\Release\</OutputPath>
<OutputPath>..\Build\Release-NET$(TargetFrameworkVersion)\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<PlatformTarget>AnyCPU</PlatformTarget>
Expand Down
15 changes: 12 additions & 3 deletions GMap.NET.Core/Properties/VersionInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,16 @@
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyCulture("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Universe")]
[assembly: AssemblyCopyright("Copyright © Universe 2011")]
[assembly: AssemblyCopyright("Copyright © Universe 2013")]
[assembly: AssemblyTrademark("[email protected]")]

#if DEBUG
[assembly: AssemblyConfiguration("Debug")]
#else
[assembly: AssemblyConfiguration("Release")]
#endif

// Version information for an assembly consists of the following four values:
//
// Major Version
Expand All @@ -21,5 +26,9 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.7")]
[assembly: AssemblyVersion("1.7")]
[assembly: AssemblyInformationalVersion("1.7 beta")]

#if !PocketPC
[assembly: AssemblyFileVersion("1.7")]
#endif
3 changes: 3 additions & 0 deletions GMap.NET.WindowsMobile/GMap.NET.WindowsMobile.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,9 @@
<Compile Include="..\GMap.NET.Core\GMap.NET\StatusCodes.cs">
<Link>GMap.NET\StatusCodes.cs</Link>
</Compile>
<Compile Include="..\GMap.NET.Core\Properties\VersionInfo.cs">
<Link>Properties\VersionInfo.cs</Link>
</Compile>
<Compile Include="..\GMap.NET.WindowsForms\GMap.NET.ObjectModel\ObservableCollection.cs">
<Link>GMap.NET.ObjectModel\ObservableCollection.cs</Link>
</Compile>
Expand Down
11 changes: 3 additions & 8 deletions GMap.NET.WindowsMobile/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,12 @@
// associated with an assembly.
[assembly: AssemblyTitle("GMap.NET.WindowsMobile")]
[assembly: AssemblyDescription("GMap.NET - Great Maps for Windows Mobile")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Universe")]
[assembly: AssemblyProduct("GMap.NET.WindowsMobile")]
[assembly: AssemblyCopyright("Copyright © Universe 2010")]
[assembly: AssemblyTrademark("GMap.NET.WindowsMobile")]
[assembly: AssemblyCulture("")]


// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
[assembly: ComVisible(true)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("6ee21dc0-23c4-4502-8913-87bbf98c2859")]
Expand All @@ -31,5 +26,5 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.4.9.3")]
//[assembly: AssemblyVersion("1.4.9.3")]

0 comments on commit 02ced88

Please sign in to comment.