From 0195dd509f80b1ff49739bbf1df39434a6a7540e Mon Sep 17 00:00:00 2001 From: Ruiyu Ni Date: Fri, 24 Aug 2018 16:48:04 +0800 Subject: EmulatorPkg/Win: Add VS2017 project file Developer can build the Win Host in VS2017 and launch to debug it. Platform 'x64' is to build 64bit EmulatorWin. Platform 'Win32' is to build 32bit EmulatorWin. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ruiyu Ni Reviewed-by: Hao Wu Cc: Andrew Fish --- EmulatorPkg/Win/VS2017/BuildVS.bat | 3 + EmulatorPkg/Win/VS2017/Win.sln | 25 ++++++ EmulatorPkg/Win/VS2017/Win.vcxproj | 120 +++++++++++++++++++++++++++++ EmulatorPkg/Win/VS2017/Win.vcxproj.filters | 50 ++++++++++++ EmulatorPkg/Win/VS2017/Win.vcxproj.user | 13 ++++ 5 files changed, 211 insertions(+) create mode 100644 EmulatorPkg/Win/VS2017/BuildVS.bat create mode 100644 EmulatorPkg/Win/VS2017/Win.sln create mode 100644 EmulatorPkg/Win/VS2017/Win.vcxproj create mode 100644 EmulatorPkg/Win/VS2017/Win.vcxproj.filters create mode 100644 EmulatorPkg/Win/VS2017/Win.vcxproj.user (limited to 'EmulatorPkg') diff --git a/EmulatorPkg/Win/VS2017/BuildVS.bat b/EmulatorPkg/Win/VS2017/BuildVS.bat new file mode 100644 index 0000000000..83aebc77dc --- /dev/null +++ b/EmulatorPkg/Win/VS2017/BuildVS.bat @@ -0,0 +1,3 @@ +cd ../../../ +@call edksetup.bat +build -p EmulatorPkg\EmulatorPkg.dsc -t VS2017 -D WIN_SEC_BUILD %* diff --git a/EmulatorPkg/Win/VS2017/Win.sln b/EmulatorPkg/Win/VS2017/Win.sln new file mode 100644 index 0000000000..397c5d9b8b --- /dev/null +++ b/EmulatorPkg/Win/VS2017/Win.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.28010.2003 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Win", "Win.vcxproj", "{B4E1783F-FD72-4214-B0F7-69271BAD5DDF}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {B4E1783F-FD72-4214-B0F7-69271BAD5DDF}.Debug|x64.ActiveCfg = Debug|x64 + {B4E1783F-FD72-4214-B0F7-69271BAD5DDF}.Debug|x64.Build.0 = Debug|x64 + {B4E1783F-FD72-4214-B0F7-69271BAD5DDF}.Debug|x86.ActiveCfg = Debug|Win32 + {B4E1783F-FD72-4214-B0F7-69271BAD5DDF}.Debug|x86.Build.0 = Debug|Win32 + {B4E1783F-FD72-4214-B0F7-69271BAD5DDF}.Release|x64.ActiveCfg = Release|x64 + {B4E1783F-FD72-4214-B0F7-69271BAD5DDF}.Release|x64.Build.0 = Release|x64 + {B4E1783F-FD72-4214-B0F7-69271BAD5DDF}.Release|x86.ActiveCfg = Release|Win32 + {B4E1783F-FD72-4214-B0F7-69271BAD5DDF}.Release|x86.Build.0 = Release|Win32 + EndGlobalSection +EndGlobal diff --git a/EmulatorPkg/Win/VS2017/Win.vcxproj b/EmulatorPkg/Win/VS2017/Win.vcxproj new file mode 100644 index 0000000000..0f574a8e7f --- /dev/null +++ b/EmulatorPkg/Win/VS2017/Win.vcxproj @@ -0,0 +1,120 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 15.0 + {B4E1783F-FD72-4214-B0F7-69271BAD5DDF} + MakeFileProj + 8.1 + + + + Makefile + true + v141 + + + Makefile + false + v141 + + + Makefile + true + v141 + + + Makefile + true + v141 + + + + + + + + + + + + + + + + + + + + + BuildVS.bat -a IA32 + BuildVS.bat -a IA32 all + BuildVS.bat -a IA32 clean + ..\..\..\Build\EmulatorIA32\DEBUG_VS2017\ + ..\..\..\Build\EmulatorIA32\DEBUG_VS2017\ + ..\..\..\MdePkg\Include;..\..\..\MdePkg\Include\Ia32;..\..\..\MdeModulePkg\Include;..\..\..\EmulatorPkg\Include;$(IncludePath) + + + BuildVS.bat -a IA32 -b RELEASE + + + BuildVS.bat -a IA32 -b RELEASE all + BuildVS.bat -a IA32 -b RELEASE clean + ..\..\..\Build\EmulatorIA32\DEBUG_VS2017\ + ..\..\..\Build\EmulatorIA32\DEBUG_VS2017\ + ..\..\..\MdePkg\Include;..\..\..\MdePkg\Include\Ia32;..\..\..\MdeModulePkg\Include;..\..\..\EmulatorPkg\Include;$(IncludePath) + + + BuildVS.bat -a X64 + BuildVS.bat -a X64 all + BuildVS.bat -a X64 clean + ..\..\..\Build\EmulatorX64\DEBUG_VS2017\ + ..\..\..\Build\EmulatorX64\DEBUG_VS2017\ + ..\..\..\MdePkg\Include;..\..\..\MdePkg\Include\X64;..\..\..\MdeModulePkg\Include;..\..\..\EmulatorPkg\Include;$(IncludePath) + + + BuildVS.bat -a X64 -b RELEASE + BuildVS.bat -a X64 -b RELEASE all + BuildVS.bat -a X64 -b RELEASE clean + ..\..\Build\EmulatorX64\DEBUG_VS2017\ + ..\..\Build\EmulatorX64\DEBUG_VS2017\ + ..\..\..\MdePkg\Include;..\..\..\MdePkg\Include\X64;..\..\..\MdeModulePkg\Include;..\..\..\EmulatorPkg\Include;$(IncludePath) + + + + + + + + + + + + + + + + + + + + + + diff --git a/EmulatorPkg/Win/VS2017/Win.vcxproj.filters b/EmulatorPkg/Win/VS2017/Win.vcxproj.filters new file mode 100644 index 0000000000..3e176597ba --- /dev/null +++ b/EmulatorPkg/Win/VS2017/Win.vcxproj.filters @@ -0,0 +1,50 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;hm;inl;inc;xsd + + + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + + + Header Files + + + Header Files + + + Header Files + + + + + + \ No newline at end of file diff --git a/EmulatorPkg/Win/VS2017/Win.vcxproj.user b/EmulatorPkg/Win/VS2017/Win.vcxproj.user new file mode 100644 index 0000000000..7ccf83f132 --- /dev/null +++ b/EmulatorPkg/Win/VS2017/Win.vcxproj.user @@ -0,0 +1,13 @@ + + + + WinHost.exe + WindowsLocalDebugger + $(ProjectDir)..\..\..\Build\EmulatorIA32\DEBUG_VS2017\IA32\ + + + WinHost.exe + $(ProjectDir)..\..\..\Build\EmulatorX64\DEBUG_VS2017\X64\ + WindowsLocalDebugger + + \ No newline at end of file -- cgit v1.2.3