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

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.

主站蜘蛛池模板: 浮梁县| 溆浦县| 个旧市| 阳曲县| 申扎县| 余姚市| 聂拉木县| 龙门县| 交口县| 开远市| 金溪县| 米脂县| 宝应县| 新源县| 陵水| 广元市| 洪江市| 崇阳县| 会昌县| 浠水县| 贵港市| 西林县| 北辰区| 泸西县| 杭州市| 汉川市| 油尖旺区| 汕尾市| 达孜县| 定南县| 大化| 双鸭山市| 龙里县| 元氏县| 松桃| 慈溪市| 陕西省| 平邑县| 吴川市| 中方县| 西丰县|