forked from tianocore/edk2
-
Notifications
You must be signed in to change notification settings - Fork 3
Build and debug EmulatorPkg in Visual Studio
Shi Steven edited this page Jan 7, 2020
·
5 revisions


- Create a Blank solution firstly and then add two Makefile Projects for EmulatorPkg built by VS2015 and CLANGPDB as below. Select File-->New-->Project..
- Right click the Project and select the Properties to open the Project Property Pages menu, then select Configuration Properties-->NMake.
- Add the commands in the Build Command Line, Clean Command Line and ReBuild All Command Line as below:
cd /D C:\steven\edk2
call edksetup.bat
set CLANG_HOST_BIN=n
set CLANG_BIN=C:\Program Files\LLVM\bin\
build -p EmulatorPkg\EmulatorPkg.dsc -a X64 -DWIN_HOST_BUILD=TRUE -t CLANGPDB

- Add the Command and Working Directory in the Debugging page:
- Right click the Solution property and un-select the Build option to debug without build. Solution-->Property-->Configuration Properties-->Configuration-->Project-->Unselect Build option