From: Paul Durrant Date: Mon, 29 Jan 2018 10:30:47 +0000 (+0000) Subject: Add support for building with Visual Studio 2017 X-Git-Tag: 9.0.0-rc1~68 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=10452f46c24363f9317a29477482ae8b15c6a0f9;p=pvdrivers%2Fwin%2Fxenbus.git Add support for building with Visual Studio 2017 Also remove mappings for obsolete versions of VS in build.py. Signed-off-by: Paul Durrant --- diff --git a/build.py b/build.py index 191062c..97765b5 100755 --- a/build.py +++ b/build.py @@ -171,18 +171,28 @@ def shell(command, dir): return sub.returncode +def find(name, path): + for root, dirs, files in os.walk(path): + if name in files: + return os.path.join(root, name) + + class msbuild_failure(Exception): def __init__(self, value): self.value = value def __str__(self): return repr(self.value) + def msbuild(platform, configuration, target, file, args, dir): - os.environ['PLATFORM'] = platform - os.environ['CONFIGURATION'] = configuration - os.environ['TARGET'] = target - os.environ['FILE'] = file - os.environ['EXTRA'] = args + vcvarsall = find('vcvarsall.bat', os.environ['VS']) + + os.environ['MSBUILD_PLATFORM'] = platform + os.environ['MSBUILD_CONFIGURATION'] = configuration + os.environ['MSBUILD_TARGET'] = target + os.environ['MSBUILD_FILE'] = file + os.environ['MSBUILD_EXTRA'] = args + os.environ['MSBUILD_VCVARSALL'] = vcvarsall bin = os.path.join(os.getcwd(), 'msbuild.bat') @@ -200,8 +210,6 @@ def build_sln(name, release, arch, debug, vs): elif arch == 'x64': platform = 'x64' - cwd = os.getcwd() - msbuild(platform, configuration, 'Build', name + '.sln', '', vs) def copy_package(name, release, arch, debug, vs): @@ -357,23 +365,25 @@ def archive(filename, files, tgz=False): tar.close() - def getVsVersion(): - vsenv ={} - vars = subprocess.check_output([os.environ['VS']+'\\VC\\vcvarsall.bat', '&&', 'set'], shell=True) + vsenv = {} + vcvarsall= find('vcvarsall.bat', os.environ['VS']) + + vars = subprocess.check_output([vcvarsall, 'x86_amd64', '&&', 'set'], shell=True) + for var in vars.splitlines(): k, _, v = map(str.strip, var.strip().decode('utf-8').partition('=')) if k.startswith('?'): continue vsenv[k] = v - mapping = { '11.0':'vs2012', - '12.0':'vs2013', - '14.0':'vs2015' } + mapping = { '14.0':'vs2015', + '15.0':'vs2017'} return mapping[vsenv['VisualStudioVersion']] -if __name__ == '__main__': + +def main(): debug = { 'checked': True, 'free': False } sdv = { 'nosdv': False, None: True } driver = 'xenbus' @@ -418,9 +428,8 @@ if __name__ == '__main__': symstore_del(driver, 30) - release = { 'vs2012':'Windows Vista', - 'vs2013':'Windows 7', - 'vs2015':'Windows 8' } + release = { 'vs2015':'Windows 8', + 'vs2017':'Windows 8' } shutil.rmtree(driver, ignore_errors=True) @@ -441,4 +450,5 @@ if __name__ == '__main__': archive(driver + '\\source.tgz', manifest().splitlines(), tgz=True) archive(driver + '.tar', [driver,'revision']) - +if __name__ == '__main__': + main() diff --git a/msbuild.bat b/msbuild.bat index 1b1fbc8..a28f939 100755 --- a/msbuild.bat +++ b/msbuild.bat @@ -1,6 +1,8 @@ -call "%VS%\VC\vcvarsall.bat" x86 +set MSBUILD_ROOT=%cd% +call "%MSBUILD_VCVARSALL%" x86_amd64 @echo on -msbuild.exe /m:1 /p:Configuration="%CONFIGURATION%" /p:Platform="%PLATFORM%" /t:"%TARGET%" %EXTRA% %FILE% +cd "%MSBUILD_ROOT%" +msbuild.exe /m:1 /p:Configuration="%MSBUILD_CONFIGURATION%" /p:Platform="%MSBUILD_PLATFORM%" /t:"%MSBUILD_TARGET%" %MSBUILD_EXTRA% %MSBUILD_FILE% if errorlevel 1 goto error exit 0 diff --git a/vs2017/configs.props b/vs2017/configs.props new file mode 100644 index 0000000..cdbb3c8 --- /dev/null +++ b/vs2017/configs.props @@ -0,0 +1,45 @@ + + + + + Windows 10 Debug + Win32 + 10 + + + Windows 10 Release + Win32 + 10 + + + Windows 10 Debug + x64 + 10 + + + Windows 10 Release + x64 + 10 + + + Windows 8 Debug + Win32 + 8.1 + + + Windows 8 Release + Win32 + 8.1 + + + Windows 8 Debug + x64 + 8.1 + + + Windows 8 Release + x64 + 8.1 + + + diff --git a/vs2017/package/package.vcxproj b/vs2017/package/package.vcxproj new file mode 100644 index 0000000..ad6b84f --- /dev/null +++ b/vs2017/package/package.vcxproj @@ -0,0 +1,59 @@ + + + + + WindowsKernelModeDriver10.0 + Utility + Package + true + true + Desktop + + + + {92E5A46B-913C-45C6-B6F8-7E062D85279F} + + + + + true + 8_x64;Server8_x64;10_x64;Server10_x64 + 8_x86;10_x86 + DbgengKernelDebugger + False + False + None + %PathToInf% + False + False + True + + 133563 + ..\$(ProjectName)\$(ConfigurationName)\$(Platform)\ + ..\$(ConfigurationName)\$(Platform)\ + + + + {d7411b2c-2c43-434d-9f56-e10a3d2f5bad} + + + {4bf41378-c01b-4002-8581-563c5f703362} + + + {14c16c29-77c9-475b-a618-1b01e67cf985} + + + {9c6a5d48-a331-4b1f-a004-7bb67ba5be1c} + + + {2E61D2CC-865E-442C-8C83-B8DAFD7BBD3B} + + + + + + + + + + diff --git a/vs2017/package/package.vcxproj.user b/vs2017/package/package.vcxproj.user new file mode 100644 index 0000000..db41a92 --- /dev/null +++ b/vs2017/package/package.vcxproj.user @@ -0,0 +1,8 @@ + + + + TestSign + ..\..\src\xenbus.pfx + http://timestamp.verisign.com/scripts/timstamp.dll + + diff --git a/vs2017/targets.props b/vs2017/targets.props new file mode 100644 index 0000000..64598fc --- /dev/null +++ b/vs2017/targets.props @@ -0,0 +1,35 @@ + + + + Windows10 + true + + + Windows10 + false + + + Windows10 + true + + + Windows10 + false + + + Windows8 + true + + + Windows8 + false + + + Windows8 + true + + + Windows8 + false + + diff --git a/vs2017/xen/xen.vcxproj b/vs2017/xen/xen.vcxproj new file mode 100644 index 0000000..de215c0 --- /dev/null +++ b/vs2017/xen/xen.vcxproj @@ -0,0 +1,88 @@ + + + + + WDM + WindowsKernelModeDriver10.0 + Driver + + + + {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C} + + + + + true + false + ..\$(ProjectName)\$(ConfigurationName)\$(Platform)\ + ..\$(ConfigurationName)\$(Platform)\ + + + + $(WindowsSdkDir)\include\km;..\..\include;..\..\include\xen;..\..\src\common;%(AdditionalIncludeDirectories) + __MODULE__="XEN";POOL_NX_OPTIN=1;NT_PROCESSOR_GROUPS;%(PreprocessorDefinitions) + EnableAllWarnings + 4464;4711;4548;4820;4668;4255;6001;6054;28196;30030;30029;%(DisableSpecificWarnings) + true + true + + + ..\..\include;%(AdditionalIncludeDirectories) + + + false + $(DDK_LIB_PATH)/libcntpr.lib;$(DDK_LIB_PATH)/aux_klib.lib;$(DDK_LIB_PATH)/procgrp.lib;%(AdditionalDependencies) + ../../src/xen/xen.def + false + + + + + __i386__;%(PreprocessorDefinitions);_X86_ + + + + + __x86_64__;%(PreprocessorDefinitions);_AMD64_ + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + + + true + + + + + + + + + + diff --git a/vs2017/xen/xen.vcxproj.user b/vs2017/xen/xen.vcxproj.user new file mode 100644 index 0000000..db41a92 --- /dev/null +++ b/vs2017/xen/xen.vcxproj.user @@ -0,0 +1,8 @@ + + + + TestSign + ..\..\src\xenbus.pfx + http://timestamp.verisign.com/scripts/timstamp.dll + + diff --git a/vs2017/xenbus.sln b/vs2017/xenbus.sln new file mode 100644 index 0000000..6d971b2 --- /dev/null +++ b/vs2017/xenbus.sln @@ -0,0 +1,158 @@ +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 14 +VisualStudioVersion = 14.0.25420.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "xenbus_coinst", "xenbus_coinst\xenbus_coinst.vcxproj", "{4BF41378-C01B-4002-8581-563C5F703362}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "xenbus_monitor", "xenbus_monitor\xenbus_monitor.vcxproj", "{2E61D2CC-865E-442C-8C83-B8DAFD7BBD3B}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "xen", "xen\xen.vcxproj", "{9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "xenfilt", "xenfilt\xenfilt.vcxproj", "{D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}" + ProjectSection(ProjectDependencies) = postProject + {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C} = {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "xenbus", "xenbus\xenbus.vcxproj", "{14C16C29-77C9-475B-A618-1B01E67CF985}" + ProjectSection(ProjectDependencies) = postProject + {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C} = {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "package", "package\package.vcxproj", "{92E5A46B-913C-45C6-B6F8-7E062D85279F}" + ProjectSection(ProjectDependencies) = postProject + {14C16C29-77C9-475B-A618-1B01E67CF985} = {14C16C29-77C9-475B-A618-1B01E67CF985} + {4BF41378-C01B-4002-8581-563C5F703362} = {4BF41378-C01B-4002-8581-563C5F703362} + {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C} = {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C} + {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD} = {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD} + {2E61D2CC-865E-442C-8C83-B8DAFD7BBD3B} = {2E61D2CC-865E-442C-8C83-B8DAFD7BBD3B} + EndProjectSection +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Windows 8 Debug|Win32 = Windows 8 Debug|Win32 + Windows 8 Debug|x64 = Windows 8 Debug|x64 + Windows 8 Release|Win32 = Windows 8 Release|Win32 + Windows 8 Release|x64 = Windows 8 Release|x64 + Windows 10 Debug|Win32 = Windows 10 Debug|Win32 + Windows 10 Debug|x64 = Windows 10 Debug|x64 + Windows 10 Release|Win32 = Windows 10 Release|Win32 + Windows 10 Release|x64 = Windows 10 Release|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4BF41378-C01B-4002-8581-563C5F703362}.Windows 8 Debug|Win32.ActiveCfg = Windows 8 Debug|Win32 + {4BF41378-C01B-4002-8581-563C5F703362}.Windows 8 Debug|Win32.Build.0 = Windows 8 Debug|Win32 + {4BF41378-C01B-4002-8581-563C5F703362}.Windows 8 Debug|x64.ActiveCfg = Windows 8 Debug|x64 + {4BF41378-C01B-4002-8581-563C5F703362}.Windows 8 Debug|x64.Build.0 = Windows 8 Debug|x64 + {4BF41378-C01B-4002-8581-563C5F703362}.Windows 8 Release|Win32.ActiveCfg = Windows 8 Release|Win32 + {4BF41378-C01B-4002-8581-563C5F703362}.Windows 8 Release|Win32.Build.0 = Windows 8 Release|Win32 + {4BF41378-C01B-4002-8581-563C5F703362}.Windows 8 Release|x64.ActiveCfg = Windows 8 Release|x64 + {4BF41378-C01B-4002-8581-563C5F703362}.Windows 8 Release|x64.Build.0 = Windows 8 Release|x64 + {4BF41378-C01B-4002-8581-563C5F703362}.Windows 10 Debug|Win32.ActiveCfg = Windows 10 Debug|Win32 + {4BF41378-C01B-4002-8581-563C5F703362}.Windows 10 Debug|Win32.Build.0 = Windows 10 Debug|Win32 + {4BF41378-C01B-4002-8581-563C5F703362}.Windows 10 Debug|x64.ActiveCfg = Windows 10 Debug|x64 + {4BF41378-C01B-4002-8581-563C5F703362}.Windows 10 Debug|x64.Build.0 = Windows 10 Debug|x64 + {4BF41378-C01B-4002-8581-563C5F703362}.Windows 10 Release|Win32.ActiveCfg = Windows 10 Release|Win32 + {4BF41378-C01B-4002-8581-563C5F703362}.Windows 10 Release|Win32.Build.0 = Windows 10 Release|Win32 + {4BF41378-C01B-4002-8581-563C5F703362}.Windows 10 Release|x64.ActiveCfg = Windows 10 Release|x64 + {4BF41378-C01B-4002-8581-563C5F703362}.Windows 10 Release|x64.Build.0 = Windows 10 Release|x64 + {2E61D2CC-865E-442C-8C83-B8DAFD7BBD3B}.Windows 8 Debug|Win32.ActiveCfg = Windows 8 Debug|Win32 + {2E61D2CC-865E-442C-8C83-B8DAFD7BBD3B}.Windows 8 Debug|Win32.Build.0 = Windows 8 Debug|Win32 + {2E61D2CC-865E-442C-8C83-B8DAFD7BBD3B}.Windows 8 Debug|Win32.Deploy.0 = Windows 8 Debug|Win32 + {2E61D2CC-865E-442C-8C83-B8DAFD7BBD3B}.Windows 8 Debug|x64.ActiveCfg = Windows 8 Debug|x64 + {2E61D2CC-865E-442C-8C83-B8DAFD7BBD3B}.Windows 8 Debug|x64.Build.0 = Windows 8 Debug|x64 + {2E61D2CC-865E-442C-8C83-B8DAFD7BBD3B}.Windows 8 Debug|x64.Deploy.0 = Windows 8 Debug|x64 + {2E61D2CC-865E-442C-8C83-B8DAFD7BBD3B}.Windows 8 Release|Win32.ActiveCfg = Windows 8 Release|Win32 + {2E61D2CC-865E-442C-8C83-B8DAFD7BBD3B}.Windows 8 Release|Win32.Build.0 = Windows 8 Release|Win32 + {2E61D2CC-865E-442C-8C83-B8DAFD7BBD3B}.Windows 8 Release|Win32.Deploy.0 = Windows 8 Release|Win32 + {2E61D2CC-865E-442C-8C83-B8DAFD7BBD3B}.Windows 8 Release|x64.ActiveCfg = Windows 8 Release|x64 + {2E61D2CC-865E-442C-8C83-B8DAFD7BBD3B}.Windows 8 Release|x64.Build.0 = Windows 8 Release|x64 + {2E61D2CC-865E-442C-8C83-B8DAFD7BBD3B}.Windows 8 Release|x64.Deploy.0 = Windows 8 Release|x64 + {2E61D2CC-865E-442C-8C83-B8DAFD7BBD3B}.Windows 10 Debug|Win32.ActiveCfg = Windows 10 Debug|Win32 + {2E61D2CC-865E-442C-8C83-B8DAFD7BBD3B}.Windows 10 Debug|Win32.Build.0 = Windows 10 Debug|Win32 + {2E61D2CC-865E-442C-8C83-B8DAFD7BBD3B}.Windows 10 Debug|Win32.Deploy.0 = Windows 10 Debug|Win32 + {2E61D2CC-865E-442C-8C83-B8DAFD7BBD3B}.Windows 10 Debug|x64.ActiveCfg = Windows 10 Debug|x64 + {2E61D2CC-865E-442C-8C83-B8DAFD7BBD3B}.Windows 10 Debug|x64.Build.0 = Windows 10 Debug|x64 + {2E61D2CC-865E-442C-8C83-B8DAFD7BBD3B}.Windows 10 Debug|x64.Deploy.0 = Windows 10 Debug|x64 + {2E61D2CC-865E-442C-8C83-B8DAFD7BBD3B}.Windows 10 Release|Win32.ActiveCfg = Windows 10 Release|Win32 + {2E61D2CC-865E-442C-8C83-B8DAFD7BBD3B}.Windows 10 Release|Win32.Build.0 = Windows 10 Release|Win32 + {2E61D2CC-865E-442C-8C83-B8DAFD7BBD3B}.Windows 10 Release|Win32.Deploy.0 = Windows 10 Release|Win32 + {2E61D2CC-865E-442C-8C83-B8DAFD7BBD3B}.Windows 10 Release|x64.ActiveCfg = Windows 10 Release|x64 + {2E61D2CC-865E-442C-8C83-B8DAFD7BBD3B}.Windows 10 Release|x64.Build.0 = Windows 10 Release|x64 + {2E61D2CC-865E-442C-8C83-B8DAFD7BBD3B}.Windows 10 Release|x64.Deploy.0 = Windows 10 Release|x64 + {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows 8 Debug|Win32.ActiveCfg = Windows 8 Debug|Win32 + {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows 8 Debug|Win32.Build.0 = Windows 8 Debug|Win32 + {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows 8 Debug|x64.ActiveCfg = Windows 8 Debug|x64 + {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows 8 Debug|x64.Build.0 = Windows 8 Debug|x64 + {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows 8 Release|Win32.ActiveCfg = Windows 8 Release|Win32 + {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows 8 Release|Win32.Build.0 = Windows 8 Release|Win32 + {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows 8 Release|x64.ActiveCfg = Windows 8 Release|x64 + {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows 8 Release|x64.Build.0 = Windows 8 Release|x64 + {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows 10 Debug|Win32.ActiveCfg = Windows 10 Debug|Win32 + {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows 10 Debug|Win32.Build.0 = Windows 10 Debug|Win32 + {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows 10 Debug|x64.ActiveCfg = Windows 10 Debug|x64 + {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows 10 Debug|x64.Build.0 = Windows 10 Debug|x64 + {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows 10 Release|Win32.ActiveCfg = Windows 10 Release|Win32 + {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows 10 Release|Win32.Build.0 = Windows 10 Release|Win32 + {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows 10 Release|x64.ActiveCfg = Windows 10 Release|x64 + {9C6A5D48-A331-4B1F-A004-7BB67BA5BE1C}.Windows 10 Release|x64.Build.0 = Windows 10 Release|x64 + {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows 8 Debug|Win32.ActiveCfg = Windows 8 Debug|Win32 + {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows 8 Debug|Win32.Build.0 = Windows 8 Debug|Win32 + {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows 8 Debug|x64.ActiveCfg = Windows 8 Debug|x64 + {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows 8 Debug|x64.Build.0 = Windows 8 Debug|x64 + {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows 8 Release|Win32.ActiveCfg = Windows 8 Release|Win32 + {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows 8 Release|Win32.Build.0 = Windows 8 Release|Win32 + {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows 8 Release|x64.ActiveCfg = Windows 8 Release|x64 + {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows 8 Release|x64.Build.0 = Windows 8 Release|x64 + {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows 10 Debug|Win32.ActiveCfg = Windows 10 Debug|Win32 + {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows 10 Debug|Win32.Build.0 = Windows 10 Debug|Win32 + {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows 10 Debug|x64.ActiveCfg = Windows 10 Debug|x64 + {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows 10 Debug|x64.Build.0 = Windows 10 Debug|x64 + {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows 10 Release|Win32.ActiveCfg = Windows 10 Release|Win32 + {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows 10 Release|Win32.Build.0 = Windows 10 Release|Win32 + {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows 10 Release|x64.ActiveCfg = Windows 10 Release|x64 + {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD}.Windows 10 Release|x64.Build.0 = Windows 10 Release|x64 + {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows 8 Debug|Win32.ActiveCfg = Windows 8 Debug|Win32 + {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows 8 Debug|Win32.Build.0 = Windows 8 Debug|Win32 + {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows 8 Debug|x64.ActiveCfg = Windows 8 Debug|x64 + {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows 8 Debug|x64.Build.0 = Windows 8 Debug|x64 + {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows 8 Release|Win32.ActiveCfg = Windows 8 Release|Win32 + {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows 8 Release|Win32.Build.0 = Windows 8 Release|Win32 + {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows 8 Release|x64.ActiveCfg = Windows 8 Release|x64 + {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows 8 Release|x64.Build.0 = Windows 8 Release|x64 + {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows 10 Debug|Win32.ActiveCfg = Windows 10 Debug|Win32 + {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows 10 Debug|Win32.Build.0 = Windows 10 Debug|Win32 + {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows 10 Debug|x64.ActiveCfg = Windows 10 Debug|x64 + {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows 10 Debug|x64.Build.0 = Windows 10 Debug|x64 + {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows 10 Release|Win32.ActiveCfg = Windows 10 Release|Win32 + {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows 10 Release|Win32.Build.0 = Windows 10 Release|Win32 + {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows 10 Release|x64.ActiveCfg = Windows 10 Release|x64 + {14C16C29-77C9-475B-A618-1B01E67CF985}.Windows 10 Release|x64.Build.0 = Windows 10 Release|x64 + {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 8 Debug|Win32.ActiveCfg = Windows 8 Debug|Win32 + {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 8 Debug|Win32.Build.0 = Windows 8 Debug|Win32 + {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 8 Debug|Win32.Deploy.0 = Windows 8 Debug|Win32 + {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 8 Debug|x64.ActiveCfg = Windows 8 Debug|x64 + {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 8 Debug|x64.Build.0 = Windows 8 Debug|x64 + {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 8 Debug|x64.Deploy.0 = Windows 8 Debug|x64 + {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 8 Release|Win32.ActiveCfg = Windows 8 Release|Win32 + {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 8 Release|Win32.Build.0 = Windows 8 Release|Win32 + {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 8 Release|Win32.Deploy.0 = Windows 8 Release|Win32 + {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 8 Release|x64.ActiveCfg = Windows 8 Release|x64 + {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 8 Release|x64.Build.0 = Windows 8 Release|x64 + {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 8 Release|x64.Deploy.0 = Windows 8 Release|x64 + {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 10 Debug|Win32.ActiveCfg = Windows 10 Debug|Win32 + {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 10 Debug|Win32.Build.0 = Windows 10 Debug|Win32 + {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 10 Debug|Win32.Deploy.0 = Windows 10 Debug|Win32 + {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 10 Debug|x64.ActiveCfg = Windows 10 Debug|x64 + {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 10 Debug|x64.Build.0 = Windows 10 Debug|x64 + {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 10 Debug|x64.Deploy.0 = Windows 10 Debug|x64 + {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 10 Release|Win32.ActiveCfg = Windows 10 Release|Win32 + {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 10 Release|Win32.Build.0 = Windows 10 Release|Win32 + {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 10 Release|Win32.Deploy.0 = Windows 10 Release|Win32 + {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 10 Release|x64.ActiveCfg = Windows 10 Release|x64 + {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 10 Release|x64.Build.0 = Windows 10 Release|x64 + {92E5A46B-913C-45C6-B6F8-7E062D85279F}.Windows 10 Release|x64.Deploy.0 = Windows 10 Release|x64 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/vs2017/xenbus/xenbus.vcxproj b/vs2017/xenbus/xenbus.vcxproj new file mode 100644 index 0000000..038d3d7 --- /dev/null +++ b/vs2017/xenbus/xenbus.vcxproj @@ -0,0 +1,98 @@ + + + + + WDM + WindowsKernelModeDriver10.0 + Driver + + + + {14C16C29-77C9-475B-A618-1B01E67CF985} + + + + + true + false + ..\$(ProjectName)\$(ConfigurationName)\$(Platform)\ + ..\$(ConfigurationName)\$(Platform)\ + + + + __MODULE__="XENBUS";POOL_NX_OPTIN=1;NT_PROCESSOR_GROUPS;%(PreprocessorDefinitions) + $(WindowsSdkDir)\include\km;..\..\include;..\..\include\xen;..\..\src\common; + EnableAllWarnings + 4464;4711;4548;4820;4668;4255;6001;6054;28196;30030;30029;%(DisableSpecificWarnings) + true + true + + + ..\..\include;%(AdditionalIncludeDirectories) + + + false + $(ProjectDir)..\$(ConfigurationName)\$(Platform)\xen.lib;$(DDK_LIB_PATH)/libcntpr.lib;$(DDK_LIB_PATH)/procgrp.lib;$(DDK_LIB_PATH)/rtlver.lib;%(AdditionalDependencies) + false + + + true + true + $(MAJOR_VERSION).$(MINOR_VERSION).$(MICRO_VERSION).$(BUILD_NUMBER) + true + + + + + __i386__;%(PreprocessorDefinitions);_X86_ + + + x86 + + + + + __x86_64__;%(PreprocessorDefinitions);_AMD64_ + + + amd64 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vs2017/xenbus/xenbus.vcxproj.user b/vs2017/xenbus/xenbus.vcxproj.user new file mode 100644 index 0000000..db41a92 --- /dev/null +++ b/vs2017/xenbus/xenbus.vcxproj.user @@ -0,0 +1,8 @@ + + + + TestSign + ..\..\src\xenbus.pfx + http://timestamp.verisign.com/scripts/timstamp.dll + + diff --git a/vs2017/xenbus_coinst/xenbus_coinst.vcxproj b/vs2017/xenbus_coinst/xenbus_coinst.vcxproj new file mode 100644 index 0000000..c88b8c9 --- /dev/null +++ b/vs2017/xenbus_coinst/xenbus_coinst.vcxproj @@ -0,0 +1,61 @@ + + + + + WDM + WindowsApplicationForDrivers10.0 + DynamicLibrary + + + + {4BF41378-C01B-4002-8581-563C5F703362} + + + + + true + false + + + + $(SolutionDir)..\include;%(AdditionalIncludeDirectories) + __MODULE__="XENBUS_COINST";%(PreprocessorDefinitions) + EnableAllWarnings + 4127;4711;4548;4820;4668;4255;6001;6054;28196;%(DisableSpecificWarnings) + true + true + MultiThreadedDebug + MultiThreaded + + + ../../src/coinst/xenbus_coinst.def + setupapi.lib;%(AdditionalDependencies) + false + + + $(SolutionDir)..\include;%(AdditionalIncludeDirectories) + + + + + __i386__;%(PreprocessorDefinitions) + + + + + __x86_64__;%(PreprocessorDefinitions) + + + + + + + + + + + + + + + diff --git a/vs2017/xenbus_coinst/xenbus_coinst.vcxproj.user b/vs2017/xenbus_coinst/xenbus_coinst.vcxproj.user new file mode 100644 index 0000000..db41a92 --- /dev/null +++ b/vs2017/xenbus_coinst/xenbus_coinst.vcxproj.user @@ -0,0 +1,8 @@ + + + + TestSign + ..\..\src\xenbus.pfx + http://timestamp.verisign.com/scripts/timstamp.dll + + diff --git a/vs2017/xenbus_monitor/xenbus_monitor.vcxproj b/vs2017/xenbus_monitor/xenbus_monitor.vcxproj new file mode 100644 index 0000000..3da9061 --- /dev/null +++ b/vs2017/xenbus_monitor/xenbus_monitor.vcxproj @@ -0,0 +1,77 @@ + + + + + MultiByte + WindowsApplicationForDrivers10.0 + Application + + + + {2E61D2CC-865E-442C-8C83-B8DAFD7BBD3B} + + + + + $(IncludePath) + true + false + + + Link + + + + $(SolutionDir)..\include;%(AdditionalIncludeDirectories) + WIN32;_WINDOWS;_CRT_SECURE_NO_WARNINGS;__MODULE__="XENBUS_MONITOR";%(PreprocessorDefinitions) + EnableAllWarnings + 4127;4711;4548;4820;4668;4255;6001;6054;28196;%(DisableSpecificWarnings) + true + true + MultiThreadedDebug + MultiThreaded + + + wtsapi32.lib;cfgmgr32.lib;%(AdditionalDependencies) + + + $(SolutionDir)..\include;%(AdditionalIncludeDirectories) + + + + + __i386__;%(PreprocessorDefinitions) + + + $(TargetDir)$(TargetName).dll + $(IntDir)$(TargetName).res + link -machine:x86 -dll -noentry -out:%(Outputs) %(Inputs) + + + + + __x86_64__;%(PreprocessorDefinitions) + + + $(TargetDir)$(TargetName).dll + $(IntDir)$(TargetName).res + link -machine:x64 -dll -noentry -out:%(Outputs) %(Inputs) + + + + + + + + + + + + + + + + + + + diff --git a/vs2017/xenbus_monitor/xenbus_monitor.vcxproj.user b/vs2017/xenbus_monitor/xenbus_monitor.vcxproj.user new file mode 100644 index 0000000..db41a92 --- /dev/null +++ b/vs2017/xenbus_monitor/xenbus_monitor.vcxproj.user @@ -0,0 +1,8 @@ + + + + TestSign + ..\..\src\xenbus.pfx + http://timestamp.verisign.com/scripts/timstamp.dll + + diff --git a/vs2017/xenfilt/xenfilt.vcxproj b/vs2017/xenfilt/xenfilt.vcxproj new file mode 100644 index 0000000..fe6ba38 --- /dev/null +++ b/vs2017/xenfilt/xenfilt.vcxproj @@ -0,0 +1,66 @@ + + + + + WDM + WindowsKernelModeDriver10.0 + Driver + + + + {D7411B2C-2C43-434D-9F56-E10A3D2F5BAD} + + + + + true + false + ..\$(ProjectName)\$(ConfigurationName)\$(Platform)\ + ..\$(ConfigurationName)\$(Platform)\ + + + + __MODULE__="XENFILT";POOL_NX_OPTIN=1;NT_PROCESSOR_GROUPS;%(PreprocessorDefinitions) + $(WindowsSdkDir)\include\km;..\..\include;..\..\include\xen;..\..\src\common; + EnableAllWarnings + 4464;4711;4548;4820;4668;4255;6001;6054;28196;30030;30029;%(DisableSpecificWarnings) + true + true + + + ..\..\include;%(AdditionalIncludeDirectories) + + + false + $(ProjectDir)..\$(ConfigurationName)\$(Platform)\xen.lib;$(DDK_LIB_PATH)/libcntpr.lib;$(DDK_LIB_PATH)/procgrp.lib;%(AdditionalDependencies) + false + + + + + __i386__;%(PreprocessorDefinitions);_X86_ + + + + + __x86_64__;%(PreprocessorDefinitions);_AMD64_ + + + + + + + + + + + + + + + + + + + + diff --git a/vs2017/xenfilt/xenfilt.vcxproj.user b/vs2017/xenfilt/xenfilt.vcxproj.user new file mode 100644 index 0000000..db41a92 --- /dev/null +++ b/vs2017/xenfilt/xenfilt.vcxproj.user @@ -0,0 +1,8 @@ + + + + TestSign + ..\..\src\xenbus.pfx + http://timestamp.verisign.com/scripts/timstamp.dll + +