Source

gltut / Documents / Building the Tutorials.xml

<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="http://docbook.org/xml/5.0/rng/docbookxi.rng" type="xml"?>
<?oxygen SCHSchema="http://docbook.org/xml/5.0/rng/docbookxi.rng"?>
<article xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude"
    xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0">
    <title>Building the Tutorials</title>
    <para>To build these tutorials, you will need to download the <link
            xlink:href="http://industriousone.com/premake">Premake 4</link> utility for your
        platform of choice. Currently, the tutorials only work on Windows. The tutorial distribution
        comes with the external dependencies that they need (FreeGLUT and FreeImage).</para>
    <para>Premake is a utility like <link xlink:href="http://www.cmake.org/">CMake</link>: it
        generates build files for a specific platform. Unlike CMake, Premake is strictly a
        command-line utility. Premake's build scripts are written in the <link
            xlink:href="http://www.lua.org/home.html">Lua language</link>, unlike CMake's build
        scripts that use their own language.</para>
    <para>Note that Premake only generates build files; once the build files are created, you can
        use them as normal. It can generate project files for Visual Studio, <link
            xlink:href="http://www.codeblocks.org/">Code::Blocks</link>, and XCode, as well as GNU
        Makefiles. And unless you want to modify one of the tutorials, you only need to run Premake
        once for each tutorial.</para>
    <para/>
</article>