Skip to content

Building

Alexander Bich edited this page Apr 12, 2014 · 7 revisions

Inanity builds with a lightweight home-made build utility ice-cpp. Get it and follow the instructions in its README.

For now you should manually create directories which are used to place building artifacts. To create them, issue the following command:

mkdir {deps/{bullet,freetype,glew,harfbuzz,libogg,libpng,libvorbis,lua,sqlite,zlib,fcgi}/,}{debug,release}

Most dependencies are packaged somewhere into deps directory, sometimes as git submodules. Ensure that you've done git submodule init/git submodule update.

V8 library is not building by ice-cpp for now, you should build it manually.

Some Inanity libraries require Boost. You have to install it for your compiler by yourself.

After that you can build Inanity libraries. Full list of libraries are located in /configure.js, which controls build process. For example, you can build a debug version of the base library (libinanity-base) with the following command:

ice-cpp lib:debug/libinanity-base

On both supported platforms (Windows and Linux) the build command is the same (but produces different files - debug/libinanity-base.lib and debug/libinanity-base.a respectively).

You can also build some executables (ice-cpp exe:debug/luatest) or separate object files (ice-cpp o:debug/CompressStream).

Clone this wiki locally