How to create a project through the CLI tools and build it
Using the CLI
Prerequisites
You should install shiva with vcpkg or with a regular installation before following this tutorial.
VCPKG_ROOT env variable set to the root directory of your installation of VCPKG
Python 3.6
Create a project and build it
If you use VCPKG:
Windows
Open powershell and type:
cd"$($env:VCPKG_ROOT)/installed/x64-Windows/share/shiva/tools"##! syntax./cli_shiva.py--project_nameproject_name--project_rendererrenderer_name--output_directorypath##! for example./cli_shiva.py--project_namebomberman--project_renderersfml--output_directoryD:/game_project/bombermancdD:/game_project/bombermanmkdirbuildcdbuild##! Replace Release by Debug if you prefer Debugcmake -G "Visual Studio 15 2017 Win64" -DCMAKE_TOOLCHAIN_FILE="$($env:VCPKG_ROOT)/scripts/buildsystems/vcpkg.cmake" -DCMAKE_BUILD_TYPE=Release ..
cmake--build.--configRelease
Linux or OSX
Open bash and type:
##! Linuxcd $VCPKG_ROOT/installed/x64-linux/share/shiva/tools##! OSXcd $VCPKG_ROOT/installed/x64-osx/share/shiva/tools##! syntax./cli_shiva.py--project_nameproject_name--project_rendererrenderer_name--output_directorypath##! for example./cli_shiva.py--project_namebomberman--project_renderersfml--output_directory~/Documents/bombermancd~/Documents/bombermanmkdirbuildcdbuild##! Linux (Replace Release by Debug if you need)cmake -DCMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE="Release" -DCMAKE_CXX_COMPILER=g++-8 -DCMAKE_C_COMPILER=gcc-8 ..
##! OSX (Replace Release by Debug if you need)cmake -DCMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE="Release" -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang ..
make