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.65; helo=mga03.intel.com; envelope-from=ruiyu.ni@intel.com; receiver=edk2-devel@lists.01.org Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (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 533D021106FA1 for ; Wed, 29 Aug 2018 19:01:34 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Aug 2018 19:01:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,305,1531810800"; d="scan'208";a="84534468" Received: from ray-dev.ccr.corp.intel.com ([10.239.9.8]) by fmsmga004.fm.intel.com with ESMTP; 29 Aug 2018 19:01:33 -0700 From: Ruiyu Ni To: edk2-devel@lists.01.org Cc: Hao Wu , Andrew Fish Date: Thu, 30 Aug 2018 10:02:11 +0800 Message-Id: <20180830020213.148968-8-ruiyu.ni@intel.com> X-Mailer: git-send-email 2.16.1.windows.1 In-Reply-To: <20180830020213.148968-1-ruiyu.ni@intel.com> References: <20180830020213.148968-1-ruiyu.ni@intel.com> MIME-Version: 1.0 Subject: [PATCH v2 7/9] 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: Thu, 30 Aug 2018 02:01:34 -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 | 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 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 -- 2.16.1.windows.1