Build and debug EmulatorPkg in Visual Studio - shijunjing/edk2 GitHub Wiki
EmulatorPkg_VS2015
EmulatorPkg_CLANGPDB
Steps to create the VS solution and projects
- 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