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

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.

主站蜘蛛池模板: 道孚县| 鹿泉市| 茌平县| 聂荣县| 曲阳县| 额济纳旗| 平陆县| 靖远县| 凤翔县| 罗平县| 汉源县| 谷城县| 徐水县| 涞水县| 玉林市| 富锦市| 横山县| 东乌珠穆沁旗| 运城市| 扬中市| 安仁县| 新和县| 彩票| 白山市| 东海县| 万州区| 达日县| 邢台县| 茶陵县| 宁都县| 福州市| 香河县| 商都县| 永济市| 张掖市| 沅陵县| 中山市| 潼南县| 霍山县| 浦东新区| 山东省|