VS2017 compiled CEF

Recent research CEF (Chromium Embedded Framework), can be embedded into a browser plug-in application.
Compiler environment: Visual Studio 2017
Download: http://opensource.spotify.com/cefbuilds/index.html#windows64_builds
directly generated by CMake-GUI sln, open with VS2017, x64 compiler will have a bunch of MSB3073 's wrong , I do not know He start .
In fact, VS2017 comes CMAKE this feature, CMake checked by default when you install VS2017 toolset of.
Microsoft's official tutorial: https://docs.microsoft.com/zh-cn/cpp/ide/cmake-tools-for-visual-cpp?view=vs-2017
open the file with VS2017 CMakeLists.txt

Then the project will be initialized after the completion of, right CMakeLists.txt, select "Change CMake settings", select x64_Debug, generate CMakeSettings.json

PS:在打开的CMakeSettings.json文件里,修改generator参数为“Visual Studio 15 2017 Win64”,buildCommandArgs参数为“-m:8 -v:minimal -p:PreferredToolArchitecture=x64”(可以把buildRoot参数里的“${env.USERPROFILE}”改成“${workspaceRoot}”,这样生成的文件会在当前目录而不是C盘,方便调试)。

在选择启动项的下拉菜单中选择启动 cefclient 项目:

 然后按下 F7 开始编译项目,生成完成后点击上面的绿色启动按钮就可以启动项目了,并且你也可以随时调试项目了。

 还有一个cefsimple的例子:

参考
https://cloud.tencent.com/developer/article/1381109
https://blog.csdn.net/wei123456/article/details/86591927

Guess you like

Origin www.cnblogs.com/MakeView660/p/12161176.html