Skip to content

Commit

Permalink
Default builds to using VS2015
Browse files Browse the repository at this point in the history
Builds are now done using VS2015 which will require VC++ 2015 (or VC++ 2017 as they are compatible)

Remove VS2013 target from build.ps1
  • Loading branch information
amaitland committed Feb 5, 2018
1 parent 9f5a7ef commit a38df4a
Show file tree
Hide file tree
Showing 10 changed files with 64 additions and 36 deletions.
8 changes: 4 additions & 4 deletions CefSharp.BrowserSubprocess.Core/Resource.rc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
1 VERSIONINFO
FILEVERSION 63.0.0
PRODUCTVERSION 63.0.0
FILEVERSION 64.0.0
PRODUCTVERSION 64.0.0
FILEFLAGSMASK 0x17L
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -16,10 +16,10 @@ BEGIN
BLOCK "040904b0"
BEGIN
VALUE "FileDescription", "CefSharp.BrowserSubprocess.Core"
VALUE "FileVersion", "63.0.0"
VALUE "FileVersion", "64.0.0"
VALUE "LegalCopyright", "Copyright © 2010-2017 The CefSharp Authors"
VALUE "ProductName", "CefSharp"
VALUE "ProductVersion", "63.0.0"
VALUE "ProductVersion", "64.0.0"
END
END
BLOCK "VarFileInfo"
Expand Down
2 changes: 1 addition & 1 deletion CefSharp.BrowserSubprocess/app.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
xmlns:asmv3="urn:schemas-microsoft-com:asm.v3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<assemblyIdentity version="63.0.0.0" name="CefSharp.BrowserSubprocess.app" />
<assemblyIdentity version="64.0.0.0" name="CefSharp.BrowserSubprocess.app" />
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
Expand Down
8 changes: 4 additions & 4 deletions CefSharp.Core/Resource.rc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
1 VERSIONINFO
FILEVERSION 63.0.0
PRODUCTVERSION 63.0.0
FILEVERSION 64.0.0
PRODUCTVERSION 64.0.0
FILEFLAGSMASK 0x17L
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -16,10 +16,10 @@ BEGIN
BLOCK "040904b0"
BEGIN
VALUE "FileDescription", "CefSharp.Core"
VALUE "FileVersion", "63.0.0"
VALUE "FileVersion", "64.0.0"
VALUE "LegalCopyright", "Copyright © 2010-2017 The CefSharp Authors"
VALUE "ProductName", "CefSharp"
VALUE "ProductVersion", "63.0.0"
VALUE "ProductVersion", "64.0.0"
END
END
BLOCK "VarFileInfo"
Expand Down
2 changes: 1 addition & 1 deletion CefSharp.OffScreen.Example/app.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
xmlns:asmv3="urn:schemas-microsoft-com:asm.v3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<assemblyIdentity version="63.0.0.0" name="CefSharp.OffScreen.Example.app" />
<assemblyIdentity version="64.0.0.0" name="CefSharp.OffScreen.Example.app" />
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
Expand Down
2 changes: 1 addition & 1 deletion CefSharp.WinForms.Example/app.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
xmlns:asmv3="urn:schemas-microsoft-com:asm.v3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<assemblyIdentity version="63.0.0.0" name="CefSharp.WinForms.Example.app" />
<assemblyIdentity version="64.0.0.0" name="CefSharp.WinForms.Example.app" />

<dependency>
<dependentAssembly>
Expand Down
2 changes: 1 addition & 1 deletion CefSharp.Wpf.Example/app.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
xmlns:asmv3="urn:schemas-microsoft-com:asm.v3"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<assemblyIdentity version="63.0.0.0" name="CefSharp.Wpf.Example.app" />
<assemblyIdentity version="64.0.0.0" name="CefSharp.Wpf.Example.app" />
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
Expand Down
2 changes: 1 addition & 1 deletion CefSharp.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<PropertyGroup>
<VisualStudioProductVersion>2013</VisualStudioProductVersion>
<VisualStudioProductVersion Condition="'$(VisualStudioVersion)'=='14.0'">2015</VisualStudioProductVersion>
<VisualStudioProductVersion Condition="'$(VisualStudioVersion)'=='15.0'">2015</VisualStudioProductVersion>
<VisualStudioProductVersion Condition="'$(VisualStudioVersion)'=='15.0'">2017</VisualStudioProductVersion>

<PlatformToolset>v120</PlatformToolset>
<PlatformToolset Condition="'$(VisualStudioVersion)'=='14.0'">v140</PlatformToolset>
Expand Down
4 changes: 2 additions & 2 deletions CefSharp/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public static class AssemblyInfo
public const bool ComVisible = false;
public const string AssemblyCompany = "The CefSharp Authors";
public const string AssemblyProduct = "CefSharp";
public const string AssemblyVersion = "63.0.0";
public const string AssemblyFileVersion = "63.0.0.0";
public const string AssemblyVersion = "64.0.0";
public const string AssemblyFileVersion = "64.0.0.0";
public const string AssemblyCopyright = "Copyright © 2010-2017 The CefSharp Authors";
public const string CefSharpCoreProject = "CefSharp.Core, PublicKey=" + PublicKey;
public const string CefSharpBrowserSubprocessProject = "CefSharp.BrowserSubprocess, PublicKey=" + PublicKey;
Expand Down
5 changes: 2 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
environment:
VisualStudioVersion: 12.0
image: Visual Studio 2015

