build instructions

This commit is contained in:
2019-01-09 16:26:34 +07:00
parent d27356d135
commit c254748528
2 changed files with 68 additions and 5 deletions

59
BUILD_INSTRUCTIONS.md Normal file
View File

@@ -0,0 +1,59 @@
# Build Instructions
## * Requirements
- [git](https://git-scm.com/)
- [git-lfs](https://git-lfs.github.com/)
- [cmake](https://cmake.org/) **>= 3.11**
- [gcc](https://www.gnu.org/software/gcc/) **>= 4.9** or [clang](https://clang.llvm.org/) **>= 3.8** or [msvc](https://visualstudio.microsoft.com/) **>= 2015**
## * Cloning
```bash
$ git clone --recursive git://github.com/enduro2d/enduro2d.git
$ cd enduro2d
```
> or
```bash
$ git clone git://github.com/enduro2d/enduro2d.git
$ cd enduro2d
$ git submodule update --init --recursive
```
## * Building
```bash
$ cd your_engine_repository_directory
$ mkdir build && cd build
$ cmake -DCMAKE_BUILD_TYPE=Release ..
$ cmake --build . -- -j8
# also you can generate Xcode project
$ cd your_engine_repository_directory
$ mkdir xcode-build && cd xcode-build
$ cmake -G Xcode ..
$ open enduro2d.xcodeproj
# or Visual Studio project
$ cd your_engine_repository_directory
$ mkdir msvc-build && cd msvc-build
$ cmake -G "Visual Studio 15 2017" ..
$ start enduro2d.sln
```
## * Running
```bash
$ cd your_engine_build_folder
$ ctest
$ ./samples/sample_00
```
## * Links
- CMake: https://cmake.org/
- CMake documentation: https://cmake.org/documentation/
- CMake FAQ: https://gitlab.kitware.com/cmake/community/wikis/FAQ

View File

@@ -8,6 +8,14 @@
[![license][badge.license]][license]
[![paypal][badge.paypal]][paypal]
## [Build Instructions](./BUILD_INSTRUCTIONS.md)
## [Bootstrap](https://github.com/enduro2d/enduro2d-bootstrap)
## [Roadmap](./ROADMAP.md)
## [License (MIT)](./LICENSE.md)
[badge.travis]: https://img.shields.io/travis/enduro2d/enduro2d/master.svg?logo=travis&style=for-the-badge
[badge.appveyor]: https://img.shields.io/appveyor/ci/BlackMATov/enduro2d/master.svg?logo=appveyor&style=for-the-badge
[badge.language]: https://img.shields.io/badge/language-C%2B%2B14-red.svg?style=for-the-badge
@@ -18,8 +26,4 @@
[appveyor]: https://ci.appveyor.com/project/BlackMATov/enduro2d
[language]: https://en.wikipedia.org/wiki/C%2B%2B14
[license]: https://en.wikipedia.org/wiki/MIT_License
[paypal]: https://www.paypal.me/matov
## [Roadmap](./ROADMAP.md)
## [License (MIT)](./LICENSE.md)
[paypal]: https://www.paypal.me/matov