From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.31; helo=mga06.intel.com; envelope-from=ruiyu.ni@intel.com; receiver=edk2-devel@lists.01.org Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C03CF21102DAE for ; Mon, 27 Aug 2018 00:52:54 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Aug 2018 00:52:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,294,1531810800"; d="scan'208";a="86641669" Received: from ray-dev.ccr.corp.intel.com ([10.239.9.8]) by orsmga002.jf.intel.com with ESMTP; 27 Aug 2018 00:52:53 -0700 From: Ruiyu Ni To: edk2-devel@lists.01.org Cc: Hao Wu , Andrew Fish Date: Mon, 27 Aug 2018 15:53:28 +0800 Message-Id: <20180827075330.269224-9-ruiyu.ni@intel.com> X-Mailer: git-send-email 2.16.1.windows.1 In-Reply-To: <20180827075330.269224-1-ruiyu.ni@intel.com> References: <20180827075330.269224-1-ruiyu.ni@intel.com> MIME-Version: 1.0 Subject: [PATCH 08/10] EmulatorPkg/Win: Add VS2017 project file X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Aug 2018 07:52:54 -0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Cc: Hao Wu Cc: Andrew Fish --- EmulatorPkg/Win/VS2017/BuildVS.bat | 3 + EmulatorPkg/Win/VS2017/Win.sln | 31 ++++++++ EmulatorPkg/Win/VS2017/Win.vcxproj | 120 +++++++++++++++++++++++++++++ EmulatorPkg/Win/VS2017/Win.vcxproj.filters | 50 ++++++++++++ EmulatorPkg/Win/VS2017/Win.vcxproj.user | 13 ++++ 5 files changed, 217 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 diff --git a/EmulatorPkg/Win/VS2017/BuildVS.bat b/EmulatorPkg/Win/VS2017/BuildVS.bat new file mode 100644 index 0000000000..a485a3c563 --- /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..650b404463 --- /dev/null +++ b/EmulatorPkg/Win/VS2017/Win.sln @@ -0,0 +1,31 @@ + +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|Win32 = Debug|Win32 + Release|x64 = Release|x64 + Release|Win32 = Release|Win32 + 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|Win32.ActiveCfg = Debug|Win32 + {B4E1783F-FD72-4214-B0F7-69271BAD5DDF}.Debug|Win32.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|Win32.ActiveCfg = Release|Win32 + {B4E1783F-FD72-4214-B0F7-69271BAD5DDF}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {870972CA-19D5-4FC0-BF7A-E4C7A46679F0} + 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 -- 2.16.1.windows.1