-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
76 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
Title: Jade Engine README | ||
Author: Christian Neumüller | ||
|
||
|
||
JadeEngine | ||
========== | ||
|
||
**JadeEngine** (or '**jd**' for short) is a game Engine written in *C++* for | ||
*[Lua][]* with 2D graphics, audio, virtual file system (ZIP) and *TMX* | ||
([Tiled Map Editor][]'s format) support. | ||
|
||
|
||
[Lua]: http://www.lua.org/ | ||
[Tiled Map Editor]: http://www.mapeditor.org/ | ||
|
||
|
||
|
||
Building | ||
-------- | ||
|
||
### Ingredients ### | ||
|
||
The following libraries are needed: | ||
|
||
- **[SFML][]** in the latest (git) version, available at | ||
<http://github.com/LaurentGomila/SFML>. | ||
- **[Boost][]** in version 1.53 (later versions may/should also work). | ||
- **[Lua][]** in the latest version of the 5.2.x branch. You may want to apply | ||
the patches listed at <http://www.lua.org/bugs.html>. Please compile as C | ||
(jd was not tested with the C++ build of Lua which throws exceptinons). | ||
- **[Luabind][]** in a 0.9 version patched by me: | ||
<https://github.com/Oberon00/luabind> | ||
- **[zlib][]** (tested with version 1.2.7). | ||
- **[PhysFS][]** (tested with version 2.0.3). | ||
|
||
The only compiler throughoutly tested is **MSVC 11**, but once upon a time the | ||
source code and `CMakeLists.txt` were adjusted to also work with g++ 4.7.2. | ||
The build system used is **[CMake][]** in a recent 2.8.x version. | ||
|
||
Especially on Windows, make sure to set any environment variables neccessary to | ||
let CMake find the librarys are set correctly: `SFML_ROOT`, `BOOST_ROOT`, | ||
`LUA_DIR`, `LUABIND_DIR`, `PHYSFSDIR`. zlib does not look at any environment | ||
variables but only the `ZLIB_ROOT` CMake variable: See the second point in the | ||
next section for how to set it. | ||
|
||
As an alternative to setting the variables you can also install the libraries | ||
to the (CMake) standard locations or add the containing directories to | ||
CMAKE_PREFIX_PATH. | ||
|
||
|
||
[SFML]: http:/sfml-dev.org/ | ||
[Boost]: http://www.boost.org/ | ||
[Luabind]: http://www.rasterbar.com/products/luabind.html | ||
[zlib]: http://www.zlib.net/ | ||
[PysFS]: http://icculus.org/physfs/ | ||
|
||
|
||
### `Find*.cmake` ### | ||
The `CMakeLists.txt` for jd call `find_package()` with some libraries where | ||
the corresponding `Find*.cmake` is not built in, namely `Lua52`, `Luabind` and | ||
`SFML`. The latter is included with SFML itself and the first two are both | ||
contained in my Luabind fork, linked above. To make CMake find them you have | ||
two options: | ||
|
||
- Copy the files to your CMake installation's module directory. This is the | ||
directory where e.g. the `AddFileDependencies.cmake` module is located. It | ||
usually lies in `<prefix>/share/cmake-2.8/Modules`, where `<prefix>` is the | ||
installation directory on Windows (usually | ||
`C:\Program Files (x86)\CMake 2.8`) and usually simply `/usr` on Linux. | ||
- Specify the directories where the files are located as a semicolon `;` | ||
separated list in the `CMAKE_MODULE_PATH` CMake cache variable (*Add entry*, | ||
type string in the Windows GUI; or `-DCMAKE_MODULE_PATH=<path-list>` on the | ||
command line). | ||
|
||
|
||
> (C) Christian Neumüller 2012 -- 2013 |