version: 63.0.0-CI{build}
version: 64.0.0-CI{build}

clone_depth: 10

Expand Down
65 changes: 47 additions & 18 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
param(
[ValidateSet("vs2013", "vs2015", "nupkg-only", "gitlink")]
[ValidateSet("vs2015", "vs2017", "nupkg-only", "gitlink")]
[Parameter(Position = 0)]
[string] $Target = "vs2013",
[string] $Target = "vs2015",
[Parameter(Position = 1)]
[string] $Version = "63.0.0",
[string] $Version = "64.0.0",
[Parameter(Position = 2)]
[string] $AssemblyVersion = "63.0.0"
[string] $AssemblyVersion = "64.0.0"
)

$WorkingDir = split-path -parent $MyInvocation.MyCommand.Definition
Expand Down Expand Up @@ -108,7 +108,7 @@ function TernaryReturn
function Msvs
{
param(
[ValidateSet('v120', 'v140')]
[ValidateSet('v140', 'v141')]
[Parameter(Position = 0, ValueFromPipeline = $true)]
[string] $Toolchain,

Expand All @@ -127,18 +127,47 @@ function Msvs
$VXXCommonTools = $null

switch -Exact ($Toolchain) {
'v120' {
$MSBuildExe = join-path -path (Get-ItemProperty "HKLM:\software\Microsoft\MSBuild\ToolsVersions\12.0").MSBuildToolsPath -childpath "msbuild.exe"
$MSBuildExe = $MSBuildExe -replace "Framework64", "Framework"
$VisualStudioVersion = '12.0'
$VXXCommonTools = Join-Path $env:VS120COMNTOOLS '..\..\vc'
}
'v140' {
$MSBuildExe = join-path -path (Get-ItemProperty "HKLM:\software\Microsoft\MSBuild\ToolsVersions\14.0").MSBuildToolsPath -childpath "msbuild.exe"
$MSBuildExe = $MSBuildExe -replace "Framework64", "Framework"
$VisualStudioVersion = '14.0'
$VXXCommonTools = Join-Path $env:VS140COMNTOOLS '..\..\vc'
}
'v141' {
$programFilesDir = (${env:ProgramFiles(x86)}, ${env:ProgramFiles} -ne $null)[0]

$vswherePath = Join-Path $programFilesDir 'Microsoft Visual Studio\Installer\vswhere.exe'
#Check if we already have vswhere which is included in newer versions of VS2017
if(-not (Test-Path $vswherePath))
{
Write-Diagnostic "Downloading VSWhere as no install found at $vswherePath"

# Check if we already have a local copy and download if required
$vswherePath = Join-Path $WorkingDir \vswhere.exe

# TODO: Check hash and download if hash differs
if(-not (Test-Path $vswherePath))
{
$client = New-Object System.Net.WebClient;
$client.DownloadFile('https://github.com/Microsoft/vswhere/releases/download/2.2.11/vswhere.exe', $vswherePath);
}
}

Write-Diagnostic "VSWhere path $vswherePath"

$VS2017InstallPath = & $vswherePath -version 15 -property installationPath

Write-Diagnostic "VS2017InstallPath: $VS2017InstallPath"

if(-not (Test-Path $VS2017InstallPath))
{
Die "Visual Studio 2017 was not found"
}

$MSBuildExe = "msbuild.exe"
$VisualStudioVersion = '15.0'
$VXXCommonTools = Join-Path $VS2017InstallPath VC\Auxiliary\Build
}
}

if ($VXXCommonTools -eq $null -or (-not (Test-Path($VXXCommonTools)))) {
Expand Down Expand Up @@ -202,17 +231,17 @@ function Msvs
function VSX
{
param(
[ValidateSet('v120', 'v140')]
[ValidateSet('v140', 'v141')]
[Parameter(Position = 0, ValueFromPipeline = $true)]
[string] $Toolchain
)

if($Toolchain -eq 'v120' -and $env:VS120COMNTOOLS -eq $null) {
if($Toolchain -eq 'v140' -and $env:VS140COMNTOOLS -eq $null) {
Warn "Toolchain $Toolchain is not installed on your development machine, skipping build."
Return
}

if($Toolchain -eq 'v140' -and $env:VS140COMNTOOLS -eq $null) {
if($Toolchain -eq 'v141' -and $env:VS141COMNTOOLS -eq $null) {
Warn "Toolchain $Toolchain is not installed on your development machine, skipping build."
Return
}
Expand Down Expand Up @@ -367,15 +396,15 @@ switch -Exact ($Target)
{
UpdateSymbolsWithGitLink
}
"vs2013"
"vs2015"
{
VSX v120
VSX v140
UpdateSymbolsWithGitLink
Nupkg
}
"vs2015"
"vs2017"
{
VSX v140
VSX v141
UpdateSymbolsWithGitLink
Nupkg
}
Expand Down

0 comments on commit a38df4a

Please sign in to comment.