官术网_书友最值得收藏!

Creating a new sandbox project

First, to create a new sandbox executable, we need to declare a new Visual Studio demo project within the Premake build scripts. You can add a new sandbox project by opening the SandboxDemos.lua script and appending a new entry to the SandboxDemos table. In this case, you can name your my_sandbox demo or any other name you'd like. The project name will determine the name of the executable that is built:

SandboxDemos.lua:

SandboxDemos = {
    "chapter_1_introduction",
    ...
    "my_sandbox"
};

Note

All the heavy lifting of configuring a sandbox demo actually takes place in the premake.lua file by the CreateDemoProject function. The premake.lua script simply loops over all entries within the SandboxDemos table and creates the corresponding projects, setting up the source files, project dependencies, library includes, and so on.

主站蜘蛛池模板: 盐源县| 通州市| 永善县| 资阳市| 鄂伦春自治旗| 新河县| 齐河县| 克拉玛依市| 昌图县| 无极县| 锡林郭勒盟| 淮北市| 湘乡市| 南宁市| 遂溪县| 高州市| 淳化县| 开鲁县| 镇平县| 兰溪市| 山阴县| 故城县| 收藏| 新竹县| 山丹县| 鄂伦春自治旗| 大冶市| 鹰潭市| 洞头县| 方山县| 陈巴尔虎旗| 南平市| 西乡县| 湘乡市| 南皮县| 寿光市| 海淀区| 汝阳县| 根河市| 内乡县| 钟山县|