2017-02-10 23:03:33 +01:00
|
|
|
|
2017-02-11 19:00:57 +01:00
|
|
|
# Development with Linux or Darwin
|
2017-02-10 23:03:33 +01:00
|
|
|
|
2017-02-11 19:00:57 +01:00
|
|
|
## Build
|
|
|
|
|
|
|
|
```
|
|
|
|
mkdir Debug
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=Debug ..
|
|
|
|
cmake --build .
|
|
|
|
|
|
|
|
mkdir Release
|
|
|
|
cmake -DCMAKE_BUILD_TYPE=Release ..
|
|
|
|
cmake --build .
|
|
|
|
```
|
|
|
|
|
2017-07-28 15:32:45 +02:00
|
|
|
## Deploy
|
|
|
|
|
|
|
|
An AppImage file is automatically generated with Release builds.
|
|
|
|
|
2017-02-11 19:00:57 +01:00
|
|
|
# Development with MSYS2 (Windows)
|
|
|
|
|
|
|
|
**Update your toolchain**
|
2017-02-10 23:03:33 +01:00
|
|
|
```
|
|
|
|
pacman -Syuu
|
2017-02-11 19:00:57 +01:00
|
|
|
```
|
2017-02-10 23:03:33 +01:00
|
|
|
|
2017-02-11 19:00:57 +01:00
|
|
|
**Install main development packages**
|
|
|
|
```
|
2017-02-10 23:03:33 +01:00
|
|
|
pacman -S --noconfirm --needed mingw-w64-x86_64-toolchain make mingw-w64-x86_64-cmake pkg-config
|
2017-02-11 19:00:57 +01:00
|
|
|
```
|
2017-02-10 23:03:33 +01:00
|
|
|
|
2017-02-11 19:00:57 +01:00
|
|
|
## Build
|
|
|
|
|
|
|
|
```
|
|
|
|
mkdir Debug
|
|
|
|
cmake -G"MSYS Makefiles" -DCMAKE_BUILD_TYPE=Debug ..
|
|
|
|
cmake --build .
|
|
|
|
|
|
|
|
mkdir Release
|
|
|
|
cmake -G"MSYS Makefiles" -DCMAKE_BUILD_TYPE=Release ..
|
|
|
|
cmake --build .
|
|
|
|
```
|
2017-07-28 15:32:45 +02:00
|
|
|
|
|
|
|
## Deploy
|
|
|
|
|
|
|
|
You need NSIS64 in order to create the Windows installer.
|
|
|
|
|
|
|
|
```
|
|
|
|
pacman -S mingw64/mingw-w64-x86_64-nsis
|
|
|
|
```
|
|
|
|
|
|
|
|
Run the following command (Release build only):
|
|
|
|
```
|
|
|
|
make -C src/planetblupi_Project-build package
|
|
|
|
```
|