Mirai-Team / mirai-project

C++ library for games making purposes.
Other
3 stars 0 forks source link

logo Mirai Project

Build Status

Issue Stats Issue Stats

Introduction

Mirai Project is a library for games making purposes mainly by using SFML.

Authors

Download

You can get the current development version from the git repository on Github.

Requirements

Copyright

License: zlib/libpng

Read license file.

Compiling

In order to compile Mirai Project, using c++11 is a compulsory.

You should use cmake (see requirements above) in order to get your makefile or favorite IDE project. There is a CMakeLists file for this purpose. If you don't use cmake, you have to setup yourself your makefile, IDE project, etc.

Open a command line prompt and go to Mirai Project directory.

Windows : cd /D \path\to\mirai\project\ Linux : $ cd /path/to/mirai/project/

Then, make a new directory (called "build" for instance) and go into it :

Windows :

mkdir build\
cd build\

Linux :

$ mkdir build/
$ cd build/

This step is a compulsory, because our cmake script disable the possibility to write binaries in a directory containing sources (you can also build in a totally different path).

Now you can generate Makefile, Sublime Text / Code::Blocks / Visual Studio IDE project or whatever you want using cmake and the appropriate generator. Of course, you have to install cmake and add the binary in your system path or to use absolute path to the binary.

Windows cmake . --build ..\ -G"GENERATOR_YOU_WANT"

Linux $ cmake . --build ../ -G"GENERATOR_YOU_WANT"

Type "cmake --help" in your command line prompt to see generators availables on your platform.

You can then build Mirai Project library. Open your IDE if you generated an IDE project, use "make" for Unix Makefiles, "mingw32-make" for MinGW Makefiles, etc.

To build examples, you can set variable "MIRAI_EXAMPLES" to 1. You can do it by modifying your CMakeCache.txt file and rebuilding cmake cache or with the parameter -D"MIRAI_EXAMPLES=1" when you build the cmake cache.

Windows : cmake . --build ..\ -G"GENERATOR_YOU_WANT" -D"MIRAI_EXAMPLES=1"

Linux : $ cmake . --build ../ -G"GENERATOR_YOU_WANT" -D"MIRAI_EXAMPLES=1"

To build tools provided with the library, this is the variable "MIRAI_TOOLS" which should be set to 1.

Contribute

Read NORMS file carefully and respect each of them if you want to contribute.

If you add sources files, you have to add them in the LIB_SRC variable in src/CMakeLists file. Afterward, you should rebuid your cmake cache.

Windows : cmake \path\to\build\

Linux : $ cmake /path/to/build/