forked from Mirrors/openclonk
![]() This commit contains a fairly substantial rewrite of the C4Script code generator. Instead of generating bytecode while parsing the script, we're now parsing the script into a syntax tree, and have any further processing happen on that instead of the raw source. At this time, the code generator emits the same bytecode as the old parser; there are several optimization opportunities that arise from the new possibility to emit code out of order from its specification by the author. Compared to the old compiler, this one is still rather deficient when dealing with incorrect code; it's also not emitting several warnings that used to be diagnosed. |
||
---|---|---|
cmake | ||
docs | ||
include/c4script | ||
licenses | ||
masterserver | ||
planet | ||
src | ||
tests | ||
thirdparty | ||
tools | ||
.git_archival | ||
.gitattributes | ||
.gitignore | ||
CMakeLists.txt | ||
COPYING | ||
Credits.txt | ||
README | ||
TRADEMARK | ||
Version.txt | ||
config.h.cmake | ||
openclonk.desktop | ||
scriptdefinitionsources.txt |
README
Requirements ============ You should be able to build OpenClonk with any C++ compiler that supports ISO C++14. That said, on Windows, we recommend using Microsoft Visual C++ 2015 or higher; the Express edition will be sufficient. On Linux, you will be fine with GNU g++ 4.9 or later. Apple users should use a clang-based XCode version. To generate project files for your chosen build system, you will also have to install CMake from http://www.cmake.org/. Additionally, OpenClonk depends on a number of third-party libraries: - zlib (http://zlib.net/) - libpng (http://www.libpng.org/pub/png/libpng.html) - libjpeg-turbo (http://sourceforge.net/projects/libjpeg-turbo/files/) - FreeType (http://www.freetype.org/) - The OpenGL Extension Wrangler Library (http://glew.sourceforge.net/) - FreeALUT (https://github.com/vancegroup/freealut) - libogg and libvorbis (https://www.xiph.org/downloads/) OS X Specific ============= OpenClonk supports OS X versions 10.8 "Mountain Lion" and later. If you are using brew (https://github.com/mxcl/homebrew) or MacPorts (http://www.macports.org/), the packages you'll have to install are: libjpeg, libpng, freetype, glew, libogg, libvorbis Linux Specific ============== For building OpenClonk on Linux, you need the following libraries in addition to the ones listed above: - GTK+ 3.4 or greater (http://www.gtk.org) - libGL (http://www.mesa3d.org/) - SDL 1.2 (http://www.libsdl.org/download-1.2.php) - SDL_mixer 1.2 (http://www.libsdl.org/projects/SDL_mixer/release-1.2.html) - libupnp - libxrandr Most distributions should provide these dependencies via their packaging system. For Debian based distributions, you will need these packages: build-essential cmake imagemagick libfreetype6-dev libgl1-mesa-dev libglew-dev libgtk-3-dev libjpeg-dev libpng-dev libsdl1.2-dev libsdl-mixer1.2-dev libupnp-dev libxrandr-dev x11proto-core-dev zlib1g-dev libalut0 At least gcc-4.9 is required. Windows Specific ================ In addition to the libraries above, you will need one more if you want to target Windows: - OpenAL Soft (http://kcat.strangesoft.net/openal.html) To create an installer, you will also need the Nullsoft Install System (http://nsis.sourceforge.net/). To create the installer, build the "setup" target.