> For the complete documentation index, see [llms.txt](https://hebohang.gitbook.io/hengine/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hebohang.gitbook.io/hengine/yin-qing-bian-yi.md).

# 引擎编译

## 所需依赖

* Visual Studio 2022（推荐2022版本，因为引擎使用C++20规格），同时安装好单个组件“使用C++的桌面开发”，这是为了ATL库。
* CMake 3.20 版本及以上
* Python3（确保环境变量有，可以被 CMake 找到，这部分在 glslang、SPIRV-Tools 等第三方库的构建中是必要的）

## 编译流程

**1. 克隆仓库** `git clone git@github.com:hebohang/HEngine.git`

**2. 直接运行脚本 Win-GenProjects.bat**

运行结束应该会在 Engine/Binaries/Win64 中生成 HEngineEditor.exe，此时双击运行即可。

## 开发环境

如果想建设 HE，我的开发环境是Visual Studio 2022: 不选择打开工程，选择打开文件夹，然后选择项目的文件夹（HEngine文件夹），开始构建。此时不必再运行上一步的bat文件，直接用vs2022编译即可。
